rpc

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	grpc.ServiceRegistrar

	Address() string

	OnStart(callback func())
	OnStop(callback func())
	OnError(callback func(err error))

	Start(ctx context.Context, wg *sync.WaitGroup)
	Stop()
	Shutdown()
}

func New added in v1.0.5

func New(tlsConfig *tls.Config, logger logger.Logger) Server

func NewFromConfig added in v1.0.5

func NewFromConfig(config *config.Grpc, tlsConfig *tls.Config, logger logger.Logger) Server

func NewWithOverrides added in v1.0.5

func NewWithOverrides(network, address string,
	enforcement *keepalive.EnforcementPolicy,
	keepAliveTimeouts *keepalive.ServerParameters,
	tlsConfig *tls.Config,
	logger logger.Logger) Server

Jump to

Keyboard shortcuts

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