Versions in this module Expand all Collapse all v1 v1.4.2 May 30, 2023 v1.4.0 May 30, 2023 Changes in this version + var ErrEcosystemNotFound = errors.New("Ecosystem not found") + func InitJwtSecret(secret []byte) + func SendRawRequest(rtype, url, auth string, form *url.Values) ([]byte, error) + func SendRequest(rtype, url, auth string, form *url.Values, v any) error + func SetOtherCommonRoutes(api *mux.Router, m Mode) + func WithCors(h http.Handler) http.Handler + type BlockDetailedInfo struct + BinData []byte + EcosystemID int64 + GenBlock bool + Hash []byte + Header BlockHeaderInfo + KeyID int64 + MerkleRoot []byte + NodePosition int64 + RollbacksHash []byte + Size string + StopCount int + SysUpdate bool + Time int64 + Transactions []TxDetailedInfo + Tx int32 + type BlockHeaderInfo struct + BlockID int64 + EcosystemID int64 + Hash []byte + KeyID int64 + NodePosition int64 + Sign []byte + Time int64 + Version int + type Client struct + AccountID string + EcosystemID int64 + EcosystemName string + KeyID int64 + RoleID int64 + func (c *Client) Prefix() string + type Connect struct + Auth string + PrivateKey []byte + PublicKey string + Root string + func (connect *Connect) Login() error + func (connect *Connect) PostTxResult(name string, form *url.Values) (id int64, msg string, err error) + func (connect *Connect) SendGet(url string, form *url.Values, v any) error + func (connect *Connect) SendMultipart(url string, files map[string][]byte, v any) error + func (connect *Connect) SendPost(url string, form *url.Values, v any) error + func (connect *Connect) WaitTx(hash string) (int64, error) + func (connect *Connect) WaitTxList(hashes []string) (map[string]WaitResult, error) + type HonorNodeJSON struct + APIAddress string + PublicKey string + Stopped bool + TCPAddress string + UnbanTime string + func GetNodesJSON() []HonorNodeJSON + type JWTClaims struct + AccountID string + EcosystemID string + KeyID string + RoleID string + UID string + type Mode struct + ClientTxProcessor types.ClientTxPreprocessor + ContractRunner types.SmartContractRunner + EcosystemGetter types.EcosystemGetter + func (m Mode) GetAppParamHandler(w http.ResponseWriter, r *http.Request) + func (m Mode) SetBlockchainRoutes(r Router) + func (m Mode) SetCommonRoutes(r Router) + func (m Mode) SetSubNodeRoutes(r Router) + type NetworkResult struct + CentrifugoURL string + HonorNodes []HonorNodeJSON + NetworkID string + Private bool + Test bool + type Router struct + func NewRouter(m Mode) Router + func (r Router) GetAPI() *mux.Router + func (r Router) GetAPIVersion(preffix string) *mux.Router + func (r Router) NewVersion(preffix string) *mux.Router + type SumWhereForm struct + Column string + Where string + func (f *SumWhereForm) Validate(r *http.Request) error + type TxDetailedInfo struct + ContractName string + Hash []byte + KeyID int64 + Params map[string]any + Size string + Time int64 + Type byte + type TxInfo struct + ContractName string + Hash []byte + KeyID int64 + Params map[string]any + type WaitResult struct + BlockID int64 + Msg string