services

package
v10.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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