grpcserver

package
v0.0.0-...-1dc5a0e Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCServer

type GRPCServer struct {
	Detector       protocol.DetectorServer
	RequestTimeout time.Duration
	ContextWrap    contextWrapper
	Logger         *zap.Logger
	// Secure connection certificates
	CertFile string
	KeyFile  string
}

GRPCServer wrapper object

func (*GRPCServer) RunGRPC

func (s *GRPCServer) RunGRPC(ctx context.Context, listen string) error

RunGRPC server

func (*GRPCServer) RunHTTP

func (s *GRPCServer) RunHTTP(ctx context.Context, address string) error

RunHTTP server

Jump to

Keyboard shortcuts

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