container

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package container includes the Container type, witch contains a collection of modules.

Index

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 CommandProvider interface {
	ProvideCommand(command *cobra.Command)
}

type Container

type Container struct {
	// contains filtered or unexported fields
}

func (*Container) AddModule

func (c *Container) AddModule(module interface{})

func (*Container) ApplyCron

func (c *Container) ApplyCron(crontab *cron.Cron)

func (*Container) ApplyGRPCServer

func (c *Container) ApplyGRPCServer(server *grpc.Server)

func (*Container) ApplyRootCommand

func (c *Container) ApplyRootCommand(command *cobra.Command)

func (*Container) ApplyRouter

func (c *Container) ApplyRouter(router *mux.Router)

func (*Container) ApplyRunGroup

func (c *Container) ApplyRunGroup(g *run.Group)

func (*Container) Modules

func (c *Container) Modules() ifilter.Collection

func (*Container) Shutdown

func (c *Container) Shutdown()

type CronProvider

type CronProvider interface {
	ProvideCron(crontab *cron.Cron)
}

type GrpcProvider

type GrpcProvider interface {
	ProvideGrpc(server *grpc.Server)
}

type HttpProvider

type HttpProvider interface {
	ProvideHttp(router *mux.Router)
}

type RunProvider

type RunProvider interface {
	ProvideRunGroup(group *run.Group)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL