Documentation ¶
Overview ¶
iff: Identification, friend or foe.
Index ¶
- func GetOwner(name string) string
- func GetPets() map[string]string
- func IsFoe(name string) bool
- func IsFriend(name string) bool
- func ListenPets() (<-chan struct{}, func())
- func MakeFoe(name string)
- func MakeFriend(name string)
- func MakePet(pet string, owner string)
- func UnlinkPet(pet string)
- type Control
- type IffFoe
- type IffFriend
- type IffNewPet
- type IffUnlinkPet
- type IffUpdate
- type IffUpdateHolder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenPets ¶
func ListenPets() (<-chan struct{}, func())
ListenPets lets us listen for changes to the pet mapping
func MakeFriend ¶
func MakeFriend(name string)
Types ¶
type IffUnlinkPet ¶
type IffUnlinkPet struct {
Pet string
}
func (*IffUnlinkPet) Apply ¶
func (i *IffUnlinkPet) Apply()
type IffUpdateHolder ¶
type IffUpdateHolder struct {
Update IffUpdate
}
Click to show internal directories.
Click to hide internal directories.