service

package
v0.0.0-...-53b0f00 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "basic_app"
View Source
const Version = "0.0.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Cfg *configs.Config
	// contains filtered or unexported fields
}

Base Container must contain all service shared by all command you must add service getter in this package you can add here you service definition complex service can have they're own package

func NewContainer

func NewContainer(cfg *configs.Config) *Container

func (*Container) GetMyContextualizedService

func (container *Container) GetMyContextualizedService(ctx context.Context) *MyContextualizeService

you need to define this kinf of service only when the service only live in context

func (*Container) GetMyLittleService

func (container *Container) GetMyLittleService() func()

func (*Container) GetMyService

func (container *Container) GetMyService() *my_service.MyService

service can be live in they're own package

func (*Container) Load

func (container *Container) Load() error

func (*Container) Unload

func (container *Container) Unload() error

type MyContextualizeService

type MyContextualizeService struct {
}

func (*MyContextualizeService) Find

func (m *MyContextualizeService) Find()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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