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
- type Door
- func (d *Door) AsObjects(a *auth.Authorizator) []schema.Object
- func (d Door) AsRuleEntity() (string, any)
- func (d Door) CacheKey() string
- func (d *Door) Delay() uint8
- func (d *Door) IsDeleted() bool
- func (d Door) IsOk() bool
- func (d Door) IsValid() bool
- func (d Door) Keypad() bool
- func (d *Door) Mode() core.ControlState
- func (d Door) Status() types.Status
- func (d Door) String() string
- type Doors
- func (dd *Doors) AsObjects(a *auth.Authorizator) []schema.Object
- func (dd *Doors) ByName(name string) (Door, bool)
- func (dd *Doors) Clone() Doors
- func (dd *Doors) Create(a *auth.Authorizator, oid schema.OID, value string, dbc db.DBC) ([]schema.Object, error)
- func (dd *Doors) Delete(a *auth.Authorizator, oid schema.OID, dbc db.DBC) ([]schema.Object, error)
- func (dd *Doors) Door(oid schema.OID) (Door, bool)
- func (dd *Doors) Load(blob json.RawMessage) error
- func (dd Doors) Print()
- func (dd Doors) Save() (json.RawMessage, error)
- func (dd *Doors) Sweep(retention time.Duration)
- func (dd *Doors) Update(a *auth.Authorizator, oid schema.OID, value string, dbc db.DBC) ([]schema.Object, error)
- func (dd Doors) Validate() error
- type TAuthable
Constants ¶
View Source
const DoorControl = schema.DoorControl
View Source
const DoorControlConfigured = schema.DoorControlConfigured
View Source
const DoorControlError = schema.DoorControlError
View Source
const DoorControlModified = schema.DoorControlModified
View Source
const DoorControlStatus = schema.DoorControlStatus
View Source
const DoorCreated = schema.Created
View Source
const DoorDelay = schema.DoorDelay
View Source
const DoorDelayConfigured = schema.DoorDelayConfigured
View Source
const DoorDelayError = schema.DoorDelayError
View Source
const DoorDelayModified = schema.DoorDelayModified
View Source
const DoorDelayStatus = schema.DoorDelayStatus
View Source
const DoorDeleted = schema.Deleted
View Source
const DoorKeypad = schema.DoorKeypad
View Source
const DoorName = schema.DoorName
View Source
const DoorPasscodes = schema.DoorPasscodes
View Source
const DoorStatus = schema.Status
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Door ¶
type Door struct { catalog.CatalogDoor // contains filtered or unexported fields }
func (Door) AsRuleEntity ¶
func (*Door) Mode ¶
func (d *Door) Mode() core.ControlState
Click to show internal directories.
Click to hide internal directories.