disc

package
v0.0.0-...-6f62517 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UNKNOWN = 0
	MSM     = 1
	EC      = 2
	IDRAC   = 3
)
View Source
const (
	RESEND    = "resend"
	TERMINATE = "terminate"
)
View Source
const (
	CommandQueue = "/discovery/command"
	EventQueue   = "/discovery"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

type DiscoveryClient

type DiscoveryClient struct {
	Bus messagebus.Messagebus
}

func (*DiscoveryClient) GetService

func (d *DiscoveryClient) GetService(services chan<- *Service)

func (*DiscoveryClient) ResendAll

func (d *DiscoveryClient) ResendAll()

func (*DiscoveryClient) SendCommand

func (d *DiscoveryClient) SendCommand(command Command)

func (*DiscoveryClient) SendCommandString

func (d *DiscoveryClient) SendCommandString(command string)

type DiscoveryService

type DiscoveryService struct {
	Bus messagebus.Messagebus
}

func (*DiscoveryService) ReceiveCommand

func (d *DiscoveryService) ReceiveCommand(commands chan<- *Command)

func (*DiscoveryService) SendService

func (d *DiscoveryService) SendService(service Service) error

type Service

type Service struct {
	ServiceType int    `json:"serviceType"`
	Ip          string `json:"ip"`
}

Jump to

Keyboard shortcuts

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