Documentation
¶
Index ¶
- Constants
- func CanAdd[T TAuthable](a auth.OpAuth, u T) error
- func CanDelete[T TAuthable](a auth.OpAuth, u T) error
- func CanUpdate[T TAuthable](a auth.OpAuth, u T, field string, value any) error
- func CanView[T TAuthable](a auth.OpAuth, u T, field string, value any) error
- func SetWindows(ok, uncertain, systime, cacheExpiry time.Duration)
- type Controller
- func (c *Controller) AsIController() types.IController
- func (c *Controller) AsObjects(a *auth.Authorizator) []schema.Object
- func (c Controller) AsRuleEntity() (string, interface{})
- func (c Controller) CacheKey() string
- func (c Controller) Doors() map[uint8]schema.OID
- func (c Controller) IsDeleted() bool
- func (c Controller) IsValid() bool
- func (c Controller) Status() types.Status
- func (c *Controller) String() string
- type Controllers
- func (cc *Controllers) AsIControllers() []types.IController
- func (cc *Controllers) AsObjects(a *auth.Authorizator) []schema.Object
- func (cc *Controllers) Clone() Controllers
- func (cc *Controllers) Create(a *auth.Authorizator, oid schema.OID, value string, dbc db.DBC) ([]schema.Object, error)
- func (cc *Controllers) Delete(a *auth.Authorizator, oid schema.OID, dbc db.DBC) ([]schema.Object, error)
- func (cc *Controllers) Found(found []uint32)
- func (cc *Controllers) List() []Controller
- func (cc *Controllers) Load(blob json.RawMessage) error
- func (cc Controllers) Print()
- func (cc Controllers) Save() (json.RawMessage, error)
- func (cc *Controllers) Sweep(retention time.Duration)
- func (cc *Controllers) Update(a *auth.Authorizator, oid schema.OID, value string, dbc db.DBC) ([]schema.Object, error)
- func (cc Controllers) Validate() error
- type TAuthable
Constants ¶
View Source
const ControllerCardsCount = schema.ControllerCardsCount
View Source
const ControllerCardsStatus = schema.ControllerCardsStatus
View Source
const ControllerCreated = schema.Created
View Source
const ControllerDateTime = schema.ControllerDateTime
View Source
const ControllerDateTimeConfigured = schema.ControllerDateTimeConfigured
View Source
const ControllerDateTimeCurrent = schema.ControllerDateTimeCurrent
View Source
const ControllerDateTimeModified = schema.ControllerDateTimeModified
View Source
const ControllerDateTimeStatus = schema.ControllerDateTimeStatus
View Source
const ControllerDeleted = schema.Deleted
View Source
const ControllerDeviceID = schema.ControllerDeviceID
View Source
const ControllerDoor1 = schema.ControllerDoor1
View Source
const ControllerDoor2 = schema.ControllerDoor2
View Source
const ControllerDoor3 = schema.ControllerDoor3
View Source
const ControllerDoor4 = schema.ControllerDoor4
View Source
const ControllerEndpoint = schema.ControllerEndpoint
View Source
const ControllerEndpointAddress = schema.ControllerEndpointAddress
View Source
const ControllerEndpointConfigured = schema.ControllerEndpointConfigured
View Source
const ControllerEndpointProtocol = schema.ControllerEndpointProtocol
View Source
const ControllerEndpointStatus = schema.ControllerEndpointStatus
View Source
const ControllerEventsCurrent = schema.ControllerEventsCurrent
View Source
const ControllerEventsFirst = schema.ControllerEventsFirst
View Source
const ControllerEventsLast = schema.ControllerEventsLast
View Source
const ControllerEventsStatus = schema.ControllerEventsStatus
View Source
const ControllerInterlock = schema.ControllerInterlock
View Source
const ControllerName = schema.ControllerName
View Source
const ControllerStatus = schema.Status
View Source
const ControllerTouched = schema.Touched
View Source
const DoorControl = schema.DoorControl
View Source
const DoorControlModified = schema.DoorControlModified
View Source
const DoorDelay = schema.DoorDelay
View Source
const DoorDelayModified = schema.DoorDelayModified
View Source
const LANBindAddress = schema.LANBindAddress
View Source
const LANBroadcastAddress = schema.LANBroadcastAddress
View Source
const LANListenAddress = schema.LANListenAddress
View Source
const LANName = schema.InterfaceName
View Source
const LANStatus = schema.Status
View Source
const LANType = schema.Type
Variables ¶
This section is empty.
Functions ¶
func SetWindows ¶
Types ¶
type Controller ¶
type Controller struct { catalog.CatalogController IP lib.ControllerAddr // contains filtered or unexported fields }
func (*Controller) AsIController ¶
func (c *Controller) AsIController() types.IController
func (*Controller) AsObjects ¶
func (c *Controller) AsObjects(a *auth.Authorizator) []schema.Object
func (Controller) AsRuleEntity ¶
func (c Controller) AsRuleEntity() (string, interface{})
func (Controller) CacheKey ¶ added in v0.8.10
func (c Controller) CacheKey() string
func (Controller) IsDeleted ¶
func (c Controller) IsDeleted() bool
func (Controller) IsValid ¶
func (c Controller) IsValid() bool
func (Controller) Status ¶
func (c Controller) Status() types.Status
func (*Controller) String ¶
func (c *Controller) String() string
type Controllers ¶
type Controllers struct {
// contains filtered or unexported fields
}
func NewControllers ¶
func NewControllers() Controllers
func (*Controllers) AsIControllers ¶
func (cc *Controllers) AsIControllers() []types.IController
func (*Controllers) AsObjects ¶
func (cc *Controllers) AsObjects(a *auth.Authorizator) []schema.Object
func (*Controllers) Clone ¶
func (cc *Controllers) Clone() Controllers
NTS: 'added' is specifically not cloned - it has a lifetime for the duration of
the 'shadow' copy only
func (*Controllers) Delete ¶
func (cc *Controllers) Delete(a *auth.Authorizator, oid schema.OID, dbc db.DBC) ([]schema.Object, error)
func (*Controllers) Found ¶
func (cc *Controllers) Found(found []uint32)
func (*Controllers) List ¶
func (cc *Controllers) List() []Controller
func (*Controllers) Load ¶
func (cc *Controllers) Load(blob json.RawMessage) error
func (Controllers) Print ¶
func (cc Controllers) Print()
func (Controllers) Save ¶
func (cc Controllers) Save() (json.RawMessage, error)
func (*Controllers) Sweep ¶
func (cc *Controllers) Sweep(retention time.Duration)
func (Controllers) Validate ¶
func (cc Controllers) Validate() error
type TAuthable ¶ added in v0.8.3
type TAuthable interface { Controller | *Controller AsRuleEntity() (string, any) CacheKey() string }
Click to show internal directories.
Click to hide internal directories.