history

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Timestamp time.Time
	Item      string
	ItemID    string
	Field     string
	Before    string
	After     string
}

func (Entry) IsDeleted

func (e Entry) IsDeleted() bool

func (Entry) IsValid

func (e Entry) IsValid() bool

type History

type History struct {
	// contains filtered or unexported fields
}

func NewHistory

func NewHistory(entries ...Entry) History

func (*History) Load

func (h *History) Load(blob json.RawMessage) error

func (History) LookupCard

func (h History) LookupCard(timestamp time.Time, card uint32) string

func (History) LookupController

func (h History) LookupController(timestamp time.Time, deviceID uint32) string

func (History) LookupDoor

func (h History) LookupDoor(timestamp time.Time, deviceID uint32, door uint8) string

func (History) Print

func (h History) Print()

func (*History) Received

func (h *History) Received(records ...audit.AuditRecord)

func (History) Save

func (h History) Save() (json.RawMessage, error)

func (History) Validate

func (h History) Validate() error

Jump to

Keyboard shortcuts

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