combinedsewageoverflow

package
v0.0.0-...-59ead5a Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CombinedSewageOverflowFactory = func(id, tenant string) *CombinedSewageOverflow {
	return &CombinedSewageOverflow{
		ID:           id,
		Type:         "CombinedSewageOverflow",
		Tenant:       tenant,
		DateObserved: time.Now().UTC(),
	}
}

Functions

This section is empty.

Types

type CombinedSewageOverflow

type CombinedSewageOverflow struct {
	ID                     string        `json:"id"`
	Type                   string        `json:"type"`
	CumulativeTime         time.Duration `json:"cumulativeTime"`
	DateObserved           time.Time     `json:"dateObserved"`
	Overflows              []Overflow    `json:"overflow"`
	State                  bool          `json:"state"`
	Tenant                 string        `json:"tenant"`
	CombinedSewageOverflow *things.Thing `json:"combinedsewageoverflow,omitempty"`
}

func (CombinedSewageOverflow) Body

func (cso CombinedSewageOverflow) Body() []byte

func (CombinedSewageOverflow) ContentType

func (cso CombinedSewageOverflow) ContentType() string

func (*CombinedSewageOverflow) Handle

func (CombinedSewageOverflow) TopicName

func (cso CombinedSewageOverflow) TopicName() string

type Overflow

type Overflow struct {
	ID        string        `json:"id"`
	State     bool          `json:"state"`
	StartTime time.Time     `json:"startTime"`
	StopTime  *time.Time    `json:"stopTime"`
	Duration  time.Duration `json:"duration"`
}

Jump to

Keyboard shortcuts

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