types

package
v0.0.0-...-3fdc1a2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 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 {
	Members []*Human
}

func NewGroup

func NewGroup() *Group

func (*Group) Append

func (g *Group) Append(human *Human)

func (*Group) FindHumanByEmail

func (g *Group) FindHumanByEmail(email string) *Human

func (*Group) FindHumanByName

func (g *Group) FindHumanByName(name string) *Human

func (*Group) FindOrCreateHuman

func (g *Group) FindOrCreateHuman(name, email string) *Human

func (*Group) FindOrCreateHumanByEmail

func (g *Group) FindOrCreateHumanByEmail(email string) *Human

func (*Group) FindWithEmailDomains

func (g *Group) FindWithEmailDomains(domains ...string) *Group

func (*Group) FindWithPasswords

func (g *Group) FindWithPasswords() *Group

func (*Group) FindWithString

func (g *Group) FindWithString(searchStrings ...string) *Group

func (*Group) IndexOf

func (g *Group) IndexOf(id string) int

func (*Group) MemberByID

func (g *Group) MemberByID(id string) *Human

func (*Group) MergeDuplicate

func (g *Group) MergeDuplicate()

func (*Group) MergeIDs

func (g *Group) MergeIDs(primaryID string, otherIDs ...string)

func (*Group) RemoveIDs

func (g *Group) RemoveIDs(otherIDs ...string)

func (*Group) Sort

func (g *Group) Sort()

type Human

type Human struct {
	UUID      string
	Names     []string
	Emails    []string
	Passwords []string
	Roles     []string
}

func NewHuman

func NewHuman() *Human

func (*Human) AddEmail

func (h *Human) AddEmail(email string)

func (*Human) AddName

func (h *Human) AddName(name string)

func (*Human) AddPassword

func (h *Human) AddPassword(password string)

func (*Human) AddRole

func (h *Human) AddRole(roleName string)

func (*Human) Merge

func (h *Human) Merge(otherHuman *Human)

Jump to

Keyboard shortcuts

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