adxchain

package
v0.0.0-...-dd907ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Status

func Status(code int, reason string) error

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 (api *AdxChainApi) FetchBatchByIndex(code, scope, table string,
	lowerBound, upperBound, index, KeyType string,
	limit uint32, reverse bool, v interface{}) error

func (*AdxChainApi) FetchMoreByIndex

func (api *AdxChainApi) FetchMoreByIndex(code, scope, table string,
	lowerBound, upperBound, index, keyType string,
	limit uint32, reverse bool, v interface{}) (bool, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL