Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.