Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientConfig ¶
type ClientConfig struct { TmConfig tm.TmConfig `yaml:"tm" json:"tm,omitempty" koanf:"tm"` RmConfig rm.Config `yaml:"rm" json:"rm,omitempty" koanf:"rm"` UndoConfig undo.Config `yaml:"undo" json:"undo,omitempty" koanf:"undo"` XaConfig sql.XAConfig `yaml:"xa" json:"xa" koanf:"xa"` }
func (*ClientConfig) RegisterFlagsWithPrefix ¶
func (c *ClientConfig) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet)
type Config ¶
type Config struct { Enabled bool `yaml:"enabled" json:"enabled,omitempty" koanf:"enabled"` ApplicationID string `yaml:"application-id" json:"application-id,omitempty" koanf:"application-id"` TxServiceGroup string `yaml:"tx-service-group" json:"tx-service-group,omitempty" koanf:"tx-service-group"` AccessKey string `yaml:"access-key" json:"access-key,omitempty" koanf:"access-key"` SecretKey string `yaml:"secret-key" json:"secret-key,omitempty" koanf:"secret-key"` EnableAutoDataSourceProxy bool `yaml:"enable-auto-data-source-proxy" json:"enable-auto-data-source-proxy,omitempty" koanf:"enable-auto-data-source-proxy"` DataSourceProxyMode string `yaml:"data-source-proxy-mode" json:"data-source-proxy-mode,omitempty" koanf:"data-source-proxy-mode"` AsyncWorkerConfig sql.AsyncWorkerConfig `yaml:"async" json:"async" koanf:"async"` TCCConfig tcc.Config `yaml:"tcc" json:"tcc" koanf:"tcc"` ClientConfig ClientConfig `yaml:"client" json:"client" koanf:"client"` GettyConfig remoteConfig.Config `yaml:"getty" json:"getty" koanf:"getty"` TransportConfig remoteConfig.TransportConfig `yaml:"transport" json:"transport" koanf:"transport"` ServiceConfig discovery.ServiceConfig `yaml:"service" json:"service" koanf:"service"` RegistryConfig discovery.RegistryConfig `yaml:"registry" json:"registry" koanf:"registry"` }
func (*Config) RegisterFlags ¶
Click to show internal directories.
Click to hide internal directories.