Documentation
¶
Index ¶
- func NewContext(ctx context.Context, s AppInfo) context.Context
- type App
- type AppInfo
- type Option
- func AfterStart(fn func(context.Context) error) Option
- func AfterStop(fn func(context.Context) error) Option
- func BeforeStart(fn func(context.Context) error) Option
- func BeforeStop(fn func(context.Context) error) Option
- func Context(ctx context.Context) Option
- func Endpoint(endpoints ...*url.URL) Option
- func ID(id string) Option
- func Logger(logger log.Logger) Option
- func Metadata(md map[string]string) Option
- func Name(name string) Option
- func Registry(r registry.Registry) Option
- func RegistryTimeout(t time.Duration) Option
- func Signal(sigs ...os.Signal) Option
- func StopTimeout(t time.Duration) Option
- func Version(version string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppInfo ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
component
|
|
|
contrib
|
|
|
broker/nats
module
|
|
|
locator/redis
module
|
|
|
logger/zerolog
module
|
|
|
network/websocket
module
|
|
|
registry/consul
module
|
|
|
registry/nacos
module
|
|
|
proto
Package proto 定义 protobuf 编解码器。
|
Package proto 定义 protobuf 编解码器。 |
|
pkg
|
|
Click to show internal directories.
Click to hide internal directories.