Documentation ¶
Index ¶
- type Cache
- type Encrypter
- type Manager
- type ProviderSettingsManager
- func (m *ProviderSettingsManager) CreateSetting(setting *provider.Setting) (*provider.Setting, error)
- func (m *ProviderSettingsManager) GetSetting(id string) (*provider.Setting, error)
- func (m *ProviderSettingsManager) GetSettings() ([]*provider.Setting, error)
- func (m *ProviderSettingsManager) UpdateSetting(id string, setting *provider.Setting) (*provider.Setting, error)
- type ProviderSettingsMemStorage
- type ProviderSettingsStorage
- type RateLimitManager
- type ReportingManager
- func (rm *ReportingManager) GetEvent(customId string) (*event.Event, error)
- func (rm *ReportingManager) GetEventReporting(e *event.ReportingRequest) (*event.ReportingResponse, error)
- func (rm *ReportingManager) GetEvents(customId string) ([]*event.Event, error)
- func (rm *ReportingManager) GetKeyReporting(keyId string) (*key.KeyReporting, error)
- type Storage
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)
type ProviderSettingsManager ¶ added in v1.0.0
type ProviderSettingsManager struct { Storage ProviderSettingsStorage MemDb ProviderSettingsMemStorage }
func NewProviderSettingsManager ¶ added in v1.0.0
func NewProviderSettingsManager(s ProviderSettingsStorage, memdb ProviderSettingsMemStorage) *ProviderSettingsManager
func (*ProviderSettingsManager) CreateSetting ¶ added in v1.0.0
func (*ProviderSettingsManager) GetSetting ¶ added in v1.0.0
func (m *ProviderSettingsManager) GetSetting(id string) (*provider.Setting, error)
func (*ProviderSettingsManager) GetSettings ¶ added in v1.2.0
func (m *ProviderSettingsManager) GetSettings() ([]*provider.Setting, error)
func (*ProviderSettingsManager) UpdateSetting ¶ added in v1.0.0
type ProviderSettingsMemStorage ¶ added in v1.0.0
type ProviderSettingsStorage ¶ added in v1.0.0
type ProviderSettingsStorage interface { UpdateProviderSetting(id string, setting *provider.Setting) (*provider.Setting, error) CreateProviderSetting(setting *provider.Setting) (*provider.Setting, error) GetProviderSetting(id string) (*provider.Setting, error) GetProviderSettings(withSecret bool) ([]*provider.Setting, 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) GetEvent ¶ added in v1.2.0
func (rm *ReportingManager) GetEvent(customId string) (*event.Event, error)
func (*ReportingManager) GetEventReporting ¶ added in v0.0.9
func (rm *ReportingManager) GetEventReporting(e *event.ReportingRequest) (*event.ReportingResponse, error)
func (*ReportingManager) GetEvents ¶ added in v1.2.0
func (rm *ReportingManager) GetEvents(customId string) ([]*event.Event, error)
func (*ReportingManager) GetKeyReporting ¶ added in v0.0.7
func (rm *ReportingManager) GetKeyReporting(keyId string) (*key.KeyReporting, error)
type Storage ¶
type Storage interface { GetKeys(tags []string, provider string) ([]*key.ResponseKey, error) UpdateKey(id string, key *key.UpdateKey) (*key.ResponseKey, error) CreateKey(key *key.RequestKey) (*key.ResponseKey, error) DeleteKey(id string) error GetProviderSetting(id string) (*provider.Setting, error) }
Click to show internal directories.
Click to hide internal directories.