option

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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) Name

func (CompressionOption) Name() string

func (CompressionOption) ServerOption

type KeepAliveOption

type KeepAliveOption struct {
}

KeepAliveOption keepalive option

func (KeepAliveOption) 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) Name

func (TLSOption) Name() string

Name return the name of option

func (TLSOption) ServerOption

func (t TLSOption) ServerOption(cfg *conf.Configuration) grpc.ServerOption

Jump to

Keyboard shortcuts

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