package
0.0.0-20221218120333-a376c7093645
Repository: https://github.com/satornetwork/sator-api.git
Documentation: pkg.go.dev

# README

Example service

Boilerplate for architecture of a service based on go-kit (repo).

Service - is where all of the business logic is implemented. A service usually glues together multiple endpoints. In Go kit, services are typically modeled as interfaces, and implementations of those interfaces contain the business logic. Go kit services should strive to abide the Clean Architecture or the Hexagonal Architecture. That is, the business logic should have no knowledge of endpoint- or especially transport-domain concepts: your service shouldn’t know anything about HTTP headers, or gRPC error codes.

Endpoints is like an action/handler on a controller; it’s where safety and antifragile logic lives. If you implement two transports (HTTP and gRPC), you might have two methods of sending requests to the same endpoint.

Transport is bound to concrete transports like HTTP or gRPC. In a world where microservices may support one or more transports, this is very powerful; you can support a legacy HTTP API and a newer RPC service, all in a single microservice.

To get more details go to the official documentation - go-kit - architecture and design.

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MakeHTTPHandler ...
No description provided by the author
No description provided by the author
No description provided by the author
NewService is a factory function, returns a new instance of the Service interface implementation.
WithAssetSolanaAddress ...
No description provided by the author
WithFraudDetectionMode ...
WithMinAmountToTransfer ...
No description provided by the author
No description provided by the author
WithSolanaFeePayer ...
WithSolanaTokenHolder ...
WithStakePoolSolanaAddress ...
No description provided by the author

# Constants

Predefined wallet action types.
Predefined wallet action types.
Predefined wallet action types.
Predefined wallet action types.
sator token account.
sator tokens distributor.
general account with SOL to pay transaction commission.
general account with SOL.
sator tokens issuer.
sator stake pool account.
custom token account with sator tokens.
Predefined token transfer statuses.
Predefined token transfer statuses.
Predefined token transfer statuses.
Predefined token transfer statuses.
Predefined wallet types.
Predefined wallet types.
Predefined wallet types.
Predefined wallet types.

# Variables

Predefined package error.
Predefined package error.
Predefined package error.
ErrInvalidParameter indicates that passed invalid parameter.
Predefined package error.
Predefined package error.
Predefined package error.
Predefined package error.
Predefined package error.
Predefined package error.
No description provided by the author

# Structs

Wallet details.
Wallet details.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Stake details.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Wallet details.
No description provided by the author

# Type aliases

ActionType of wallet.
No description provided by the author
SolanaAccountType solana account type.
No description provided by the author
No description provided by the author