group

package
v1.6.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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 {
	Name         string
	Description  string
	Visibility   visibility.Visibility
	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) ID

func (g Group) ID() id.ActorID

ID returns a groups id struct

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