api

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: BSD-3-Clause Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationStatusResp added in v1.4.0

type ApplicationStatusResp struct {
	Version string `json:"version"`
}

type Blacklist

type Blacklist struct {
	// contains filtered or unexported fields
}

func NewBlacklistController

func NewBlacklistController(e *common.Environment, us stores.UserStore, ds stores.DeviceStore) *Blacklist

func (*Blacklist) BlacklistDeviceHandler

func (b *Blacklist) BlacklistDeviceHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)

func (*Blacklist) BlacklistUserHandler

func (b *Blacklist) BlacklistUserHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)

func (*Blacklist) GetBlacklistHandler added in v1.2.0

func (b *Blacklist) GetBlacklistHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)

type DatabaseStatusResp added in v1.4.0

type DatabaseStatusResp struct {
	Version int    `json:"version"`
	Status  string `json:"status"`
	Type    string `json:"type"`
}

type Device

type Device struct {
	// contains filtered or unexported fields
}

func (*Device) DeleteHandler

func (d *Device) DeleteHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)

func (*Device) EditDescriptionHandler added in v1.0.0

func (d *Device) EditDescriptionHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)

func (*Device) EditExpirationHandler added in v1.0.0

func (d *Device) EditExpirationHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)

func (*Device) EditFlaggedHandler added in v1.4.0

func (d *Device) EditFlaggedHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)

func (*Device) GetDeviceHandler added in v1.2.0

func (d *Device) GetDeviceHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)

func (*Device) ReassignHandler added in v0.8.0

func (d *Device) ReassignHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func (*Device) RegistrationHandler

func (d *Device) RegistrationHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

type GoRoutineStatusResp added in v1.4.0

type GoRoutineStatusResp struct {
	RoutineNum int `json:"routine_num"`
}

type MemoryStatusResp added in v1.4.0

type MemoryStatusResp struct {
	Alloc        uint64 `json:"alloc"`
	TotalAlloc   uint64 `json:"total_alloc"`
	Sys          uint64 `json:"sys"`
	Mallocs      uint64 `json:"mallocs"`
	Frees        uint64 `json:"frees"`
	PauseTotalNs uint64 `json:"pause_total_ns"`
	NumGC        uint32 `json:"num_gc"`
	HeapObjects  uint64 `json:"head_objects"`
	LastGC       string `json:"last_gc"`
}

type Status added in v1.3.0

type Status struct {
	// contains filtered or unexported fields
}

func NewStatusController added in v1.3.0

func NewStatusController(e *common.Environment) *Status

func (*Status) GetStatus added in v1.3.0

func (s *Status) GetStatus(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

type StatusResp added in v1.4.0

type StatusResp struct {
	Application *ApplicationStatusResp `json:"application"`
	Database    *DatabaseStatusResp    `json:"database"`
	GoRoutines  *GoRoutineStatusResp   `json:"go_routines"`
	Memory      *MemoryStatusResp      `json:"memory"`
}

type UserController added in v0.14.0

type UserController struct {
	// contains filtered or unexported fields
}

func (*UserController) DeleteUserHandler added in v1.5.0

func (u *UserController) DeleteUserHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func (*UserController) GetUserHandler added in v1.5.0

func (u *UserController) GetUserHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)

func (*UserController) SaveUserHandler added in v1.5.0

func (u *UserController) SaveUserHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

Jump to

Keyboard shortcuts

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