config

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagEnableDynamic = "config.enable-dynamic"

	FlagMempoolRecheck         = "mempool.recheck"
	FlagMempoolForceRecheckGap = "mempool.force_recheck_gap"
	FlagMempoolSize            = "mempool.size"
	FlagGasLimitBuffer         = "gas-limit-buffer"
	FlagEnableDynamicGp        = "enable-dynamic-gp"
	FlagDynamicGpWeight        = "dynamic-gp-weight"
)
View Source
const FlagApollo = "config.apollo"

Variables

This section is empty.

Functions

func RegisterDynamicConfig

func RegisterDynamicConfig()

Types

type ApolloClient

type ApolloClient struct {
	Namespace string
	*agollo.Client
	// contains filtered or unexported fields
}

func NewApolloClient

func NewApolloClient(oecConf *OecConfig) *ApolloClient

func (*ApolloClient) LoadConfig

func (a *ApolloClient) LoadConfig() (loaded bool)

type CustomChangeListener

type CustomChangeListener struct {
	// contains filtered or unexported fields
}

func (*CustomChangeListener) OnChange

func (c *CustomChangeListener) OnChange(changeEvent *storage.ChangeEvent)

func (*CustomChangeListener) OnNewestChange

func (c *CustomChangeListener) OnNewestChange(event *storage.FullChangeEvent)

type OecConfig

type OecConfig struct {
	// contains filtered or unexported fields
}

func GetOecConfig

func GetOecConfig() *OecConfig

func NewOecConfig

func NewOecConfig() *OecConfig

func (*OecConfig) GetDynamicGpWeight

func (c *OecConfig) GetDynamicGpWeight() int

func (*OecConfig) GetEnableDynamicGp

func (c *OecConfig) GetEnableDynamicGp() bool

func (*OecConfig) GetGasLimitBuffer

func (c *OecConfig) GetGasLimitBuffer() uint64

func (*OecConfig) GetMempoolForceRecheckGap

func (c *OecConfig) GetMempoolForceRecheckGap() int64

func (*OecConfig) GetMempoolRecheck

func (c *OecConfig) GetMempoolRecheck() bool

func (*OecConfig) GetMempoolSize

func (c *OecConfig) GetMempoolSize() int

func (*OecConfig) SetDynamicGpWeight

func (c *OecConfig) SetDynamicGpWeight(value int)

func (*OecConfig) SetEnableDynamicGp

func (c *OecConfig) SetEnableDynamicGp(value bool)

func (*OecConfig) SetGasLimitBuffer

func (c *OecConfig) SetGasLimitBuffer(value uint64)

func (*OecConfig) SetMempoolForceRecheckGap

func (c *OecConfig) SetMempoolForceRecheckGap(value int64)

func (*OecConfig) SetMempoolRecheck

func (c *OecConfig) SetMempoolRecheck(value bool)

func (*OecConfig) SetMempoolSize

func (c *OecConfig) SetMempoolSize(value int)

Jump to

Keyboard shortcuts

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