sigrpc

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionWithX509KeyPair added in v2.3.2

func OptionWithX509KeyPair(certPemFile, certKeyFile string) (grpc.ServerOption, error)

func TcpListener added in v2.3.2

func TcpListener(addr string) (net.Listener, error)

func TransportCredentialsOption added in v2.3.2

func TransportCredentialsOption(certPemFile string, serverNameOverride string) (grpc.DialOption, error)

func WithDefaultDialBlock added in v2.3.2

func WithDefaultDialBlock() grpc.DialOption

func WithDefaultKeepAlive added in v2.3.2

func WithDefaultKeepAlive() grpc.ServerOption

func WithDefaultKeepAliveEnforcement added in v2.3.2

func WithDefaultKeepAliveEnforcement() grpc.ServerOption

func WithDefaultKeepAliveParams added in v2.3.2

func WithDefaultKeepAliveParams() grpc.DialOption

func WithDefaultServiceConfig added in v2.3.2

func WithDefaultServiceConfig(defaultServiceConfig string) grpc.DialOption

func WithDialBlock added in v2.3.3

func WithDialBlock(dialBlock bool) grpc.DialOption

func WithInsecureTransportCreds added in v2.3.2

func WithInsecureTransportCreds() grpc.DialOption

func WithKeepAliveParams added in v2.3.3

func WithKeepAliveParams(keepAliveTime, keepAliveTimeout time.Duration, permitWithoutStream bool) grpc.DialOption

func WithTLSConfigTransportCreds added in v2.3.2

func WithTLSConfigTransportCreds(c *tls.Config) grpc.DialOption

Types

type Client added in v2.3.2

type Client struct {
	*grpc.ClientConn
}

func NewClient

func NewClient(address string, opts ...grpc.DialOption) (*Client, error)

func NewClientWithDialTimeout added in v2.3.3

func NewClientWithDialTimeout(address string, dialTimeout time.Duration, opts ...grpc.DialOption) (*Client, error)

type Server

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

func NewServer

func NewServer(listener net.Listener, opts ...grpc.ServerOption) (*Server, error)

func (*Server) Close

func (s *Server) Close() 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