core

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerCore

type WorkerCore interface {
	AddJob(services ...model.Service) WorkerCore
	Start()
}

func NewWorkerCore

func NewWorkerCore(config *viper.Viper) WorkerCore

type WorkerCoreEntity

type WorkerCoreEntity struct {
	Core      go_worker.Worker
	Namespace string
	Jobs      []*model.JobInfo
}

func (*WorkerCoreEntity) AddJob

func (g *WorkerCoreEntity) AddJob(services ...model.Service) WorkerCore

func (*WorkerCoreEntity) Start

func (g *WorkerCoreEntity) Start()

Jump to

Keyboard shortcuts

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