Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Event event // singleton of type event
Functions ¶
This section is empty.
Types ¶
type GetEventTypes ¶
type GormStore ¶
type GormStore struct {
// contains filtered or unexported fields
}
func NewGormStore ¶
func (*GormStore) LockedStatus ¶ added in v0.6.1
func (s *GormStore) LockedStatus(fn func(status *ListenerStatus) error) error
LockedStatus runs a transaction on the database manipulating 'status' of type ListenerStatus. It takes a function 'fn' as argument. In the context of 'fn' 'status' is locked. Uses NOWAIT modifier on the lock so simultaneous requests can be ignored.
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func NewListener ¶
type ListenerStatus ¶
func (ListenerStatus) TableName ¶
func (ListenerStatus) TableName() string
type Store ¶
type Store interface {
LockedStatus(func(*ListenerStatus) error) error
}
Store manages data regarding tokens.
Click to show internal directories.
Click to hide internal directories.