models

package
v0.0.0-...-39ed591 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// LighthouseStateOn captures enum value "on"
	LighthouseStateOn string = "on"

	// LighthouseStateOff captures enum value "off"
	LighthouseStateOff string = "off"

	// LighthouseStateBooting captures enum value "booting"
	LighthouseStateBooting string = "booting"

	// LighthouseStateUnknown captures enum value "unknown"
	LighthouseStateUnknown string = "unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	// message
	Message string `json:"message,omitempty"`
}

Error error

swagger:model error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Lighthouse

type Lighthouse struct {

	// MAC Address
	Address string `json:"address,omitempty"`

	// Human readable name
	Name string `json:"name,omitempty"`

	// What state the lighthouse is currently in
	// Enum: [on off booting unknown]
	State string `json:"state,omitempty"`
}

Lighthouse lighthouse

swagger:model lighthouse

func (*Lighthouse) ContextValidate

func (m *Lighthouse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this lighthouse based on context it is used

func (*Lighthouse) MarshalBinary

func (m *Lighthouse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Lighthouse) UnmarshalBinary

func (m *Lighthouse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Lighthouse) Validate

func (m *Lighthouse) Validate(formats strfmt.Registry) error

Validate validates this lighthouse

Jump to

Keyboard shortcuts

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