Documentation
¶
Index ¶
- func AddAndLoadComponents(args ...Component) error
- func AddComponents(args ...Component)
- func LoadAllComponents() error
- func Run(args ...Component) error
- type App
- type Component
- type Option
- func Context(ctx context.Context) Option
- func ID(id string) Option
- func Metadata(md map[string]interface{}) Option
- func Name(name string) Option
- func Servers(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 ¶
func AddAndLoadComponents ¶
AddAndLoadComponents 添加并加载指定组件
Types ¶
Click to show internal directories.
Click to hide internal directories.