Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ IsEnabled: false, GRPCIngestAddress: "localhost:50051", GRPCIngestMaxCallSizeBytes: 50 * 1024 * 1024, }
DefaultConfig defines the default config for the sidecar query server.
Functions ¶
func NewSidecarQueryServerIngester ¶
func NewSidecarQueryServerIngester(poolsIngester domain.PoolsTransformer, appCodec codec.Codec, keepers domain.SQSIngestKeepers, sqsGRPCClient domain.SQSGRPClient) domain.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"` // GRPCIngestAddress defines the gRPC address of the sidecar query server ingest. GRPCIngestAddress string `mapstructure:"grpc-ingest-address"` // GRPCIngestMaxCallSizeBytes defines the maximum size of a gRPC ingest call in bytes. GRPCIngestMaxCallSizeBytes int `mapstructure:"grpc-ingest-max-call-size-bytes"` }
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) (domain.Ingester, error)
Initialize initializes the sidecar query server and returns the ingester.
Click to show internal directories.
Click to hide internal directories.