db

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditRecord

type AuditRecord struct {
	Timestamp  time.Time
	Operation  string
	Controller uint32
	CardNumber uint32
	Status     string
	Card       string
}

type DB

type DB interface {
	GetACL(table string, withPIN bool) (*lib.Table, error)
	PutACL(table string, acl lib.Table, withPIN bool) (int, error)
	GetEvents(table string, controller uint32) ([]uint32, error)
	PutEvents(table string, events []core.Event) (int, error)
	AuditTrail(table string, trail []AuditRecord) (int, error)
	Log(table string, rs []LogRecord) (int, error)
}

type LogRecord

type LogRecord struct {
	Timestamp  time.Time
	Operation  string
	Controller uint32
	Detail     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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