Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ IsEnabled: false, StorageHost: "localhost", StoragePort: "6379", }
DefaultConfig defines the default config for the sidecar query server.
Functions ¶
func NewSidecarQueryServerIngester ¶
func NewSidecarQueryServerIngester(poolsIngester, chainInfoIngester domain.AtomicIngester, txManager repository.TxManager) ingest.Ingester
NewSidecarQueryServerIngester creates a new sidecar query server ingester. poolsRepository is the storage for pools. gammKeeper is the keeper for Gamm pools.
Types ¶
type Config ¶
type Config struct { // IsEnabled defines if the sidecar query server is enabled. IsEnabled bool `mapstructure:"enabled"` // Storage defines the storage host and port. StorageHost string `mapstructure:"db-host"` StoragePort string `mapstructure:"db-port"` }
Config defines the config for the sidecar query server.
func NewConfigFromOptions ¶
func NewConfigFromOptions(opts servertypes.AppOptions) Config
NewConfigFromOptions returns a new sidecar query server config from the given options.
func (Config) Initialize ¶
func (c Config) Initialize(appCodec codec.Codec, keepers domain.SQSIngestKeepers) (ingest.Ingester, error)
Initialize initializes the sidecar query server and returns the ingester.
Click to show internal directories.
Click to hide internal directories.