Documentation
¶
Index ¶
Constants ¶
View Source
const ( MetaOptionEnvPrefix = "envPrefix" MetaOptionVersion = "version" MetaOptionDescription = "description" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
GRPC() client.GRPCClient
HTTP() client.HTTPClient
}
type HTTPClient ¶
type Runtime ¶
type Runtime interface {
Meta() *meta.Meta
Log() logger.Logger
Client() Client
Package() Package
Server() Server
Config() Config
Plugin() Plugin
Tools() Tools
Service() toolkit.Service
Provide(constructor interface{})
Invoke(constructor interface{})
Start(ctx context.Context) error
Stop(ctx context.Context, err error)
RegisterOnStartHook(fn ...func(ctx context.Context) error)
RegisterOnStartSyncHook(fn ...func(ctx context.Context) error)
RegisterOnStopHook(fn ...func(ctx context.Context) error)
RegisterOnStopSyncHook(fn ...func(ctx context.Context) error)
}
Click to show internal directories.
Click to hide internal directories.