Documentation ¶
Index ¶
- type Context
- func (c *Context) AutoCommit()
- func (c *Context) DeleteAll() error
- func (c *Context) DeleteBan(target string) (int, 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) 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 // contains filtered or unexported fields }
func (*Context) AutoCommit ¶
func (c *Context) AutoCommit()
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.