Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCacheTTL ¶
DefaultCacheTTL Duration the default time an object is valid (this expects object to be requested with hash)
func MinCacheTTL ¶
MinCacheTTL Duration the minimum time an object is valid
func TestCollatorAddress ¶
func TestCollatorAddress() string
TestCollatorAddress returns string address of collator used for testing (Foundation 04)
Types ¶
type ChainConfig ¶
type ChainConfig struct { Endpoints []string // Snap point Snap SnapConfig // Timeouts DialTimeout time.Duration SubscribeTimeout time.Duration // Json folders NetworkSpecs string NetworkSpecsVersion uint32 }
func GetChainConfig ¶
func GetChainConfig( endpoint string, block int64, round uint32, ) ChainConfig
GetChainConfig ChainConfig returns the default config for a given network or the default network
func GetDefaultChainConfig ¶
func GetDefaultChainConfig() ChainConfig
GetDefaultChainConfig ChainConfig default values, main network
func (*ChainConfig) ReadSpecs ¶
func (cg *ChainConfig) ReadSpecs() ([]byte, error)
ReadSpecs will read network specification from the embedded file
func (*ChainConfig) RpcUrl ¶
func (cg *ChainConfig) RpcUrl() string
RpcUrl will return a random RPC address to connect to
type CollatorsPoolConfig ¶
func DefaultCollatorsPoolConfig ¶
func DefaultCollatorsPoolConfig() CollatorsPoolConfig
type HttpConfig ¶
type HttpConfig struct { Addr string UpdateInterval time.Duration ChainConfig ChainConfig DataPath string }
func GetDefaultHttpConfig ¶
func GetDefaultHttpConfig() HttpConfig
type SnapConfig ¶
type TableOptions ¶
func GetDefaultTableOptions ¶
func GetDefaultTableOptions() TableOptions
func (*TableOptions) GetSortKey ¶
func (to *TableOptions) GetSortKey() string
func (*TableOptions) GetSortMode ¶
func (to *TableOptions) GetSortMode() table.SortMode
func (*TableOptions) GetTableWidth ¶
func (to *TableOptions) GetTableWidth() int
Click to show internal directories.
Click to hide internal directories.