api

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnonDeviceServiceAPI

type AnonDeviceServiceAPI struct {
	RouterRegister routing.RouteRegister
	// contains filtered or unexported fields
}

func NewAnonDeviceServiceAPI

func NewAnonDeviceServiceAPI(
	cfg *setting.Cfg,
	anonstore anonstore.AnonStore,
	accesscontrol accesscontrol.AccessControl,
	routerRegister routing.RouteRegister,
) *AnonDeviceServiceAPI

func (*AnonDeviceServiceAPI) ListDevices

swagger:route GET /stats devices listDevices

Lists all devices within the last 30 days

Produces: - application/json

Responses:

200: devicesResponse
401: unauthorisedError
403: forbiddenError
404: notFoundError
500: internalServerError

func (*AnonDeviceServiceAPI) RegisterAPIEndpoints

func (api *AnonDeviceServiceAPI) RegisterAPIEndpoints()

func (*AnonDeviceServiceAPI) SearchDevices

swagger:route POST /search devices SearchDevices

Lists all devices within the last 30 days

Produces: - application/json

Responses:

200: devicesSearchResponse
401: unauthorisedError
403: forbiddenError
404: notFoundError
500: internalServerError

type DevicesResponse

type DevicesResponse struct {
	// in:body
	Body []deviceDTO `json:"body"`
}

swagger:response devicesResponse

type DevicesSearchResponse

type DevicesSearchResponse struct {
	// in:body
	Body anonstore.SearchDeviceQueryResult `json:"body"`
}

swagger:response devicesSearchResponse

Jump to

Keyboard shortcuts

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