object

package
v0.0.0-...-95fd40a Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func (*Controller) Create

func (c *Controller) Create(entity *object.Object) (uuid.UUID, error)

func (*Controller) DescribeAll

func (c *Controller) DescribeAll() (entities []object.Object, err error)

func (*Controller) DescribeOne

func (c *Controller) DescribeOne(id uuid.UUID) (entity object.Object, err error)

func (*Controller) Remove

func (c *Controller) Remove(id uuid.UUID) error

func (*Controller) Update

func (c *Controller) Update(id uuid.UUID, entity *object.Object) error

type Interface

type Interface interface {
	DescribeOne(ID uuid.UUID) (entity object.Object, err error)
	DescribeAll() (entities []object.Object, err error)
	Create(entity *object.Object) (uuid.UUID, error)
	Update(ID uuid.UUID, entity *object.Object) error
	Remove(ID uuid.UUID) error
}

func NewController

func NewController(repository adapter.Interface) Interface

Jump to

Keyboard shortcuts

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