power_state_topic

package
v0.0.0-...-7a62f64 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExchangeName                 = "power_state"
	ExchangeTypeTopic            = "topic"
	RequestStateChangeRequestKey = "power_state.request_state_change"
	StateValidationRequestKey    = "power_state.state_validation"
)

Variables

This section is empty.

Functions

func New

func New(channel *amqp.Channel) topic.PowerStateJob

Types

type PowerStateExchange

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

func (*PowerStateExchange) Init

func (t *PowerStateExchange) Init(ctx context.Context, channel *amqp.Channel) error

func (*PowerStateExchange) SendRequestStateChangeMessage

func (t *PowerStateExchange) SendRequestStateChangeMessage(ctx context.Context, msg *power.RequestStateChangeMessage) error

func (*PowerStateExchange) SendStateValidationMessage

func (t *PowerStateExchange) SendStateValidationMessage(ctx context.Context, msg *power.StateValidationMessage) error

Jump to

Keyboard shortcuts

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