Documentation
¶
Index ¶
- func NewContext(ctx context.Context, info 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 Endpoints(endpoints ...*url.URL) Option
- func ID(id string) Option
- func Logger(logger log.LogWriter) Option
- func Metadata(metadata map[string]string) Option
- func Name(name string) Option
- func Registrar(r registry.Registrar) Option
- func RegistrarTimeout(timeout time.Duration) Option
- func Server(servers ...transport.Server) Option
- func Signal(sigs ...os.Signal) Option
- func StopTimeout(timeout time.Duration) Option
- func Tracer(tracer trace.TracerProvider) Option
- func Version(version string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppInfo ¶
type Option ¶
type Option func(opts *options)
func RegistrarTimeout ¶
func StopTimeout ¶
func Tracer ¶ added in v0.3.9
func Tracer(tracer trace.TracerProvider) Option
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
ellie
module
|
|
|
protoc-gen-ellie-go
module
|
|
|
protoc-gen-ellie-go-errors
module
|
|
|
protoc-gen-ellie-go-http
module
|
|
|
protoc-gen-go-ellie-errors
module
|
|
|
protoc-gen-go-ellie-http
module
|
|
|
contrib
|
|
|
registry/consul
module
|
|
|
internal
|
|
|
pkg
|
|
Click to show internal directories.
Click to hide internal directories.