servers

package
v0.0.0-...-a193200 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCServer

func GRPCServer(
	ctx context.Context,
	name string,
	host string,
	port uint16,
	registrations []GRPCRegistration,
) error

GRPCServer starts a gRPC server.

func HTTPServer

func HTTPServer(ctx context.Context, mux http.Handler, name string, host string, port uint16) error

HTTPServer starts a http server.

Types

type GRPCRegistration

type GRPCRegistration func(server *grpc.Server) error

GRPCRegistration is the signature for gRPC registrations against a server.

Jump to

Keyboard shortcuts

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