Documentation
¶
Index ¶
- Variables
- type App
- type AppInfo
- type Apps
- type Queue
- func (q *Queue[T]) BatchIn(items []*T) error
- func (q *Queue[T]) BatchOut() ([]*T, error)
- func (q *Queue[T]) Continue()
- func (q *Queue[T]) Counter() int
- func (q *Queue[T]) Dequeue() (*T, error)
- func (q *Queue[T]) Enqueue(item *T) error
- func (q *Queue[T]) IsEmpty() bool
- func (q *Queue[T]) IsSuspended() bool
- func (q *Queue[T]) Suspend()
- type Queuer
- type ReadWriter
- type Record
- type Records
- type Table
- type Token
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSuspended = errors.New("[algalon]: the current service has been suspended") ErrEOF = errors.New("[algalon]: at EOF") ErrAppKeyInvalid = errors.New("[algalon]: invalid algalon app key") ErrAddressInvalid = errors.New("[algalon]: invalid address") ErrClosed = errors.New("[algalon]: the service has been closed") ErrGenerateWallet = errors.New("[algalon]: generate wallet failed") ErrTimeOut = errors.New("[algalon]: timeout") ErrUnknown = errors.New("[algalon]: unknown error") )
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { AlgalonAppKey string `json:"algalon_app_key,omitempty"` Threshold string `json:"threshold" binding:"required"` Remainder string `json:"remainder" binding:"required"` // Minimum transaction amount Mta string `json:"mta" binding:"required"` Trx20 []Token `json:"trx20" binding:"required"` Address []string `json:"address" binding:"required"` }
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
func (*Queue[T]) IsSuspended ¶
type ReadWriter ¶
type Record ¶
type Record struct { PrivKey string `json:"private_key,omitempty"` From string `json:"from,omitempty"` To string `json:"to,omitempty"` Amount string `json:"amount,omitempty"` Type string `json:"type,omitempty"` Coin string `json:"coin"` Fee string `json:"fee,omitempty"` TxId string `json:"txID,omitempty"` Timestamp int64 `json:"timestamp"` Owner string `json:"owner"` Err string `json:"error,omitempty"` }
type Records ¶
Click to show internal directories.
Click to hide internal directories.