Documentation ¶
Index ¶
- type DuplicationError
- type NullArray
- type Store
- func (s *Store) AlterEventsTable() error
- func (s *Store) AlterKeysTable() error
- func (s *Store) AlterProviderSettingsTable() error
- func (s *Store) AlterRoutesTable() error
- func (s *Store) CreateCreateAtIndexForKeys() error
- func (s *Store) CreateCreatedAtIndexForUsers() error
- func (s *Store) CreateCustomProvider(provider *custom.Provider) (*custom.Provider, error)
- func (s *Store) CreateCustomProvidersTable() error
- func (s *Store) CreateEventsByDayTable() error
- func (s *Store) CreateEventsTable() error
- func (s *Store) CreateKey(rk *key.RequestKey) (*key.ResponseKey, error)
- func (s *Store) CreateKeyIdIndexForEventsTable() error
- func (s *Store) CreateKeysTable() error
- func (s *Store) CreatePolicy(p *policy.Policy) (*policy.Policy, error)
- func (s *Store) CreatePolicyTable() error
- func (s *Store) CreateProviderSetting(setting *provider.Setting) (*provider.Setting, error)
- func (s *Store) CreateProviderSettingsTable() error
- func (s *Store) CreateRoute(r *route.Route) (*route.Route, error)
- func (s *Store) CreateRoutesTable() error
- func (s *Store) CreateTimeStampIndexForEventsTable() error
- func (s *Store) CreateUniqueIndexForEventsTable() error
- func (s *Store) CreateUser(u *user.User) (*user.User, error)
- func (s *Store) CreateUserIdIndexForUsers() error
- func (s *Store) CreateUsersTable() error
- func (s *Store) DeleteKey(id string) error
- func (s *Store) GetAggregatedEventByDayDataPoints(start, end int64, keyIds []string) ([]*event.DataPoint, error)
- func (s *Store) GetAllKeys() ([]*key.ResponseKey, error)
- func (s *Store) GetAllPolicies() ([]*policy.Policy, error)
- func (s *Store) GetCustomIds(keyId string) ([]string, error)
- func (s *Store) GetCustomProvider(id string) (*custom.Provider, error)
- func (s *Store) GetCustomProviderByName(name string) (*custom.Provider, error)
- func (s *Store) GetCustomProviders() ([]*custom.Provider, error)
- func (s *Store) GetEventDataPoints(start, end, increment int64, tags, keyIds, customIds, userIds []string, ...) ([]*event.DataPoint, error)
- func (s *Store) GetEvents(userId string, customId string, keyIds []string, start int64, end int64) ([]*event.Event, error)
- func (s *Store) GetEventsV2(req *event.EventRequest) (*event.EventResponse, error)
- func (s *Store) GetKey(keyId string) (*key.ResponseKey, error)
- func (s *Store) GetKeyByHash(hash string) (*key.ResponseKey, error)
- func (s *Store) GetKeys(tags, keyIds []string, provider string) ([]*key.ResponseKey, error)
- func (s *Store) GetKeysV2(tags, keyIds []string, revoked *bool, limit, offset int, name, order string, ...) (*key.GetKeysResponse, error)
- func (s *Store) GetLatencyPercentiles(start, end int64, tags, keyIds []string) ([]float64, error)
- func (s *Store) GetPoliciesByTags(tags []string) ([]*policy.Policy, error)
- func (s *Store) GetPolicyById(id string) (*policy.Policy, error)
- func (s *Store) GetProviderSetting(id string, withSecret bool) (*provider.Setting, error)
- func (s *Store) GetProviderSettings(withSecret bool, ids []string) ([]*provider.Setting, error)
- func (s *Store) GetRoute(id string) (*route.Route, error)
- func (s *Store) GetRouteByPath(path string) (*route.Route, error)
- func (s *Store) GetRoutes() ([]*route.Route, error)
- func (s *Store) GetTopKeyDataPoints(start, end int64, tags, keyIds []string, order string, limit, offset int, ...) ([]*event.KeyDataPoint, error)
- func (s *Store) GetUpdatedCustomProviders(updatedAt int64) ([]*custom.Provider, error)
- func (s *Store) GetUpdatedKeys(updatedAt int64) ([]*key.ResponseKey, error)
- func (s *Store) GetUpdatedPolicies(updatedAt int64) ([]*policy.Policy, error)
- func (s *Store) GetUpdatedProviderSettings(updatedAt int64) ([]*provider.Setting, error)
- func (s *Store) GetUpdatedRoutes(updatedAt int64) ([]*route.Route, error)
- func (s *Store) GetUserIds(keyId string) ([]string, error)
- func (s *Store) GetUsers(tags, keyIds, userIds []string, offset, limit int) ([]*user.User, error)
- func (s *Store) InsertEvent(e *event.Event) error
- func (s *Store) UpdateCustomProvider(id string, provider *custom.UpdateProvider) (*custom.Provider, error)
- func (s *Store) UpdateKey(id string, uk *key.UpdateKey) (*key.ResponseKey, error)
- func (s *Store) UpdatePolicy(id string, p *policy.UpdatePolicy) (*policy.Policy, error)
- func (s *Store) UpdateProviderSetting(id string, setting *provider.UpdateSetting) (*provider.Setting, error)
- func (s *Store) UpdateUser(id string, uu *user.UpdateUser) (*user.User, error)
- func (s *Store) UpdateUserViaTagsAndUserId(tags []string, uid string, uu *user.UpdateUser) (*user.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DuplicationError ¶
type DuplicationError struct {
// contains filtered or unexported fields
}
func NewDuplicationError ¶
func NewDuplicationError(msg string) *DuplicationError
func (*DuplicationError) Duplication ¶
func (de *DuplicationError) Duplication()
func (*DuplicationError) Error ¶
func (de *DuplicationError) Error() string
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AlterEventsTable ¶ added in v1.0.4
func (*Store) AlterKeysTable ¶ added in v1.0.0
func (*Store) AlterProviderSettingsTable ¶ added in v1.1.1
func (*Store) AlterRoutesTable ¶ added in v1.25.0
func (*Store) CreateCreateAtIndexForKeys ¶ added in v1.18.0
func (*Store) CreateCreatedAtIndexForUsers ¶ added in v1.18.0
func (*Store) CreateCustomProvider ¶ added in v1.3.0
func (*Store) CreateCustomProvidersTable ¶ added in v1.3.0
func (*Store) CreateEventsByDayTable ¶ added in v1.13.11
func (*Store) CreateEventsTable ¶ added in v0.0.9
func (*Store) CreateKey ¶
func (s *Store) CreateKey(rk *key.RequestKey) (*key.ResponseKey, error)
func (*Store) CreateKeyIdIndexForEventsTable ¶ added in v1.13.11
func (*Store) CreateKeysTable ¶
func (*Store) CreatePolicy ¶ added in v1.13.0
func (*Store) CreatePolicyTable ¶ added in v1.13.0
func (*Store) CreateProviderSetting ¶ added in v1.0.0
func (*Store) CreateProviderSettingsTable ¶ added in v1.0.0
func (*Store) CreateRoute ¶ added in v1.7.0
func (*Store) CreateRoutesTable ¶ added in v1.7.0
func (*Store) CreateTimeStampIndexForEventsTable ¶ added in v1.13.11
func (*Store) CreateUniqueIndexForEventsTable ¶ added in v1.13.11
func (*Store) CreateUser ¶ added in v1.18.0
func (*Store) CreateUserIdIndexForUsers ¶ added in v1.18.0
func (*Store) CreateUsersTable ¶ added in v1.18.0
func (*Store) GetAggregatedEventByDayDataPoints ¶ added in v1.13.11
func (*Store) GetAllKeys ¶
func (s *Store) GetAllKeys() ([]*key.ResponseKey, error)
func (*Store) GetAllPolicies ¶ added in v1.13.0
func (*Store) GetCustomIds ¶ added in v1.17.0
func (*Store) GetCustomProvider ¶ added in v1.3.0
func (*Store) GetCustomProviderByName ¶ added in v1.3.0
func (*Store) GetCustomProviders ¶ added in v1.3.0
func (*Store) GetEventDataPoints ¶ added in v0.0.9
func (*Store) GetEventsV2 ¶ added in v1.19.0
func (s *Store) GetEventsV2(req *event.EventRequest) (*event.EventResponse, error)
func (*Store) GetKey ¶ added in v0.0.7
func (s *Store) GetKey(keyId string) (*key.ResponseKey, error)
func (*Store) GetKeyByHash ¶ added in v1.13.4
func (s *Store) GetKeyByHash(hash string) (*key.ResponseKey, error)
func (*Store) GetLatencyPercentiles ¶ added in v0.0.9
func (*Store) GetPoliciesByTags ¶ added in v1.13.0
func (*Store) GetPolicyById ¶ added in v1.13.0
func (*Store) GetProviderSetting ¶ added in v1.0.0
func (*Store) GetProviderSettings ¶ added in v1.2.0
func (*Store) GetRouteByPath ¶ added in v1.7.0
func (*Store) GetTopKeyDataPoints ¶ added in v1.18.0
func (*Store) GetUpdatedCustomProviders ¶ added in v1.3.0
func (*Store) GetUpdatedKeys ¶
func (s *Store) GetUpdatedKeys(updatedAt int64) ([]*key.ResponseKey, error)
func (*Store) GetUpdatedPolicies ¶ added in v1.13.0
func (*Store) GetUpdatedProviderSettings ¶ added in v1.0.0
func (*Store) GetUpdatedRoutes ¶ added in v1.7.0
func (*Store) GetUserIds ¶ added in v1.17.0
func (*Store) UpdateCustomProvider ¶ added in v1.3.0
func (*Store) UpdatePolicy ¶ added in v1.13.0
func (*Store) UpdateProviderSetting ¶ added in v1.0.0
func (*Store) UpdateUser ¶ added in v1.18.0
func (*Store) UpdateUserViaTagsAndUserId ¶ added in v1.18.0
Click to show internal directories.
Click to hide internal directories.