recordHandler

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CollectService = ServiceProvider + ".Collect"
View Source
const Create jsonRpc.Method = "Create"
View Source
const CreateService = ServiceProvider + ".Create"
View Source
const Delete jsonRpc.Method = "Delete"
View Source
const DeleteService = ServiceProvider + ".Delete"
View Source
const Retrieve jsonRpc.Method = "Retrieve"
View Source
const RetrieveService = ServiceProvider + ".Retrieve"
View Source
const ServiceProvider = "System-RecordHandler"
View Source
const Update jsonRpc.Method = "Update"
View Source
const UpdateService = ServiceProvider + ".Update"
View Source
const Validate jsonRpc.Method = "Validate"

Variables

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

Functions

This section is empty.

Types

type CollectRequest

type CollectRequest struct {
	Claims   claims.Claims
	Criteria []criterion.Criterion
	Query    query.Query
}

type CollectResponse

type CollectResponse struct {
	Records []system2.System
	Total   int
}

type CreateRequest

type CreateRequest struct {
	System system2.System
}

type CreateResponse

type CreateResponse struct {
	System system2.System
}

type DeleteRequest

type DeleteRequest struct {
	Claims     claims.Claims
	Identifier identifier.Identifier
}

type DeleteResponse

type DeleteResponse struct {
	System system2.System
}

type RecordHandler

type RecordHandler interface {
	Create(request *CreateRequest) (*CreateResponse, error)
	Retrieve(request *RetrieveRequest) (*RetrieveResponse, error)
	Update(request *UpdateRequest) (*UpdateResponse, error)
	Delete(request *DeleteRequest) (*DeleteResponse, error)
	Validate(request *ValidateRequest) (*ValidateResponse, error)
	Collect(request *CollectRequest) (*CollectResponse, error)
}

type RetrieveRequest

type RetrieveRequest struct {
	Claims     claims.Claims
	Identifier identifier.Identifier
}

type RetrieveResponse

type RetrieveResponse struct {
	System system2.System
}

type UpdateRequest

type UpdateRequest struct {
	Claims     claims.Claims
	Identifier identifier.Identifier
	System     system2.System
}

type UpdateResponse

type UpdateResponse struct {
	System system2.System
}

type ValidateRequest

type ValidateRequest struct {
	System system2.System
	Method jsonRpc.Method
}

type ValidateResponse

type ValidateResponse struct {
	ReasonsInvalid []reasonInvalid.ReasonInvalid
}

Directories

Path Synopsis
adaptor

Jump to

Keyboard shortcuts

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