Documentation ¶
Overview ¶
Package group contains all code related to the group domain.
Index ¶
- type Backend
- type Driver
- func (d Driver) Append(g Group) error
- func (d Driver) Apply(g Group) (updated bool, err error)
- func (d Driver) Create(g Group) error
- func (d Driver) Delete(id string) error
- func (d Driver) Get(id string) (Group, error)
- func (d Driver) List() (List, error)
- func (d Driver) Remove(g Group) error
- func (d Driver) Update(g Group) error
- func (d Driver) Upsert(g Group) (updated bool, err error)
- type Group
- type List
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { ListGroups() (List, error) GetGroup(id string) (Group, error) CreateGroup(Group) error UpdateGroup(Group) error DeleteGroup(id string) error AppendGroup(Group) error RemoveGroup(Group) error }
Backend interface.
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is the entry point of the domain that expose methods.
Click to show internal directories.
Click to hide internal directories.