manager

package
v0.0.0-...-8010d25 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Manager that api manager

func NewManager

func NewManager(appConf config.AppConfig, daoManager *dao.Manager, dispatcher dispatcher.IDispatcher, registry registry.IRegistry, resolver discovery.Resolver) *Manager

func (*Manager) AddTask

func (m *Manager) AddTask(t *model.Task) error

func (*Manager) DeleteTask

func (m *Manager) DeleteTask(taskId string) error

func (*Manager) GetAgentClient

func (m *Manager) GetAgentClient() (agentservice.Client, error)

func (*Manager) GetAgentClientByServiceId

func (m *Manager) GetAgentClientByServiceId(serviceId string) (agentservice.Client, error)

func (*Manager) GetDispatcher

func (m *Manager) GetDispatcher() dispatcher.IDispatcher

func (*Manager) GetRegistry

func (m *Manager) GetRegistry() registry.IRegistry

func (*Manager) StartUpdate

func (m *Manager) StartUpdate()

func (*Manager) SyncService

func (m *Manager) SyncService()

SyncService sync service from registry

func (*Manager) UpdateAgentTasks

func (m *Manager) UpdateAgentTasks()

Jump to

Keyboard shortcuts

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