container

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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