web

package
v0.0.0-...-b517edd Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDevice

func AddDevice(session *scs.SessionManager, devices *services.DeviceManager) http.HandlerFunc

func DeleteDevice

func DeleteDevice(session *scs.SessionManager, devices *services.DeviceManager) http.HandlerFunc

func ListDevices

func ListDevices(session *scs.SessionManager, devices *services.DeviceManager) http.HandlerFunc

Types

type AddDeviceRequest

type AddDeviceRequest struct {
	Name      string `json:"name"`
	PublicKey string `json:"publicKey"`
}

type AddDeviceResponse

type AddDeviceResponse struct {
	Device *storage.Device `json:"device"`
}

type ListDeviceRequest

type ListDeviceRequest struct{}

type ListDeviceResponse

type ListDeviceResponse struct {
	Items []*storage.Device `json:"items"`
}

Jump to

Keyboard shortcuts

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