Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NONE = time.Time{}
View Source
var VERSION string = "v0.8.1"
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
Name string
DeviceID uint32
Address *net.UDPAddr
Doors []string
TimeZone *time.Location
}
type IUHPPOTE ¶ added in v0.7.0
type IUHPPOTE interface {
GetDevices() ([]types.Device, error)
GetDevice(deviceID uint32) (*types.Device, error)
SetAddress(deviceID uint32, address, mask, gateway net.IP) (*types.Result, error)
GetListener(deviceID uint32) (*types.Listener, error)
SetListener(deviceID uint32, address net.UDPAddr) (*types.Result, error)
GetTime(deviceID uint32) (*types.Time, error)
SetTime(deviceID uint32, datetime time.Time) (*types.Time, error)
GetDoorControlState(deviceID uint32, door byte) (*types.DoorControlState, error)
SetDoorControlState(deviceID uint32, door uint8, state types.ControlState, delay uint8) (*types.DoorControlState, error)
RecordSpecialEvents(deviceID uint32, enable bool) (bool, error)
GetStatus(deviceID uint32) (*types.Status, error)
GetCards(deviceID uint32) (uint32, error)
GetCardByIndex(deviceID, index uint32) (*types.Card, error)
GetCardByID(deviceID, cardNumber uint32) (*types.Card, error)
PutCard(deviceID uint32, card types.Card) (bool, error)
DeleteCard(deviceID uint32, cardNumber uint32) (bool, error)
DeleteCards(deviceID uint32) (bool, error)
GetTimeProfile(deviceID uint32, profileID uint8) (*types.TimeProfile, error)
SetTimeProfile(deviceID uint32, profile types.TimeProfile) (bool, error)
ClearTimeProfiles(deviceID uint32) (bool, error)
ClearTaskList(deviceID uint32) (bool, error)
AddTask(deviceID uint32, task types.Task) (bool, error)
RefreshTaskList(deviceID uint32) (bool, error)
GetEvent(deviceID, index uint32) (*types.Event, error)
GetEventIndex(deviceID uint32) (*types.EventIndex, error)
SetEventIndex(deviceID, index uint32) (*types.EventIndexResult, error)
Listen(listener Listener, q chan os.Signal) error
OpenDoor(deviceID uint32, door uint8) (*types.Result, error)
// TODO: REMOVE (interim functions used by health-check)
DeviceList() map[uint32]Device
ListenAddr() *net.UDPAddr
}
func NewUHPPOTE ¶ added in v0.7.0
Source Files
¶
- add_task.go
- clear_task_list.go
- clear_time_profiles.go
- delete_card.go
- delete_cards.go
- device.go
- get_card.go
- get_cards.go
- get_device.go
- get_door_control_state.go
- get_event.go
- get_event_index.go
- get_listener.go
- get_status.go
- get_time.go
- get_time_profile.go
- iuhppote.go
- listen.go
- open.go
- put_card.go
- record_special_events.go
- refresh_tasklist.go
- set_address.go
- set_door_control_state.go
- set_event_index.go
- set_listener.go
- set_time.go
- set_time_profile.go
- udp.go
- uhppote.go
Click to show internal directories.
Click to hide internal directories.