Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeepaliveEnforcementPolicy ¶ added in v0.5.1
func KeepaliveEnforcementPolicy(cfg *conf.Configuration) grpc.ServerOption
KeepaliveEnforcementPolicy keepalive enforcement policy for the server.
Types ¶
type CompressionOption ¶
type CompressionOption struct { }
CompressionOption compression option
compression: name: gzip level: 1
TODO add github.com/klauspost/compress to improve speed
func (CompressionOption) DialOption ¶
func (CompressionOption) DialOption(cfg *conf.Configuration) grpc.DialOption
func (CompressionOption) Name ¶
func (CompressionOption) Name() string
func (CompressionOption) ServerOption ¶
func (CompressionOption) ServerOption(cfg *conf.Configuration) grpc.ServerOption
type KeepAliveOption ¶
type KeepAliveOption struct { }
KeepAliveOption keepalive option
func (KeepAliveOption) DialOption ¶
func (KeepAliveOption) DialOption(cfg *conf.Configuration) grpc.DialOption
func (KeepAliveOption) Name ¶
func (KeepAliveOption) Name() string
func (KeepAliveOption) ServerOption ¶
func (KeepAliveOption) ServerOption(cfg *conf.Configuration) grpc.ServerOption
type TLSOption ¶
type TLSOption struct { }
TLSOption tls option. it supports file or cert string if client `tls:` is empty, it will use insecure.NewCredentials()
func (TLSOption) DialOption ¶
func (t TLSOption) DialOption(cfg *conf.Configuration) grpc.DialOption
func (TLSOption) ServerOption ¶
func (t TLSOption) ServerOption(cfg *conf.Configuration) grpc.ServerOption
Click to show internal directories.
Click to hide internal directories.