Documentation ¶
Index ¶
- Constants
- type BaseRunner
- type CreateCacheRunner
- type DelRunner
- type DeleteCacheRunner
- type GetRunner
- type GetSetRunner
- type KeysRunner
- type ListCachesRunner
- type Response
- type Runner
- type RunnerFactory
- func (f *RunnerFactory) GetCreateCacheRunner(r *api.CreateCacheRequest, accessToken *types.AccessToken) *CreateCacheRunner
- func (f *RunnerFactory) GetDelRunner(r *api.DelRequest, accessToken *types.AccessToken) *DelRunner
- func (f *RunnerFactory) GetDeleteCacheRunner(r *api.DeleteCacheRequest, accessToken *types.AccessToken) *DeleteCacheRunner
- func (f *RunnerFactory) GetGetRunner(r *api.GetRequest, accessToken *types.AccessToken) *GetRunner
- func (f *RunnerFactory) GetGetSetRunner(r *api.GetSetRequest, accessToken *types.AccessToken) *GetSetRunner
- func (f *RunnerFactory) GetKeysRunner(r *api.KeysRequest, accessToken *types.AccessToken, streaming StreamingKeys) *KeysRunner
- func (f *RunnerFactory) GetListCachesRunner(r *api.ListCachesRequest, accessToken *types.AccessToken) *ListCachesRunner
- func (f *RunnerFactory) GetSetRunner(r *api.SetRequest, accessToken *types.AccessToken) *SetRunner
- type Session
- type SessionManager
- type SetRunner
- type StreamingKeys
- type TxRunner
Constants ¶
View Source
const ( SetStatus string = "set" DeletedStatus string = "deleted" CreatedStatus string = "created" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRunner ¶
type BaseRunner struct {
// contains filtered or unexported fields
}
func NewBaseRunner ¶
func NewBaseRunner(encoder metadata.CacheEncoder, accessToken *types.AccessToken, cacheStore cache.Cache) *BaseRunner
type CreateCacheRunner ¶
type CreateCacheRunner struct { *BaseRunner // contains filtered or unexported fields }
type DelRunner ¶
type DelRunner struct { *BaseRunner // contains filtered or unexported fields }
type DeleteCacheRunner ¶
type DeleteCacheRunner struct { *BaseRunner // contains filtered or unexported fields }
type GetRunner ¶
type GetRunner struct { *BaseRunner // contains filtered or unexported fields }
type GetSetRunner ¶
type GetSetRunner struct { *BaseRunner // contains filtered or unexported fields }
type KeysRunner ¶
type KeysRunner struct { *BaseRunner // contains filtered or unexported fields }
type ListCachesRunner ¶
type ListCachesRunner struct { *BaseRunner // contains filtered or unexported fields }
type Response ¶
type Response struct { api.Response Status string Data []byte OldValue []byte Keys []string DeletedCount int64 Caches []*api.CacheMetadata Cursor uint64 }
Response is a wrapper on api.Response.
type RunnerFactory ¶
type RunnerFactory struct {
// contains filtered or unexported fields
}
func NewRunnerFactory ¶
func NewRunnerFactory(encoder metadata.CacheEncoder, cacheStore cache.Cache) *RunnerFactory
NewRunnerFactory returns RunnerFactory object.
func (*RunnerFactory) GetCreateCacheRunner ¶
func (f *RunnerFactory) GetCreateCacheRunner(r *api.CreateCacheRequest, accessToken *types.AccessToken) *CreateCacheRunner
func (*RunnerFactory) GetDelRunner ¶
func (f *RunnerFactory) GetDelRunner(r *api.DelRequest, accessToken *types.AccessToken) *DelRunner
func (*RunnerFactory) GetDeleteCacheRunner ¶
func (f *RunnerFactory) GetDeleteCacheRunner(r *api.DeleteCacheRequest, accessToken *types.AccessToken) *DeleteCacheRunner
func (*RunnerFactory) GetGetRunner ¶
func (f *RunnerFactory) GetGetRunner(r *api.GetRequest, accessToken *types.AccessToken) *GetRunner
func (*RunnerFactory) GetGetSetRunner ¶
func (f *RunnerFactory) GetGetSetRunner(r *api.GetSetRequest, accessToken *types.AccessToken) *GetSetRunner
func (*RunnerFactory) GetKeysRunner ¶
func (f *RunnerFactory) GetKeysRunner(r *api.KeysRequest, accessToken *types.AccessToken, streaming StreamingKeys) *KeysRunner
func (*RunnerFactory) GetListCachesRunner ¶
func (f *RunnerFactory) GetListCachesRunner(r *api.ListCachesRequest, accessToken *types.AccessToken) *ListCachesRunner
func (*RunnerFactory) GetSetRunner ¶
func (f *RunnerFactory) GetSetRunner(r *api.SetRequest, accessToken *types.AccessToken) *SetRunner
type Session ¶
type Session interface { // Execute executes the request using the query runner Execute(ctx context.Context, runner Runner) (Response, error) // TxExecute executes in a fdb transaction. // Metadata of caches are stored in fdb as part of project metadata and that modification is a transactional operation. TxExecute(ctx context.Context, runner TxRunner) (Response, error) }
type SessionManager ¶
func NewSessionManager ¶
func NewSessionManager(txMgr *transaction.Manager, tenantMgr *metadata.TenantManager, tenantTracker *metadata.CacheTracker) *SessionManager
type SetRunner ¶
type SetRunner struct { *BaseRunner // contains filtered or unexported fields }
type StreamingKeys ¶
type StreamingKeys interface { api.Cache_KeysServer }
StreamingKeys is a wrapper interface for passing around for streaming cache keys.
Click to show internal directories.
Click to hide internal directories.