service

package
v0.0.0-...-98f9077 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Name string
	Task int
	// contains filtered or unexported fields
}

Service ...

func NewService

func NewService(cpuCfg c.Config) *Service

NewService ...

func (*Service) HandleWorker

func (s *Service) HandleWorker() error

HandleWorker ...

func (*Service) NewWorker

func (s *Service) NewWorker()

NewWorker ...

func (*Service) Register

func (s *Service) Register(name string, val interface{}) error

AddTask ...

func (*Service) Send

func (s *Service) Send(signature *tasks.Signature) (result *result.AsyncResult, e error)

Send ...

Jump to

Keyboard shortcuts

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