UT0311L04

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UT0311L04

type UT0311L04 struct {
	SerialNumber types.SerialNumber       `json:"serial-number"`
	IpAddress    net.IP                   `json:"address"`
	SubnetMask   net.IP                   `json:"subnet"`
	Gateway      net.IP                   `json:"gateway"`
	MacAddress   types.MacAddress         `json:"MAC"`
	Version      types.Version            `json:"version"`
	TimeOffset   entities.Offset          `json:"offset"`
	Doors        map[uint8]*entities.Door `json:"doors"`
	Listener     *net.UDPAddr             `json:"listener"`
	SystemError  uint8                    `json:"system-error"`
	SequenceId   uint32                   `json:"sequence-id"`
	SpecialInfo  uint8                    `json:"special-info"`
	RelayState   uint8                    `json:"relay-state"`
	InputState   uint8                    `json:"input-state"`
	Cards        entities.CardList        `json:"cards"`
	Events       entities.EventList       `json:"events"`
	// contains filtered or unexported fields
}

func Load

func Load(filepath string, compressed bool) (*UT0311L04, error)

func NewUT0311L04

func NewUT0311L04(deviceID uint32, dir string, compressed bool) *UT0311L04

func (*UT0311L04) Delete

func (s *UT0311L04) Delete() error

func (*UT0311L04) DeviceID

func (s *UT0311L04) DeviceID() uint32

func (*UT0311L04) DeviceType

func (s *UT0311L04) DeviceType() string

func (*UT0311L04) FilePath

func (s *UT0311L04) FilePath() string

func (*UT0311L04) Handle

func (s *UT0311L04) Handle(src *net.UDPAddr, rq messages.Request)

func (*UT0311L04) Save

func (s *UT0311L04) Save() error

func (*UT0311L04) SetTxQ

func (s *UT0311L04) SetTxQ(txq chan entities.Message)

func (*UT0311L04) Swipe

func (s *UT0311L04) Swipe(deviceID uint32, cardNumber uint32, door uint8) (bool, uint32)

Jump to

Keyboard shortcuts

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