Documentation ¶
Index ¶
- Variables
- type Builder
- func (b *Builder) Build() (*Group, error)
- func (b *Builder) Description(description string) *Builder
- func (b *Builder) ID(id ID) *Builder
- func (b *Builder) Key(key id.Key) *Builder
- func (b *Builder) MustBuild() *Group
- func (b *Builder) Name(name string) *Builder
- func (b *Builder) NewID() *Builder
- func (b *Builder) Order(o int) *Builder
- func (b *Builder) Project(p id.ProjectID) *Builder
- func (b *Builder) Schema(s id.SchemaID) *Builder
- type Group
- func (g *Group) Clone() *Group
- func (g *Group) Description() string
- func (g *Group) ID() ID
- func (g *Group) Key() id.Key
- func (g *Group) Name() string
- func (g *Group) Order() int
- func (g *Group) Project() ProjectID
- func (g *Group) Schema() SchemaID
- func (g *Group) SetDescription(des string)
- func (g *Group) SetKey(key id.Key) error
- func (g *Group) SetName(name string)
- func (g *Group) SetOrder(order int)
- type ID
- type List
- type ProjectID
- type SchemaID
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var IDFrom = id.GroupIDFrom
View Source
var IDFromRef = id.GroupIDFromRef
View Source
var MustID = id.MustGroupID
View Source
var NewID = id.NewGroupID
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) Description ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (*Group) Description ¶
func (*Group) SetDescription ¶
type List ¶
type List []*Group
func (List) AreGroupsInTheSameProject ¶
func (List) OrderByIDs ¶
func (l List) OrderByIDs(ids id.GroupIDList) List
func (List) Projects ¶
func (l List) Projects() id.ProjectIDList
func (List) SchemaIDs ¶
func (l List) SchemaIDs() id.SchemaIDList
Click to show internal directories.
Click to hide internal directories.