cosmos-sdk/server/v2/streaming/config.go
Marko d7cc6de7cc
chore: upstream more changes from v2 (#20387)
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
2024-05-17 10:58:52 +00:00

26 lines
1.5 KiB
Go

package streaming
// State Streaming configuration
// StreamingConfig defines application configuration for external streaming services
type StreamingConfig struct {
ListenerConfig ListenerConfig `mapstructure:"listener-config" toml:"listener-config" comment:"ListenerConfig defines application configuration for ABCIListener streaming service"`
}
// ListenerConfig defines application configuration for ABCIListener streaming service
type ListenerConfig struct {
// List of kv store keys to stream out via gRPC.
// The store key names MUST match the module's StoreKey name.
//
// Example:
// ["acc", "bank", "gov", "staking", "mint"[,...]]
// ["*"] to expose all keys.
Keys []string `mapstructure:"keys" toml:"keys" comment:"List of kv store keys to stream out via gRPC. The store key names MUST match the module's StoreKey name. Example: [\"acc\", \"bank\", \"gov\", \"staking\", \"mint\"[,...]] [\"*\"] to expose all keys."`
// The plugin name used for streaming via gRPC.
// Streaming is only enabled if this is set.
// Supported plugins: abci
Plugin string `mapstructure:"plugin" toml:"plugin" comment:"The plugin name used for streaming via gRPC. Streaming is only enabled if this is set. Supported plugins: abci"`
// stop-node-on-err specifies whether to stop the node on message delivery error.
StopNodeOnErr bool `mapstructure:"stop-node-on-err" toml:"stop-node-on-err" comment:"stop-node-on-err specifies whether to stop the node on message delivery error."`
}