Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Regist

func Regist(name string, s Service, args interface{}, log *logger.Logger)

func Stop

func Stop(name string)

Types

type Service

type Service interface {
	Start(args interface{}, log *logger.Logger) (err error)
	Clean()
}

type ServiceItem

type ServiceItem struct {
	S    Service
	Args interface{}
	Name string
	Log  *logger.Logger
}

func GetService

func GetService(name string) *ServiceItem

func Run

func Run(name string, args interface{}) (service *ServiceItem, err error)

Source Files

Directories

Path Synopsis