state

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandQueue = "/status/command"
	EventQueue   = "/status"

	UPDATESERVICESTATUS     = "updateservicestatus"
	UPDATESERVICEITEMSTATUS = "updateserviceitemstatus"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Command string `json:"command"`
}

type StateClient

type StateClient struct {
	Bus messagebus.Messagebus
}

func (*StateClient) SendCommand

func (s *StateClient) SendCommand(command Command) error

func (*StateClient) SendCommandString

func (s *StateClient) SendCommandString(command string)

func (*StateClient) UpdateServiceItemStatus

func (s *StateClient) UpdateServiceItemStatus(si auth.ServiceItem) error

func (*StateClient) UpdateServiceStatus

func (s *StateClient) UpdateServiceStatus(service auth.Service) error

type StateService

type StateService struct {
	Bus messagebus.Messagebus
}

func (*StateService) ReceiveCommand

func (s *StateService) ReceiveCommand(commands chan<- *Command) error

Jump to

Keyboard shortcuts

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