system

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: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendEvents

func AppendEvents(list types.EventsList)

func Cards

func Cards(uid, role string) []schema.Object

func Controllers

func Controllers(uid, role string) []schema.Object

func Doors

func Doors(uid, role string) []schema.Object

func Events

func Events(uid, role string, start, count int) []schema.Object

func Groups

func Groups(uid, role string) []schema.Object

func Init

func Init(cfg config.Config, conf string, mode types.RunMode, debug bool) error

func Interfaces

func Interfaces(uid, role string) []schema.Object

func Logs

func Logs(uid, role string, start, count int) []schema.Object

func SetPassword

func SetPassword(uid, pwd string) error

func SynchronizeACL

func SynchronizeACL() error

func SynchronizeDateTime

func SynchronizeDateTime() error

func SynchronizeDoors

func SynchronizeDoors() error

func UpdateCards

func UpdateCards(uid, role string, m map[string]interface{}) (interface{}, error)

func UpdateControllers

func UpdateControllers(m map[string]interface{}, a *auth.Authorizator) (interface{}, error)

func UpdateDoors

func UpdateDoors(uid, role string, m map[string]interface{}) (interface{}, error)

func UpdateGroups

func UpdateGroups(uid, role string, m map[string]interface{}) (interface{}, error)

func UpdateInterfaces

func UpdateInterfaces(uid, role string, m map[string]interface{}) (interface{}, error)

func UpdateUsers

func UpdateUsers(uid, role string, m map[string]interface{}) (interface{}, error)

func User

func User(uid string) (auth.IUser, bool)

func Users

func Users(uid, role string) []schema.Object

Types

type Tag

type Tag string
const (
	TagInterfaces  Tag = "interfaces"
	TagControllers Tag = "controllers"
	TagDoors       Tag = "doors"
	TagCards       Tag = "cards"
	TagGroups      Tag = "groups"
	TagEvents      Tag = "events"
	TagLogs        Tag = "logs"
	TagUsers       Tag = "users"
	TagHistory     Tag = "history"
)

type Task

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

type TaskQ

type TaskQ interface {
	Add(task Task)
}

func NewTaskQ

func NewTaskQ() TaskQ

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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