client

package
v0.0.0-...-d9430aa Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexerClient

type IndexerClient struct {
	Ctx    context.Context
	Cfg    *IndexerClientConfig
	Client protobuf.IndexerRpcServiceClient
	Cancel func()
}

func NewIndexerClient

func NewIndexerClient(cfg *IndexerClientConfig) (*IndexerClient, error)

func (IndexerClient) GetLatestBlock

func (ic IndexerClient) GetLatestBlock() (*protobuf.LatestBlockRep, error)

type IndexerClientConfig

type IndexerClientConfig struct {
	IndexerSocket string `json:"indexer_socket"`
}

type LawClient

type LawClient struct {
	Ctx    context.Context
	Cfg    *LawClientConfig
	Client protobuf.LawRpcServiceClient
	Cancel func()
}

func NewLawClient

func NewLawClient(cfg *LawClientConfig) (*LawClient, error)

func (*LawClient) GetGiantWhaleWalletAddressLaw

func (lc *LawClient) GetGiantWhaleWalletAddressLaw() (*protobuf.GiantWhaleWalletAddressLawRep, error)

func (*LawClient) GetNftCollectionsLaw

func (lc *LawClient) GetNftCollectionsLaw() (*protobuf.NftCollectionsLawRep, error)

func (*LawClient) GetSingleNftLaw

func (lc *LawClient) GetSingleNftLaw() (*protobuf.SingleNftLawRep, error)

type LawClientConfig

type LawClientConfig struct {
	LawSocket string `json:"law_socket"`
}

type ScrapyClient

type ScrapyClient struct {
	Ctx    context.Context
	Cfg    *ScrapyClientConfig
	Client protobuf.GiantWhaleServiceClient
	Cancel func()
}

func NewScrapyClient

func NewScrapyClient(cfg *ScrapyClientConfig) (*ScrapyClient, error)

type ScrapyClientConfig

type ScrapyClientConfig struct {
	ScrapySocket string `json:"scrapy_socket"`
}

Jump to

Keyboard shortcuts

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