Documentation ¶
Index ¶
- Variables
- func CtxWithLog(ctx context.Context, log *zap.Logger) context.Context
- func CtxWithNotify(ctx context.Context) (context.Context, context.CancelFunc)
- func Exit(err error, log *zap.Logger)
- func LogFromCtx(ctx context.Context) *zap.Logger
- func MustLogFromCtx(ctx context.Context) *zap.Logger
- func Serve(ctx context.Context, srvs ...func(ctx context.Context) error) error
- type Config
- type Server
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CtxWithNotify ¶
Types ¶
type Config ¶
type Config struct { Network string `mapstructure:"network"` Address string `mapstructure:"address"` GracePeriod time.Duration `mapstructure:"grace_period"` }
func (*Config) InitDefault ¶
func (cfg *Config) InitDefault()
Click to show internal directories.
Click to hide internal directories.