model

package
v0.0.0-...-9fe3520 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Importance

type Importance int
const (
	ImportanceMinimal Importance = iota
	ImportancePartial
	ImportanceFull
)

type Team

type Team struct {
	Name        string
	DisplayName string

	Members []TeamMember
}

func NewTeam

func NewTeam(name string, leader string) Team

func (Team) FindMemberByNameAndImportance

func (t Team) FindMemberByNameAndImportance(name string, importance Importance) (TeamMember, bool)

type TeamMember

type TeamMember struct {
	DisplayName string
	Importance  Importance
}

type User

type User struct {
	Name        string
	DisplayName string
	Invitations cooldown.MappedCoolDown[string]
}

func NewUser

func NewUser(name string) User

Jump to

Keyboard shortcuts

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