Documentation ¶
Index ¶
- Constants
- Variables
- type Address
- type AddressType
- type ApiError
- type ApiErrors
- type Client
- func (s Client) CacheAdd(key, val any)
- func (s Client) CacheGet(key any) (any, bool)
- func (s Client) Retries() int
- func (s Client) RetryDelay() time.Duration
- func (s *Client) UseScriptCache(cache *lru.TwoQueueCache)
- func (s *Client) WithApiKey(key string) *Client
- func (s *Client) WithCacheSize(sz int) *Client
- func (s *Client) WithHeader(key, value string) *Client
- func (s *Client) WithIpfsUrl(url string) *Client
- func (s *Client) WithLogger(log log.Logger) *Client
- func (s *Client) WithMarketUrl(url string) *Client
- func (s *Client) WithRetry(num int, delay time.Duration) *Client
- func (s *Client) WithTLS(tc *tls.Config) *Client
- func (s *Client) WithTimeout(d time.Duration) *Client
- func (s *Client) WithUserAgent(agent string) *Client
- type FillMode
- type FilterMode
- type FormatType
- type Key
- type OrderType
- type Query
- func And(key string) Query
- func Arg(key string, val ...any) Query
- func Asc() Query
- func Desc() Query
- func Equal(key string, val any) Query
- func Filter(key string, mode FilterMode, val ...any) Query
- func Gt(key string, val any) Query
- func Gte(key string, val any) Query
- func In(key string, val ...any) Query
- func Lt(key string, val any) Query
- func Lte(key string, val any) Query
- func Not(key string) Query
- func NotEqual(key string, val any) Query
- func NotIn(key string, val ...any) Query
- func Range(key string, from, to any) Query
- func Regexp(key string, re string) Query
- func WithCursor(v uint64) Query
- func WithFrom(t time.Time) Query
- func WithLimit(v uint) Query
- func WithMerge() Query
- func WithMeta() Query
- func WithOffset(v uint) Query
- func WithOrder(o OrderType) Query
- func WithPrim() Query
- func WithRights() Query
- func WithStorage() Query
- func WithTags(t ...string) Query
- func WithTimeRange(from, to time.Time) Query
- func WithTo(t time.Time) Query
- func WithUnpack() Query
- type Token
- type Z
Constants ¶
View Source
const ( Collapse1m = time.Minute Collapse1h = time.Hour Collapse1d = 24 * time.Hour Collapse1w = 7 * 24 * time.Hour )
View Source
const ( OpTypeBake = index.OpTypeBake OpTypeEndorsement = index.OpTypeEndorsement OpTypeTransaction = index.OpTypeTransaction OpTypeReveal = index.OpTypeReveal OpTypeDelegation = index.OpTypeDelegation OpTypeOrigination = index.OpTypeOrigination OpTypeNonceRevelation = index.OpTypeNonceRevelation OpTypeActivation = index.OpTypeActivation OpTypeBallot = index.OpTypeBallot OpTypeProposal = index.OpTypeProposal OpTypeDoubleBaking = index.OpTypeDoubleBaking OpTypeDoubleEndorsement = index.OpTypeDoubleEndorsement OpTypeUnfreeze = index.OpTypeUnfreeze OpTypeInvoice = index.OpTypeInvoice OpTypeAirdrop = index.OpTypeAirdrop OpTypeSeedSlash = index.OpTypeSeedSlash OpTypeMigration = index.OpTypeMigration OpTypeSubsidy = index.OpTypeSubsidy OpTypeRegisterConstant = index.OpTypeRegisterConstant OpTypePreendorsement = index.OpTypePreendorsement OpTypeDoublePreendorsement = index.OpTypeDoublePreendorsement OpTypeDepositsLimit = index.OpTypeDepositsLimit OpTypeDeposit = index.OpTypeDeposit OpTypeBonus = index.OpTypeBonus OpTypeReward = index.OpTypeReward OpTypeRollupOrigination = index.OpTypeRollupOrigination OpTypeRollupTransaction = index.OpTypeRollupTransaction OpTypeVdfRevelation = index.OpTypeVdfRevelation OpTypeIncreasePaidStorage = index.OpTypeIncreasePaidStorage OpTypeDrainDelegate = index.OpTypeDrainDelegate OpTypeUpdateConsensusKey = index.OpTypeUpdateConsensusKey OpTypeTransferTicket = index.OpTypeTransferTicket OpTypeBatch = index.OpTypeBatch OpTypeInvalid = index.OpTypeInvalid )
Variables ¶
View Source
var ( SdkVersion = "0.17.1" DefaultClient = NewClient("https://api.tzpro.io", nil) )
View Source
var ( NewAddress = tezos.MustParseAddress ParseAddress = tezos.ParseAddress NewQuery = client.NewQuery IsErrApi = client.IsErrApi IsErrHttp = client.IsErrHttp IsErrRateLimited = client.IsErrRateLimited ErrorStatus = client.ErrorStatus NoQuery = NewQuery() )
Functions ¶
This section is empty.
Types ¶
type AddressType ¶ added in v0.17.2
type AddressType = tezos.AddressType
type Client ¶
type Client struct { Account index.AccountAPI Block index.BlockAPI Baker index.BakerAPI Contract index.ContractAPI Explorer index.ExplorerAPI Metadata index.MetadataAPI Op index.OpAPI Stats index.StatsAPI Dex defi.DexAPI Farm defi.FarmAPI Lend defi.LendingAPI Nft nft.NftAPI Token token.TokenAPI Domain identity.DomainAPI Profile identity.ProfileAPI Wallet wallet.WalletAPI Market market.MarketAPI Ipfs ipfs.IpfsAPI // contains filtered or unexported fields }
func (Client) RetryDelay ¶ added in v0.15.0
func (*Client) UseScriptCache ¶
func (s *Client) UseScriptCache(cache *lru.TwoQueueCache)
func (*Client) WithApiKey ¶ added in v0.16.0
func (*Client) WithCacheSize ¶ added in v0.15.0
func (*Client) WithHeader ¶ added in v0.15.0
func (*Client) WithIpfsUrl ¶ added in v0.17.2
func (*Client) WithMarketUrl ¶ added in v0.15.0
func (*Client) WithUserAgent ¶ added in v0.15.0
type FilterMode ¶
type FilterMode = client.FilterMode
const ( FilterModeEqual FilterMode = "eq" FilterModeNotEqual FilterMode = "ne" FilterModeGt FilterMode = "gt" FilterModeGte FilterMode = "gte" FilterModeLt FilterMode = "lt" FilterModeLte FilterMode = "lte" FilterModeIn FilterMode = "in" FilterModeNotIn FilterMode = "nin" FilterModeRange FilterMode = "rg" FilterModeRegexp FilterMode = "re" )
type FormatType ¶
type FormatType = client.FormatType
const ( FormatJSON FormatType = "json" FormatCSV FormatType = "csv" )
type Query ¶ added in v0.17.2
func WithCursor ¶ added in v0.17.2
func WithOffset ¶ added in v0.17.2
func WithRights ¶ added in v0.17.2
func WithRights() Query
func WithStorage ¶ added in v0.17.2
func WithStorage() Query
func WithTimeRange ¶ added in v0.17.2
func WithUnpack ¶ added in v0.17.2
func WithUnpack() Query
Click to show internal directories.
Click to hide internal directories.