Documentation ¶
Index ¶
- func NewContext(ctx context.Context, s AppI) context.Context
- type App
- type AppI
- type Option
- func WithContext(ctx context.Context) Option
- func WithEndpoint(endpoints ...*url.URL) Option
- func WithID(id string) Option
- func WithLogger(logger log.Logger) Option
- func WithMetadata(md map[string]string) Option
- func WithName(name string) Option
- func WithRegistrar(r registry.Registrar) Option
- func WithRegistrarTimeout(t time.Duration) Option
- func WithServer(srv ...transport.Server) Option
- func WithSignal(sigs ...os.Signal) Option
- func WithStopTimeout(t time.Duration) Option
- func WithVersion(version string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppI ¶
type Option ¶
type Option func(o *option)
func WithContext ¶
func WithEndpoint ¶
func WithLogger ¶
func WithMetadata ¶
func WithRegistrar ¶
WithRegistrar with service registry.
func WithRegistrarTimeout ¶
WithRegistrarTimeout with registrar timeout.
func WithServer ¶
func WithStopTimeout ¶
WithStopTimeout with app stop timeout.
func WithVersion ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
kitx
Module
|
|
protoc-gen-go-errors-kitx
Module
|
|
protoc-gen-go-http-kitx
Module
|
|
nolint:gomnd
|
nolint:gomnd |
example
module
|
|
internal
|
|
kit
|
|
pkg
|
|
plugin
|
|
logger/logrus
Module
|
|
logger/zap
Module
|
|
registry/etcd
Module
|
|
Click to show internal directories.
Click to hide internal directories.