Documentation ¶
Index ¶
- type Impl
- func (kv Impl) DeleteGoogleUserToken(userID string) error
- func (kv Impl) DeleteOAuthStateToken(key string) error
- func (kv Impl) DeleteWatchChannelData(userID string) error
- func (kv Impl) GetGoogleUserToken(userID string) ([]byte, error)
- func (kv Impl) GetLastActivityForFile(userID, fileID string) (string, error)
- func (kv Impl) GetOAuthStateToken(key string) ([]byte, error)
- func (kv Impl) GetProjectRateLimitExceeded(serviceType string) (bool, error)
- func (kv Impl) GetUserRateLimitExceeded(serviceType string, userID string) (bool, error)
- func (kv Impl) GetWatchChannelData(userID string) (*model.WatchChannelData, error)
- func (kv Impl) GetWatchChannelDataUsingKey(key string) (*model.WatchChannelData, error)
- func (kv Impl) ListWatchChannelDataKeys(page, perPage int) ([]string, error)
- func (kv Impl) StoreGoogleUserToken(userID string, encryptedToken []byte) error
- func (kv Impl) StoreLastActivityForFile(userID, fileID, activityTime string) error
- func (kv Impl) StoreOAuthStateToken(key, value string) error
- func (kv Impl) StoreProjectRateLimitExceeded(serviceType string) error
- func (kv Impl) StoreUserRateLimitExceeded(serviceType string, userID string) error
- func (kv Impl) StoreWatchChannelData(userID string, watchChannelData model.WatchChannelData) error
- type KVStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
func (Impl) DeleteGoogleUserToken ¶
func (Impl) DeleteOAuthStateToken ¶
func (Impl) DeleteWatchChannelData ¶
func (Impl) GetLastActivityForFile ¶
func (Impl) GetProjectRateLimitExceeded ¶
func (Impl) GetUserRateLimitExceeded ¶
func (Impl) GetWatchChannelData ¶
func (kv Impl) GetWatchChannelData(userID string) (*model.WatchChannelData, error)
func (Impl) GetWatchChannelDataUsingKey ¶
func (kv Impl) GetWatchChannelDataUsingKey(key string) (*model.WatchChannelData, error)
func (Impl) ListWatchChannelDataKeys ¶
func (Impl) StoreGoogleUserToken ¶
func (Impl) StoreLastActivityForFile ¶
func (Impl) StoreOAuthStateToken ¶
func (Impl) StoreProjectRateLimitExceeded ¶
func (Impl) StoreUserRateLimitExceeded ¶
func (Impl) StoreWatchChannelData ¶
func (kv Impl) StoreWatchChannelData(userID string, watchChannelData model.WatchChannelData) error
type KVStore ¶
type KVStore interface { StoreWatchChannelData(userID string, watchChannelData model.WatchChannelData) error GetWatchChannelData(userID string) (*model.WatchChannelData, error) GetWatchChannelDataUsingKey(key string) (*model.WatchChannelData, error) ListWatchChannelDataKeys(page, perPage int) ([]string, error) DeleteWatchChannelData(userID string) error StoreLastActivityForFile(userID, fileID, activityTime string) error GetLastActivityForFile(userID, fileID string) (string, error) StoreOAuthStateToken(key, value string) error GetOAuthStateToken(key string) ([]byte, error) DeleteOAuthStateToken(key string) error StoreGoogleUserToken(userID string, encryptedToken []byte) error GetGoogleUserToken(userID string) ([]byte, error) DeleteGoogleUserToken(userID string) error StoreUserRateLimitExceeded(serviceType string, userID string) error GetUserRateLimitExceeded(serviceType string, userID string) (bool, error) StoreProjectRateLimitExceeded(serviceType string) error GetProjectRateLimitExceeded(serviceType string) (bool, error) }
func NewKVStore ¶
Click to show internal directories.
Click to hide internal directories.