Documentation ¶
Index ¶
Constants ¶
View Source
const ConcurrentSet = "/SAIL/ConcurrentSet"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ETCDConfig ¶
type GetResponse ¶
type Repo ¶
type Repo interface { Set(ctx context.Context, key string, value string) SetResponse AtomicBatchSet(ctx context.Context, key []string, value []string, callback ...func()) SetResponse Get(ctx context.Context, key string) GetResponse ConcurrentSet(ctx context.Context, key string, value string) SetResponse GetWithReversion(ctx context.Context, key string, reversion int) GetResponse Del(ctx context.Context, key string) (bool, error) Close() error }
func New ¶
func New(cfg *ETCDConfig) (Repo, error)
type SetResponse ¶
Click to show internal directories.
Click to hide internal directories.