app

package
v0.0.0-...-ebd6d4f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	ID                      uint   `json:"id"`
	Name                    string `json:"name"`
	ProvisioningURLTemplate string `json:"provisioning_url_template"`
	OauthRedirectURL        string `json:"oauth_redirect_url"`
}

An App can provision a [Device] in a [Building].

func MakeApp

func MakeApp(name, provisioningURLTemplate, oauthRedirectURL string) App

Create a new app.

type AppRepository

type AppRepository interface {
	Find(app App) (App, error)
	GetAll() ([]App, error)
	Create(App) (App, error)
	Delete(App) error
}

An AppRepository can load, store and delete apps.

Jump to

Keyboard shortcuts

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