Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) CreateKey ¶
func (m *Manager) CreateKey(rk *key.RequestKey) (*key.ResponseKey, error)
func (*Manager) GetKeysByTag ¶
func (m *Manager) GetKeysByTag(tag string) ([]*key.ResponseKey, error)
type RateLimitManager ¶ added in v0.0.2
type RateLimitManager struct {
// contains filtered or unexported fields
}
func NewRateLimitManager ¶ added in v0.0.2
func NewRateLimitManager(c Cache) *RateLimitManager
type ReportingManager ¶ added in v0.0.7
type ReportingManager struct {
// contains filtered or unexported fields
}
func NewReportingManager ¶ added in v0.0.7
func NewReportingManager(cs costStorage, ks keyStorage, es eventStorage) *ReportingManager
func (*ReportingManager) GetEventReporting ¶ added in v0.0.9
func (rm *ReportingManager) GetEventReporting(e *event.ReportingRequest) (*event.ReportingResponse, error)
func (*ReportingManager) GetKeyReporting ¶ added in v0.0.7
func (rm *ReportingManager) GetKeyReporting(keyId string) (*key.KeyReporting, error)
type Storage ¶
type Storage interface { GetKeysByTag(tag string) ([]*key.ResponseKey, error) UpdateKey(id string, key *key.UpdateKey) (*key.ResponseKey, error) CreateKey(key *key.RequestKey) (*key.ResponseKey, error) DeleteKey(id string) error }
Click to show internal directories.
Click to hide internal directories.