Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyValue ¶
type KeyValue interface {
Set(ctx context.Context, key string, value fmt.Stringer) error
Get(ctx context.Context, key string, withPrefix bool) (map[string]string, bool)
Delete(ctx context.Context, key string) error
Keys(ctx context.Context) []string
Close(ctx context.Context) error
StartSession(ctx context.Context) error
KeepAlive(ctx context.Context, callback func(any)) error
EndSession(ctx context.Context) error
Persist(ctx context.Context, key string, value Snapshot) error
Restore(ctx context.Context, key string) (Snapshot, error)
}
type Snapshot ¶
func NewSnapshot ¶
type Stringerable ¶
type Stringerable struct {
// contains filtered or unexported fields
}
func ToStringerable ¶
func ToStringerable(value string) Stringerable
func (Stringerable) String ¶
func (s Stringerable) String() string
Click to show internal directories.
Click to hide internal directories.