serve

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log *logrus.Entry) *cobra.Command

New ...

func Serve

func Serve(ctx context.Context, log *logrus.Entry, listeners map[string]net.Listener, s server.GRPCServer) error

Serve starts the GRPC server on the provided socketPath. If the port is non-zero, it listens to the TCP port instead of the unix domain socket.

func SetupListeners

func SetupListeners(addresses []string, socketGroup string) (listeners map[string]net.Listener, err error)

SetupListeners takes a list of addresses to create listeners. If the address is prefixed with 'unix://', it is assumed to be a UNIX domain socket, in which case appropriate permissions are tentatively set and the group owner is set to socketGroup. Otherwise, the address is assumed to be TCP. This function returns a map with addresses as keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

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