config

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port                   uint32                 `toml:"port"`
	HyperBlockPath         string                 `toml:"hyperBlockPath"`
	HyperBlocksPath        string                 `toml:"hyperBlocksPath"`
	HyperBlocksBatchSize   uint32                 `toml:"hyperBlocksBatchSize"`
	MultiversxProxyUrl     string                 `toml:"multiversxProxyUrl"`
	RequestTimeOutSec      uint64                 `toml:"requestTimeOutSec"`
	HyperBlockQueryOptions HyperBlockQueryOptions `toml:"hyperBlockQueryOptions"`
}

Config holds the config for covalent proxy

func LoadConfig

func LoadConfig(tomlFile string) (*Config, error)

LoadConfig will load the Config from the provided file

type FlagsLog

type FlagsLog struct {
	WorkingDir       string
	LogLevel         string
	DisableAnsiColor bool
	SaveLogFile      bool
	EnableLogName    bool
}

FlagsLog holds the log flags

type HyperBlockQueryOptions

type HyperBlockQueryOptions struct {
	WithLogs            bool   `toml:"withLogs"`
	WithAlteredAccounts bool   `toml:"withAlteredAccounts"`
	NotarizedAtSource   bool   `toml:"notarizedAtSource"`
	Tokens              string `toml:"tokens"`
}

HyperBlockQueryOptions holds the hyper block query params options

type HyperBlocksQueryOptions

type HyperBlocksQueryOptions struct {
	QueryOptions HyperBlockQueryOptions
	BatchSize    uint32
}

HyperBlocksQueryOptions holds the hyper blocks query params options

Jump to

Keyboard shortcuts

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