clients

package
v0.0.0-...-608e6a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caller

type Caller interface {
	Call(context.Context, *message.Request) (*message.Response, error)
}

type Config

type Config struct {
	GrpcPool      *GrpcPoolConfig      `yaml:"grpc_pool" json:"grpc_pool"`
	GrpcKeepalive *GrpcKeepaliveConfig `yaml:"grpc_keepalive" json:"grpc_keepalive"`

	TlsEnable bool        `yaml:"tls_enable" json:"tls_enable"`
	TlsConfig *tls.Config `yaml:"tls_config" json:"tls_config"`
}

type GrpcKeepaliveConfig

type GrpcKeepaliveConfig struct {
	Time                time.Duration `yaml:"time" json:"time"`
	Timeout             time.Duration `yaml:"timeout" json:"timeout"`
	PermitWithoutStream bool          `yaml:"permit_without_stream" json:"permit_without_stream"`
}

type GrpcPoolConfig

type GrpcPoolConfig struct {
	Enable      bool          `yaml:"enable" json:"enable"`
	InitialCap  int           `yaml:"initial_cap" json:"initial_cap"`
	MaxCap      int           `yaml:"max_cap" json:"max_cap"`
	MaxIdle     int           `yaml:"max_idle" json:"max_idle"`
	IdleTimeout time.Duration `yaml:"idle_timeout" json:"idle_timeout"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL