Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientParameters ¶
func GetClientParameters() keepalive.ClientParameters
GetClientParameters used to config grpc connection keep alive
func SetConfiguration ¶ added in v2.0.5
func SetConfiguration(config *Configuration)
Types ¶
type ATConfig ¶
type ATConfig struct { DSN string `yaml:"dsn" json:"dsn,omitempty"` ReportRetryCount int `default:"5" yaml:"reportRetryCount" json:"reportRetryCount,omitempty"` ReportSuccessEnable bool `default:"false" yaml:"reportSuccessEnable" json:"reportSuccessEnable,omitempty"` LockRetryInterval time.Duration `default:"10ms" yaml:"lockRetryInterval" json:"lockRetryInterval,omitempty"` LockRetryTimes int `default:"30" yaml:"lockRetryTimes" json:"lockRetryTimes,omitempty"` }
ATConfig
type Configuration ¶
type Configuration struct { Addressing string `yaml:"addressing" json:"addressing"` ServerAddressing string `yaml:"serverAddressing" json:"serverAddressing"` TMConfig TMConfig `yaml:"tm" json:"tm,omitempty"` ATConfig ATConfig `yaml:"at" json:"at,omitempty"` ClientParameters struct { Time time.Duration `yaml:"time"` Timeout time.Duration `yaml:"timeout"` PermitWithoutStream bool `yaml:"permitWithoutStream"` } `yaml:"clientParameters"` ClientTLS struct { Enable bool `yaml:"enable"` CertFilePath string `yaml:"certFilePath"` ServerName string `yaml:"serverName"` } `yaml:"clientTLS"` Log struct { LogPath string `yaml:"logPath"` LogLevel log.Level `yaml:"logLevel"` } `yaml:"log"` }
Configuration client configuration
func InitConfiguration ¶
func InitConfiguration(configurationPath string) *Configuration
InitConfiguration init configuration from a file path
func (*Configuration) GetClientParameters ¶
func (configuration *Configuration) GetClientParameters() keepalive.ClientParameters
GetClientParameters used to config grpc connection keep alive
func (*Configuration) GetClientTLS ¶ added in v2.0.7
func (configuration *Configuration) GetClientTLS() credentials.TransportCredentials
Click to show internal directories.
Click to hide internal directories.