Documentation
¶
Overview ¶
Package container includes the Container type, witch contains a collection of modules.
Index ¶
- type CloserProvider
- type CommandProvider
- type Container
- func (c *Container) AddModule(module interface{})
- func (c *Container) ApplyCron(crontab *cron.Cron)
- func (c *Container) ApplyGRPCServer(server *grpc.Server)
- func (c *Container) ApplyRootCommand(command *cobra.Command)
- func (c *Container) ApplyRouter(router *mux.Router)
- func (c *Container) ApplyRunGroup(g *run.Group)
- func (c *Container) Modules() ifilter.Collection
- func (c *Container) Shutdown()
- type CronProvider
- type GrpcProvider
- type HttpProvider
- type RunProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloserProvider ¶
type CloserProvider interface {
ProvideCloser()
}
type CommandProvider ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func (*Container) ApplyGRPCServer ¶
func (*Container) ApplyRootCommand ¶
func (*Container) ApplyRouter ¶
func (*Container) ApplyRunGroup ¶
func (*Container) Modules ¶
func (c *Container) Modules() ifilter.Collection
type CronProvider ¶
type GrpcProvider ¶
type HttpProvider ¶
type RunProvider ¶
Click to show internal directories.
Click to hide internal directories.