server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package server provides functions to configure, start and shutdown gRPC services

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupGrpcServer

func SetupGrpcServer(port, tlsCertFile, tlsKeyFile string, allowedIPs, deniedIPs []string, startTLS, blockedByDefault,
	trustProxy, telemetry bool) (net.Listener, *grpc.Server, error)

SetupGrpcServer configures the port, filtering & logging interceptors for a gRPC Server.

func StartGrpcServer

func StartGrpcServer(listen net.Listener, server *grpc.Server, startTLS bool)

StartGrpcServer starts the given gRPC server on the specified listener.

func WaitServerComplete

func WaitServerComplete(srv *http.Server, server *grpc.Server) error

WaitServerComplete waits for a signal (interrupt) to terminate the give services.

Types

This section is empty.

Jump to

Keyboard shortcuts

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