Documentation
¶
Index ¶
- func GetCmds(options *Options) []cli.Command
- func GetSrvConfig(app *ServiceApp, args ...string) *service.Config
- func NewContext(ctx context.Context, s AppInfo) context.Context
- func RegisterFunc(f ...func(cfg *Options) cli.Command)
- type App
- type AppInfo
- type AppMode
- type AppService
- type Option
- func ID(id string) Option
- func IpMask(mask string) Option
- func LogConcurrency(concurrency int) Option
- func Metadata(md map[string]string) Option
- func Server(srv ...transport.Server) Option
- func ServiceDependencies(dependencies ...string) Option
- func ServiceOption(key string, val interface{}) Option
- func TraceAddr(addr string) Option
- func WithAppMode(mode AppMode) Option
- type Options
- type ServiceApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSrvConfig ¶
func GetSrvConfig(app *ServiceApp, args ...string) *service.Config
GetSrvConfig SrvCfg
func NewContext ¶
NewContext returns a new Context that carries value.
Types ¶
type AppInfo ¶
type AppService ¶
type ServiceApp ¶
type ServiceApp struct {
// contains filtered or unexported fields
}
ServiceApp ServiceApp
func (*ServiceApp) Endpoint ¶
func (p *ServiceApp) Endpoint() []registry.ServerItem
func (*ServiceApp) ID ¶
func (p *ServiceApp) ID() string
func (*ServiceApp) Metadata ¶
func (p *ServiceApp) Metadata() map[string]string
Click to show internal directories.
Click to hide internal directories.