package
0.0.0-20231027131641-93b1e7503408
Repository: https://github.com/lightstar/golib.git
Documentation: pkg.go.dev

# Functions

MustNew function creates new server with provided options and panics on any error.
New function creates new server with provided options.
WithAddress option applies provided address that will be listened to.
WithConfig option retrieves configuration from provided configuration service.
WithLogger option applies provided logger.
WithName option applies provided server name.
WithRegisterFn option applies provided register function.

# Constants

DefAddress is the default server's address that will be listened to.
DefName is the default server's name.

# Structs

Config structure with server configuration.
Server structure that provides grpc server functionality.

# Interfaces

ConfigService interface used to obtain configuration from somewhere into some specific structure.

# Type aliases

Option function that is fed to New and MustNew.
RegisterFn callback function that is called before listening in order to register any user-defined grpc service.