group

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2018 License: GPL-3.0 Imports: 5 Imported by: 4

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
	Name         string
	Description  string
	Visibility   visibility.Visibility
	Owner        user.User
	Members      map[string]user.User
	CreationDate time.Time
}

Group represents a group with its information in the system

func NewGroup

func NewGroup(name, description string, visibility visibility.Visibility, members map[string]user.User) Group

NewGroup creates a new group

func (Group) ItemID

func (g Group) ItemID() string

ItemID returns a groups id

func (Group) ItemName

func (g Group) ItemName() string

ItemName returns a groups name

func (Group) ItemVisibility

func (g Group) ItemVisibility() visibility.Visibility

ItemVisibility returns a groups visibility

Jump to

Keyboard shortcuts

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