schema

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gadget

type Gadget struct {
	ID   int    `storm:"id,increment"`
	Name string `json:"name"`
	URL  string `json:"url"`
	// contains filtered or unexported fields
}

Gadget represents a gadget

func (*Gadget) Command

func (g *Gadget) Command(cmd string) error

func (*Gadget) Fetch

func (g *Gadget) Fetch() error

Fetch queries the gadget to get its current status

func (*Gadget) Register

func (g *Gadget) Register(addr, token string) (string, error)

func (*Gadget) Send

func (g *Gadget) Send(m gogadgets.Message) error

func (*Gadget) Status

func (g *Gadget) Status() map[string]map[string]gogadgets.Message

type User

type User struct {
	ID       int    `storm:"id,increment"`
	Name     string `storm:"unique"`
	Password []byte
	TFA      []byte
}

User represents a user

Jump to

Keyboard shortcuts

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