Documentation ¶
Index ¶
- Constants
- type IndexDefinition
- type IndexField
- type Storage
- func (m *Storage) AddWebhook(webhook *core.Webhook) error
- func (m *Storage) DeleteRequest(id string) error
- func (m *Storage) GetAllWebhooks() ([]*core.Webhook, error)
- func (m *Storage) GetNewestRequests(count int) ([]*core.Request, error)
- func (m *Storage) GetOldestRequests(count int) ([]*core.Request, error)
- func (m *Storage) GetRequest(id string) (*core.Request, error)
- func (m *Storage) GetWebhook(id string) (*core.Webhook, error)
- func (m *Storage) RemoveWebhook(id string) error
- func (m *Storage) StoreRequest(request *core.Request) error
- func (m *Storage) UpdateWebhook(webhook *core.Webhook) error
Constants ¶
View Source
const ( OrderASC int = 1 OrderDESC int = -1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexDefinition ¶
type IndexDefinition struct { Fields []IndexField // Name of the index, it is automatically suffixed with "Idx" so no need to add that Name string }
type IndexField ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) DeleteRequest ¶
func (*Storage) GetNewestRequests ¶
func (*Storage) GetOldestRequests ¶
func (*Storage) RemoveWebhook ¶
Click to show internal directories.
Click to hide internal directories.