Documentation ¶
Index ¶
- type Controller
- func (c *Controller) Create(entity *object.Object) (uuid.UUID, error)
- func (c *Controller) DescribeAll() (entities []object.Object, err error)
- func (c *Controller) DescribeOne(id uuid.UUID) (entity object.Object, err error)
- func (c *Controller) Remove(id uuid.UUID) error
- func (c *Controller) Update(id uuid.UUID, entity *object.Object) error
- type Interface
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) DescribeAll ¶
func (c *Controller) DescribeAll() (entities []object.Object, err error)
func (*Controller) DescribeOne ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.