Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type ControllerList ¶
type ControllerList []Controller
func LoadController ¶
func LoadController(filename string) (ControllerList, error)
func (ControllerList) FindDoor ¶
func (l ControllerList) FindDoor(address string, door string) (uint8, bool)
FindDoor returns the 1-index door number.
func (ControllerList) LookupDoor ¶
func (l ControllerList) LookupDoor(address string, door uint8) string
LookupDoor returns the 1-index door number.
func (ControllerList) LookupName ¶
func (l ControllerList) LookupName(address string) string
LookupName returns the controller name.
If no controller is found, this returns the empty string.
func (ControllerList) LookupNameAndDoor ¶
func (l ControllerList) LookupNameAndDoor(address string, door uint8) (string, string)
LookupNameAndDoor returns the controller name and the 1-index door number.
type PersonnelList ¶
type PersonnelList []Person
func LoadPersonnel ¶
func LoadPersonnel(filename string) (PersonnelList, error)
func (PersonnelList) FindByCardID ¶
func (l PersonnelList) FindByCardID(cardID string) *Person
Click to show internal directories.
Click to hide internal directories.