sigrpc

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(
	addrs, resolverScheme, resolverSchemeName string,
	keepAliveTime, keepAliveTimeout int, keepAlivePermitWithoutStream bool,
	caCertPem, certServername string,
	defaultServiceConfig string, dialBlock bool, dialTimeoutSecond int,
) (*grpc.ClientConn, error)

NewClient

Types

type Server

type Server struct {
	Svr *grpc.Server
	// contains filtered or unexported fields
}

func NewServer

func NewServer(listenAddr string,
	enforcementPolicyUse bool, enforcementPolicyMinTime int, enforcementPolicyPermitWithoutStream bool,
	certPem, certKey string,
	keepAliveMaxConnIdle int, keepAliveMaxConnAge int, keepAliveMaxConnAgeGrace int, keepAliveTime int, keepAliveTimeout int,
	healthCheckUse bool,
	opt ...grpc.ServerOption) (*Server, error)

NewServer

func (*Server) Close

func (s *Server) Close() error

func (*Server) Serve

func (s *Server) Serve(lis net.Listener) error

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop() error

Directories

Path Synopsis
tests

Jump to

Keyboard shortcuts

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