Documentation ¶
Index ¶
- type Context
- func (c *Context) CleanUpRecordsByAge() error
- func (c *Context) CleanUpRecordsByCount() error
- func (c *Context) DeleteAll() error
- func (c *Context) DeleteBan(target string) (int, error)
- func (c *Context) DeleteExpired() error
- func (c *Context) Flush() error
- func (c *Context) GetBansAt(at time.Time) ([]map[string]string, error)
- func (c *Context) GetStats(since time.Duration) ([]map[string]string, error)
- func (c *Context) StartAutoCommit() error
- func (c *Context) WriteBanApplication(ban types.BanApplication) error
- func (c *Context) WriteSignal(sig types.SignalOccurence) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Db *gorm.DB //Pointer to sqlite db PusherTomb tomb.Tomb // contains filtered or unexported fields }
func (*Context) CleanUpRecordsByAge ¶ added in v0.2.3
func (*Context) CleanUpRecordsByCount ¶ added in v0.2.3
func (*Context) DeleteExpired ¶ added in v0.2.3
func (*Context) StartAutoCommit ¶ added in v0.2.3
func (*Context) WriteBanApplication ¶
func (c *Context) WriteBanApplication(ban types.BanApplication) error
we simply append the event to the transaction
func (*Context) WriteSignal ¶
func (c *Context) WriteSignal(sig types.SignalOccurence) error
Click to show internal directories.
Click to hide internal directories.