validator

package
v0.0.0-...-78e7222 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceProvider = "SigbugGPSReading-Validator"
View Source
const ValidateService = ServiceProvider + ".Validate"

Variables

View Source
var ClientAdminUserPermissions = make([]api.Permission, 0)
View Source
var ClientUserPermissions = make([]api.Permission, 0)
View Source
var CompanyAdminUserPermissions = make([]api.Permission, 0)
View Source
var CompanyUserPermissions = make([]api.Permission, 0)
View Source
var SystemUserPermissions = []api.Permission{
	ValidateService,
}

Functions

This section is empty.

Types

type ValidateRequest

type ValidateRequest struct {
	Claims  claims.Claims
	Reading sigbugGPSReading.Reading
	Action  action.Action
}

type ValidateResponse

type ValidateResponse struct {
	ReasonsInvalid []reasonInvalid.ReasonInvalid
}

type Validator

type Validator interface {
	Validate(request *ValidateRequest) (*ValidateResponse, error)
}

Directories

Path Synopsis
adaptor

Jump to

Keyboard shortcuts

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