schalter

package
v0.0.0-...-aee627c Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Schalter

type Schalter struct {
	URL  string `toml:"url"`
	Path string `toml:"path"`

	Nickname string `toml:"nickname"`

	Users []string `toml:"users"`
	MUCs  []string `toml:"mucs"`

	Interval time.Duration `toml:"interval"`

	ChangeEvent []func(bool)
	// contains filtered or unexported fields
}

func (*Schalter) Close

func (s *Schalter) Close()

func (*Schalter) HandleBotMessage

func (s *Schalter) HandleBotMessage(c xmpp.Sender, msg stanza.Message) bool

func (*Schalter) Start

func (s *Schalter) Start(c xmpp.Sender)

func (*Schalter) XMPPChangeEvent

func (s *Schalter) XMPPChangeEvent(c xmpp.Sender) func(bool)

type SpaceAPI

type SpaceAPI struct {
	API      string `json:"api"`
	Space    string `json:"space"`
	URL      string `json:"url"`
	Location struct {
		Address string  `json:"address,omitempty"`
		Lat     float64 `json:"lat"`
		Lon     float64 `json:"lon"`
	} `json:"location"`
	SpaceFed struct {
		SpaceNet   bool `json:"spacenet"`
		Spacesaml  bool `json:"spacesaml"`
		SpacePhone bool `json:"spacephone"`
	} `json:"spacefed,omitempty"`
	Cam    []string `json:"cam,omitempty"`
	Stream struct {
		M4      bool `json:"m4,omitempty"`
		MJPEG   bool `json:"mjpeg,omitempty"`
		UStream bool `json:"ustream,omitempty"`
	} `json:"stream,omitempty"`
	State struct {
		Open          bool    `json:"open"`
		Lastchange    float64 `json:"lastchange,omitempty"`
		TriggerPerson string  `json:"trigger_person,omitempty"`
		Message       string  `json:"message,omitempty"`
		Icon          struct {
			Open   string `json:"open"`
			Closed string `json:"closed"`
		} `json:"icon,omitempty"`
	} `json:"state"`
}

Jump to

Keyboard shortcuts

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