http_api

package
v0.0.0-...-2921379 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Application

func Application(srv *mattrax.Server) http.HandlerFunc

func Applications

func Applications(srv *mattrax.Server) http.HandlerFunc

func Device

func Device(srv *mattrax.Server) http.HandlerFunc

func DeviceInformation

func DeviceInformation(srv *mattrax.Server) http.HandlerFunc

func DeviceScope

func DeviceScope(srv *mattrax.Server) http.HandlerFunc

func Devices

func Devices(srv *mattrax.Server) http.HandlerFunc

func Group

func Group(srv *mattrax.Server) http.HandlerFunc

func GroupDevices

func GroupDevices(srv *mattrax.Server) http.HandlerFunc

func GroupPolicies

func GroupPolicies(srv *mattrax.Server) http.HandlerFunc

func Groups

func Groups(srv *mattrax.Server) http.HandlerFunc

func Login

func Login(srv *mattrax.Server) http.HandlerFunc

func Mount

func Mount(srv *mattrax.Server)

Mount initialises the API

func Policies

func Policies(srv *mattrax.Server) http.HandlerFunc

func Policy

func Policy(srv *mattrax.Server) http.HandlerFunc

func PolicyScope

func PolicyScope(srv *mattrax.Server) http.HandlerFunc

func SettingsMe

func SettingsMe(srv *mattrax.Server) http.HandlerFunc

func SettingsOverview

func SettingsOverview(srv *mattrax.Server) http.HandlerFunc

func SettingsTenant

func SettingsTenant(srv *mattrax.Server) http.HandlerFunc

func TenantDomain

func TenantDomain(srv *mattrax.Server) http.HandlerFunc

func Tenants

func Tenants(srv *mattrax.Server) http.HandlerFunc

func User

func User(srv *mattrax.Server) http.HandlerFunc

func Users

func Users(srv *mattrax.Server) http.HandlerFunc

Types

type Endpoint

type Endpoint struct {
	Get       func(r *http.Request, DB *db.Queries) (interface{}, error)
	GetAll    func(r *http.Request, DB *db.Queries, limit int32, offset int32) (interface{}, error)
	PostType  func(r *http.Request) interface{}
	Post      func(r *http.Request, DB *db.Queries, cmd interface{}) (interface{}, error)
	PatchType func(r *http.Request) interface{}
	Patch     func(r *http.Request, DB *db.Queries, cmd interface{}) (interface{}, error)
	Delete    func(r *http.Request, DB *db.Queries) error
}

func (Endpoint) Handler

func (e Endpoint) Handler(DB *db.Queries) http.HandlerFunc

Jump to

Keyboard shortcuts

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