Versions in this module Expand all Collapse all v1 v1.0.0 Dec 12, 2024 Changes in this version + type Impl struct + 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 interface + DeleteGoogleUserToken func(userID string) error + DeleteOAuthStateToken func(key string) error + DeleteWatchChannelData func(userID string) error + GetGoogleUserToken func(userID string) ([]byte, error) + GetLastActivityForFile func(userID, fileID string) (string, error) + GetOAuthStateToken func(key string) ([]byte, error) + GetProjectRateLimitExceeded func(serviceType string) (bool, error) + GetUserRateLimitExceeded func(serviceType string, userID string) (bool, error) + GetWatchChannelData func(userID string) (*model.WatchChannelData, error) + GetWatchChannelDataUsingKey func(key string) (*model.WatchChannelData, error) + ListWatchChannelDataKeys func(page, perPage int) ([]string, error) + StoreGoogleUserToken func(userID string, encryptedToken []byte) error + StoreLastActivityForFile func(userID, fileID, activityTime string) error + StoreOAuthStateToken func(key, value string) error + StoreProjectRateLimitExceeded func(serviceType string) error + StoreUserRateLimitExceeded func(serviceType string, userID string) error + StoreWatchChannelData func(userID string, watchChannelData model.WatchChannelData) error + func NewKVStore(client *pluginapi.Client) KVStore