Documentation
¶
Index ¶
- func Status(code int, reason string) error
- type AdxChainApi
- func (api *AdxChainApi) FetchBatch(code, scope, table string, limit uint32, reverse bool, v interface{}) error
- func (api *AdxChainApi) FetchBatchByIndex(code, scope, table string, lowerBound, upperBound, index, KeyType string, ...) error
- func (api *AdxChainApi) FetchMoreByIndex(code, scope, table string, lowerBound, upperBound, index, keyType string, ...) (bool, error)
- func (api *AdxChainApi) FetchOneByPk(code, table, pk string, v interface{}) error
- func (api *AdxChainApi) GetAccountActivePublicKey(account string) (string, error)
- func (api *AdxChainApi) PushTransaction(actions []*eos.Action) error
- type ResponseStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdxChainApi ¶
type AdxChainApi struct { EosApi *eos.API ServerAddress string // contains filtered or unexported fields }
func NewAdxChainApi ¶
func NewAdxChainApi(chainID, chainUrl, privateKey string) *AdxChainApi
func (*AdxChainApi) FetchBatch ¶
func (api *AdxChainApi) FetchBatch(code, scope, table string, limit uint32, reverse bool, v interface{}) error
func (*AdxChainApi) FetchBatchByIndex ¶
func (*AdxChainApi) FetchMoreByIndex ¶
func (*AdxChainApi) FetchOneByPk ¶
func (api *AdxChainApi) FetchOneByPk(code, table, pk string, v interface{}) error
v is array
func (*AdxChainApi) GetAccountActivePublicKey ¶
func (api *AdxChainApi) GetAccountActivePublicKey(account string) (string, error)
func (*AdxChainApi) PushTransaction ¶
func (api *AdxChainApi) PushTransaction(actions []*eos.Action) error
type ResponseStatus ¶
type ResponseStatus struct { Code int `json:"code" example:"200"` Message string `json:"message" example:"OK"` Reason string `json:"reason" example:"param error"` File string `json:"file" example:"param error"` Line int `json:"line" example:"param error"` FuncName string `json:"func"` }
func (*ResponseStatus) Error ¶
func (rs *ResponseStatus) Error() string
Click to show internal directories.
Click to hide internal directories.