types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentSensor

type EnvironmentSensor struct {
	Value       float64 `json:"value"`
	Unit        string  `json:"unit"`
	Location    string  `json:"location,omitempty"`
	Name        string  `json:"name,omitempty"`
	Description string  `json:"description,omitempty"`
	LastChange  int64   `json:"lastchange,omitempty"`
}

type PersistentEnvironmentSensor

type PersistentEnvironmentSensor struct {
	Value      float64 `json:"value"`
	Location   string  `json:"location,omitempty"`
	Name       string  `json:"name,omitempty"`
	LastChange int64   `json:"lastchange"`
}

type PersistentStateV14

type PersistentStateV14 struct {
	State struct {
		Open       bool   `json:"open"`
		LastChange int64  `json:"lastchange"`
		Message    string `json:"message,omitempty"`
	} `json:"state"`
	Sensors map[string][]PersistentEnvironmentSensor `json:"sensors,omitempty"`
}

type SpaceAPIResponseV14

type SpaceAPIResponseV14 struct {
	APICompatibility []string `json:"api_compatibility"`
	Space            string   `json:"space"`
	ExtCCC           string   `json:"ext_ccc"`
	URL              string   `json:"url"`
	Location         struct {
		Address string  `json:"address"`
		Lat     float64 `json:"lat"`
		Lon     float64 `json:"lon"`
	} `json:"location"`
	State   SpaceState `json:"state"`
	Contact struct {
		Phone    string `json:"phone"`
		IRC      string `json:"irc"`
		Mastodon string `json:"mastodon"`
		Email    string `json:"email"`
		ML       string `json:"ml"`
		Matrix   string `json:"matrix"`
	} `json:"contact"`
	Sensors map[string][]EnvironmentSensor `json:"sensors"`
	Feeds   struct {
		Blog struct {
			Type string `json:"type"`
			URL  string `json:"url"`
		} `json:"blog"`
		Calendar struct {
			Type string `json:"type"`
			URL  string `json:"url"`
		} `json:"calendar"`
	} `json:"feeds"`
	Links []struct {
		Name string `json:"name"`
		URL  string `json:"url"`
	} `json:"links"`
}

type SpaceState

type SpaceState struct {
	Open       bool   `json:"open"`
	LastChange int64  `json:"lastchange"`
	Message    string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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