Versions in this module Expand all Collapse all v0 v0.7.0 Nov 27, 2020 Changes in this version + var ContextAPIKey = contextKey("apikey") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextOAuth2 = contextKey("token") + var ErrRetriable = errors.New("retriable http status code received") + type APIClient struct + AccountAPI *AccountAPIService + BlockAPI *BlockAPIService + CallAPI *CallAPIService + ConstructionAPI *ConstructionAPIService + EventsAPI *EventsAPIService + MempoolAPI *MempoolAPIService + NetworkAPI *NetworkAPIService + SearchAPI *SearchAPIService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) ChangeBasePath(path string) + func (c *APIClient) GetConfig() *Configuration + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type AccountAPIService service + func (a *AccountAPIService) AccountBalance(ctx _context.Context, accountBalanceRequest *types.AccountBalanceRequest) (*types.AccountBalanceResponse, *types.Error, error) + func (a *AccountAPIService) AccountCoins(ctx _context.Context, accountCoinsRequest *types.AccountCoinsRequest) (*types.AccountCoinsResponse, *types.Error, error) + type BasicAuth struct + Password string + UserName string + type BlockAPIService service + func (a *BlockAPIService) Block(ctx _context.Context, blockRequest *types.BlockRequest) (*types.BlockResponse, *types.Error, error) + func (a *BlockAPIService) BlockTransaction(ctx _context.Context, blockTransactionRequest *types.BlockTransactionRequest) (*types.BlockTransactionResponse, *types.Error, error) + type CallAPIService service + func (a *CallAPIService) Call(ctx _context.Context, callRequest *types.CallRequest) (*types.CallResponse, *types.Error, error) + type Configuration struct + BasePath string + Debug bool + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + Scheme string + Servers []ServerConfiguration + UserAgent string + func NewConfiguration(basePath string, userAgent string, httpClient *http.Client) *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) + type ConstructionAPIService service + func (a *ConstructionAPIService) ConstructionCombine(ctx _context.Context, ...) (*types.ConstructionCombineResponse, *types.Error, error) + func (a *ConstructionAPIService) ConstructionDerive(ctx _context.Context, ...) (*types.ConstructionDeriveResponse, *types.Error, error) + func (a *ConstructionAPIService) ConstructionHash(ctx _context.Context, constructionHashRequest *types.ConstructionHashRequest) (*types.TransactionIdentifierResponse, *types.Error, error) + func (a *ConstructionAPIService) ConstructionMetadata(ctx _context.Context, ...) (*types.ConstructionMetadataResponse, *types.Error, error) + func (a *ConstructionAPIService) ConstructionParse(ctx _context.Context, constructionParseRequest *types.ConstructionParseRequest) (*types.ConstructionParseResponse, *types.Error, error) + func (a *ConstructionAPIService) ConstructionPayloads(ctx _context.Context, ...) (*types.ConstructionPayloadsResponse, *types.Error, error) + func (a *ConstructionAPIService) ConstructionPreprocess(ctx _context.Context, ...) (*types.ConstructionPreprocessResponse, *types.Error, error) + func (a *ConstructionAPIService) ConstructionSubmit(ctx _context.Context, ...) (*types.TransactionIdentifierResponse, *types.Error, error) + type EventsAPIService service + func (a *EventsAPIService) EventsBlocks(ctx _context.Context, eventsBlocksRequest *types.EventsBlocksRequest) (*types.EventsBlocksResponse, *types.Error, error) + type MempoolAPIService service + func (a *MempoolAPIService) Mempool(ctx _context.Context, networkRequest *types.NetworkRequest) (*types.MempoolResponse, *types.Error, error) + func (a *MempoolAPIService) MempoolTransaction(ctx _context.Context, ...) (*types.MempoolTransactionResponse, *types.Error, error) + type NetworkAPIService service + func (a *NetworkAPIService) NetworkList(ctx _context.Context, metadataRequest *types.MetadataRequest) (*types.NetworkListResponse, *types.Error, error) + func (a *NetworkAPIService) NetworkOptions(ctx _context.Context, networkRequest *types.NetworkRequest) (*types.NetworkOptionsResponse, *types.Error, error) + func (a *NetworkAPIService) NetworkStatus(ctx _context.Context, networkRequest *types.NetworkRequest) (*types.NetworkStatusResponse, *types.Error, error) + type SearchAPIService service + func (a *SearchAPIService) SearchTransactions(ctx _context.Context, ...) (*types.SearchTransactionsResponse, *types.Error, error) + type ServerConfiguration struct + Description string + URL string + Variables map[string]ServerVariable + type ServerVariable struct + DefaultValue string + Description string + EnumValues []string