actionctx

package
Version: v0.0.0-...-d221b79 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAlert

func GetAlert(ctx context.Context) (structs.Alert, bool)

GetAlert returns an alert/true from ctx if there is one, and false if there isn't.

func GetEvent

func GetEvent(ctx context.Context) (events.Event, bool)

GetEvent returns an event/true from ctx if there is one, and false if there isn't.

func GetRoomIssue

func GetRoomIssue(ctx context.Context) (structs.RoomIssue, bool)

GetRoomIssue returns an alert/true from ctx if there is one, and false if there isn't.

func GetStaticDevice

func GetStaticDevice(ctx context.Context) (statedefinition.StaticDevice, bool)

GetStaticDevice returns a static device/true from ctx if there is one, and false if there isn't.

func GetStaticDevices

func GetStaticDevices(ctx context.Context) ([]statedefinition.StaticDevice, bool)

GetStaticDevices returns a static device/true from ctx if there is one, and false if there isn't.

func PutAlert

func PutAlert(ctx context.Context, v structs.Alert) context.Context

PutAlert puts an event into ctx

func PutEvent

func PutEvent(ctx context.Context, v events.Event) context.Context

PutEvent puts an event into ctx

func PutRoomIssue

func PutRoomIssue(ctx context.Context, v structs.RoomIssue) context.Context

PutRoomIssue puts an event into ctx

func PutStaticDevice

PutStaticDevice puts an event into ctx

func PutStaticDevices

func PutStaticDevices(ctx context.Context, v []statedefinition.StaticDevice) context.Context

PutStaticDevices puts an event into ctx

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL