handler_manager

package
v0.0.0-...-12a776e Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: MPL-2.0 Imports: 10 Imported by: 1

Documentation

Overview

Package handler_manager creates a socket that manages the handler

Index

Constants

View Source
const (
	Incomplete  = "incomplete"
	Ready       = "ready"
	SocketIdle  = "idle"
	SocketReady = "ready"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerManager

type HandlerManager struct {
	// contains filtered or unexported fields
}

func New

func New(parent *log.Logger, frontend *frontend.Frontend, instanceManager *instances.Parent, startInstanceManager func() error) *HandlerManager

New creates a new HandlerManager

func (*HandlerManager) PartStatuses

func (m *HandlerManager) PartStatuses() key_value.KeyValue

PartStatuses returns statuses of the base handler parts.

Intended to be used by the extending handlers.

func (*HandlerManager) Route

func (m *HandlerManager) Route(cmd string, handle route.HandleFunc0) error

Route overrides the default route with the given handle. Returns an error if the command is not supported. Returns an error if HandlerManager is running.

func (*HandlerManager) SetClose

SetClose adds a close signal to the queue.

func (*HandlerManager) SetConfig

func (m *HandlerManager) SetConfig(config *config.Handler)

SetConfig sets the link to the configuration of the handler

func (*HandlerManager) Start

func (m *HandlerManager) Start() error

Start the HandlerManager

func (*HandlerManager) Status

func (m *HandlerManager) Status() string

Status returns the socket status of the HandlerManager.

Jump to

Keyboard shortcuts

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