Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertGrpcStatus ¶ added in v0.5.19
func MakeGRPCConnect ¶ added in v0.5.19
func MakeGRPCConnect(target string, isTLS bool, dialOptions GrpcDialOptions) (conn *grpc.ClientConn, err error)
Types ¶
type AnswLogConfig ¶ added in v0.5.7
type GrpcDialOptions ¶ added in v0.5.19
type Gun ¶
type Gun struct { DebugLog bool Conf GunConfig Aggr core.Aggregator core.GunDeps Stub grpcdynamic.Stub Services map[string]desc.MethodDescriptor AnswLog *zap.Logger }
func (*Gun) AnswLogging ¶ added in v0.5.19
type GunConfig ¶
type GunConfig struct { Target string `validate:"required"` ReflectPort int64 `config:"reflect_port"` Timeout time.Duration `config:"timeout"` // grpc request timeout TLS bool `config:"tls"` DialOptions GrpcDialOptions `config:"dial_options"` AnswLog AnswLogConfig `config:"answlog"` ClientNumber int `config:"client-number,omitempty"` Enabled bool `config:"enabled"` } `config:"shared-client,omitempty"` }
func DefaultGunConfig ¶ added in v0.5.7
func DefaultGunConfig() GunConfig
type SharedDeps ¶ added in v0.5.22
type SharedDeps struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.