Documentation
¶
Index ¶
- type IndividualHistory
- type Team
- func (t Team) Add(newMember string) error
- func (t Team) GetOutOfOffice(memberName string) []byte
- func (t Team) GetTeamOutOfOffice() ([]byte, error)
- func (t Team) HistoryOfIndividual(member string) IndividualHistory
- func (t Team) IsAvailable(memberName string) bool
- func (t Team) List() ([]string, error)
- func (t Team) Next() (string, error)
- func (t Team) OrderedRota() []IndividualHistory
- func (t Team) OverridePersonPickedForToday(memberName string) error
- func (t Team) PersonPickedOnTheDay(date time.Time) string
- func (t Team) PickNextPerson(_ context.Context, slackMessager *slackhandler.Messager, ingressURL string)
- func (t Team) Remove(existingMember string) error
- func (t Team) RotaHistory() (TeamRotaHistory, error)
- func (t Team) SetOutOfOffice(memberName string, from time.Time, to time.Time) error
- func (t Team) SetPersonPickedForToday(memberName string) error
- type TeamRotaHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndividualHistory ¶
type Team ¶
name will be used as the key prefix
func (Team) GetOutOfOffice ¶
func (Team) GetTeamOutOfOffice ¶
func (Team) HistoryOfIndividual ¶
func (t Team) HistoryOfIndividual(member string) IndividualHistory
func (Team) IsAvailable ¶
func (Team) OrderedRota ¶
func (t Team) OrderedRota() []IndividualHistory
func (Team) OverridePersonPickedForToday ¶
func (Team) PickNextPerson ¶
func (Team) RotaHistory ¶
func (t Team) RotaHistory() (TeamRotaHistory, error)
func (Team) SetOutOfOffice ¶
func (Team) SetPersonPickedForToday ¶
type TeamRotaHistory ¶
type TeamRotaHistory []IndividualHistory
func (TeamRotaHistory) Len ¶
func (history TeamRotaHistory) Len() int
func (TeamRotaHistory) Less ¶
func (history TeamRotaHistory) Less(i, j int) bool
func (TeamRotaHistory) Swap ¶
func (history TeamRotaHistory) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.