group

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Id        string                 `json:"_id"`
	Timestamp int64                  `json:"timestamp"`
	Nodes     []domain.NodeReference `json:"nodes"`
	Owner     string                 `json:"owner"`
	Modified  int64                  `json:"modified"`
}

func NewGroup

func NewGroup(owner string) *Group

func (Group) ExistsNode

func (c Group) ExistsNode(id string) bool

func (*Group) FixNodesOrder

func (c *Group) FixNodesOrder() *Group

func (Group) PersistenceId

func (c Group) PersistenceId() string

func (*Group) ResolveNode

func (c *Group) ResolveNode(item string) (*domain.NodeReference, bool)

func (*Group) SortNodes

func (c *Group) SortNodes() *Group

func (*Group) TakeNode

func (c *Group) TakeNode(id string) (*domain.NodeReference, bool)

type Repository

type Repository interface {
	Find(id string) (*Group, bool)
	Insert(owner string, group *Group) *Group
	Delete(group *Group) *Group
}

Jump to

Keyboard shortcuts

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