Documentation ¶
Index ¶
- Variables
- type BoltDB
- func (b *BoltDB) Close() error
- func (b *BoltDB) Count(name []byte) (int, error)
- func (b *BoltDB) Counters() (map[string]int, error)
- func (b *BoltDB) Expired(ttlName []byte, maxAge time.Duration) (keys [][]byte, err error)
- func (b *BoltDB) Hook(name string) (*models.Hook, error)
- func (b *BoltDB) PutHook(hook *models.Hook) error
- func (b *BoltDB) PutRequest(hook string, req *models.Request) error
- func (b *BoltDB) RecentHooks(max int) ([]*models.Hook, error)
- func (b *BoltDB) Requests(hook string) ([]*models.Request, error)
- func (b *BoltDB) SweepHooks(maxAge time.Duration) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BucketHooks name of the hooks bucket BucketHooks = []byte("hooks") // BucketReqs name of the requests bucket BucketReqs = []byte("requests") // BucketTTL name of the ttl bucket BucketTTL = []byte("ttl") // BucketCounters name of the counters bucket BucketCounters = []byte("counters") )
Functions ¶
This section is empty.
Types ¶
type BoltDB ¶
type BoltDB struct {
// contains filtered or unexported fields
}
BoltDB is a wrapper over Bolt DB
func (*BoltDB) PutRequest ¶
PutRequest save request model into storage
func (*BoltDB) RecentHooks ¶
RecentHooks returns recent public hooks
Click to show internal directories.
Click to hide internal directories.