Documentation ¶
Index ¶
- func NewContext(ctx context.Context, s AppInfo) context.Context
- type App
- type AppInfo
- type 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 Registrar(r registry.Registrar) Option
- func RegistrarTimeout(t time.Duration) Option
- func Server(srv ...transport.Server) 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 App ¶
type App struct {
// contains filtered or unexported fields
}
type AppInfo ¶
type Option ¶
type Option func(o *options)
func RegistrarTimeout ¶
RegistrarTimeout with registrar timeout.
Directories ¶
Path | Synopsis |
---|---|
contrib
|
|
config/apollo
Module
|
|
log/zap
Module
|
|
metrics/prometheus
Module
|
|
registry/etcd
Module
|
|
example
|
|
internal
|
|
toolkit
|
|
Click to show internal directories.
Click to hide internal directories.