Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SessionStore ¶
type SessionStore interface {
Get(ctx context.Context, key string, opt ...SessionStoreOption) ([]byte, bool, error)
GetMany(ctx context.Context, keys []string, opt ...SessionStoreOption) (map[string][]byte, error)
Set(ctx context.Context, key string, value []byte, opt ...SessionStoreOption) error
SetMany(ctx context.Context, values map[string][]byte, opt ...SessionStoreOption) error
Delete(ctx context.Context, key string, opt ...SessionStoreOption) error
Clear(ctx context.Context, opt ...SessionStoreOption) error
GetAll(ctx context.Context, opt ...SessionStoreOption) (map[string][]byte, error)
CloseStore(ctx context.Context) error
}
type SessionStoreBag ¶
type SessionStoreConstructor ¶
type SessionStoreConstructor func(ctx context.Context, opt ...SessionStoreConstructorOption) (SessionStore, error)
type SessionStoreKey ¶
type SessionStoreKey struct{}
type SessionStoreOption ¶
type SessionStoreOption func(ctx context.Context, bag *SessionStoreBag) error
func WithSyncID ¶
func WithSyncID(syncID string) SessionStoreOption
WithSyncID returns a SessionCacheOption that sets the sync ID for the operation.
Click to show internal directories.
Click to hide internal directories.