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

Documentation

Index

Constants

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

Variables

View Source
var ClientAdminUserPermissions = []api.Permission{
	CollectService,
	RetrieveService,
}
View Source
var ClientUserPermissions = make([]api.Permission, 0)
View Source
var CompanyAdminUserPermissions = []api.Permission{
	CollectService,
	RetrieveService,
}
View Source
var CompanyUserPermissions = make([]api.Permission, 0)
View Source
var SystemUserPermissions = make([]api.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 []human.User
	Total   int
}

type CreateRequest

type CreateRequest struct {
	User human.User
}

type CreateResponse

type CreateResponse struct {
	User human.User
}

type DeleteRequest

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

type DeleteResponse

type DeleteResponse struct {
	User human.User
}

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)
	Collect(request *CollectRequest) (*CollectResponse, error)
}

type RetrieveRequest

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

type RetrieveResponse

type RetrieveResponse struct {
	User human.User
}

type UpdateRequest

type UpdateRequest struct {
	Claims     claims.Claims
	Identifier identifier.Identifier
	User       human.User
}

type UpdateResponse

type UpdateResponse struct {
	User human.User
}

Directories

Path Synopsis
adaptor

Jump to

Keyboard shortcuts

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