rest_handlers

package
v0.0.0-...-88eafc7 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrganisationController

type OrganisationController struct {
	Service collections.CollectionServicer
}

func (*OrganisationController) Add

func (*OrganisationController) AddRoutes

func (*OrganisationController) Delete

func (*OrganisationController) Find

func (*OrganisationController) FindById

func (uac *OrganisationController) FindById(w http.ResponseWriter, r *http.Request)

func (*OrganisationController) GetContext

func (*OrganisationController) Update

type OrganisationService

type OrganisationService struct {
	// contains filtered or unexported fields
}

func NewOrganisationService

func NewOrganisationService(ctx context.Context) *OrganisationService

NewOrganisationService creates a default api service

func (*OrganisationService) Add

func (srv *OrganisationService) Add(ctx context.Context, i interface{}) (interface{}, int, error)

func (*OrganisationService) Delete

func (srv *OrganisationService) Delete(ctx context.Context, id string) (interface{}, int, error)

func (*OrganisationService) Find

func (srv *OrganisationService) Find(ctx context.Context, params map[string][]string) (interface{}, int, error)

func (*OrganisationService) FindById

func (srv *OrganisationService) FindById(ctx context.Context, id string) (interface{}, int, error)

func (*OrganisationService) GetPersistenceLayer

func (srv *OrganisationService) GetPersistenceLayer() *cqrs.ServiceCQRSClient

func (*OrganisationService) Update

func (srv *OrganisationService) Update(ctx context.Context, id string, i interface{}) (interface{}, int, error)

type RbacController

type RbacController struct {
	Service collections.CollectionServicer
}

func (*RbacController) Add

func (uac *RbacController) Add(w http.ResponseWriter, r *http.Request)

func (*RbacController) AddRoutes

func (uac *RbacController) AddRoutes(ctx context.Context, r utils.Routes) utils.Routes

func (*RbacController) Delete

func (uac *RbacController) Delete(w http.ResponseWriter, r *http.Request)

func (*RbacController) Find

func (uac *RbacController) Find(w http.ResponseWriter, r *http.Request)

func (*RbacController) FindById

func (uac *RbacController) FindById(w http.ResponseWriter, r *http.Request)

func (*RbacController) GetContext

func (uac *RbacController) GetContext() (context.Context, context.CancelFunc)

func (*RbacController) Update

func (uac *RbacController) Update(w http.ResponseWriter, r *http.Request)

type RbacService

type RbacService struct {
	// contains filtered or unexported fields
}

func NewRbacService

func NewRbacService(ctx context.Context) *RbacService

NewRbacService creates a default api service

func (*RbacService) Add

func (srv *RbacService) Add(ctx context.Context, i interface{}) (interface{}, int, error)

func (*RbacService) Delete

func (srv *RbacService) Delete(ctx context.Context, id string) (interface{}, int, error)

func (*RbacService) Find

func (srv *RbacService) Find(ctx context.Context, params map[string][]string) (interface{}, int, error)

func (*RbacService) FindById

func (srv *RbacService) FindById(ctx context.Context, id string) (interface{}, int, error)

func (*RbacService) GetPersistenceLayer

func (srv *RbacService) GetPersistenceLayer() *cqrs.ServiceCQRSClient

func (*RbacService) Update

func (srv *RbacService) Update(ctx context.Context, id string, i interface{}) (interface{}, int, error)

type UserController

type UserController struct {
	Service collections.CollectionServicer
}

func (*UserController) Add

func (uac *UserController) Add(w http.ResponseWriter, r *http.Request)

func (*UserController) AddRoutes

func (uac *UserController) AddRoutes(ctx context.Context, r utils.Routes) utils.Routes

AddRoutes -

func (*UserController) Delete

func (uac *UserController) Delete(w http.ResponseWriter, r *http.Request)

func (*UserController) Find

func (uac *UserController) Find(w http.ResponseWriter, r *http.Request)

func (*UserController) FindById

func (uac *UserController) FindById(w http.ResponseWriter, r *http.Request)

func (*UserController) GetContext

func (uac *UserController) GetContext() (context.Context, context.CancelFunc)

func (*UserController) Update

func (uac *UserController) Update(w http.ResponseWriter, r *http.Request)

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(ctx context.Context) *UserService

NewUserService creates a default api service

func (*UserService) Add

func (srv *UserService) Add(ctx context.Context, i interface{}) (interface{}, int, error)

func (*UserService) Delete

func (srv *UserService) Delete(ctx context.Context, id string) (interface{}, int, error)

func (*UserService) Find

func (srv *UserService) Find(ctx context.Context, params map[string][]string) (interface{}, int, error)

func (*UserService) FindById

func (srv *UserService) FindById(ctx context.Context, id string) (interface{}, int, error)

func (*UserService) GetPersistenceLayer

func (srv *UserService) GetPersistenceLayer() *cqrs.ServiceCQRSClient

func (*UserService) Update

func (srv *UserService) Update(ctx context.Context, id string, i interface{}) (interface{}, int, error)

Jump to

Keyboard shortcuts

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