Documentation ¶
Index ¶
- func NewBarrier(ctx context.Context, client *hazelcast.Client, size int) (v barriers.Barrier, err error)
- func NewLockers(ctx context.Context, client *hazelcast.Client, size int) (v shareds.Lockers, err error)
- func NewShared(client *hazelcast.Client) shareds.Shared
- func NewStore(ctx context.Context, client *hazelcast.Client, size int) (v shareds.Store, err error)
- func UseExtraBarrier(builder barriers.BarrierBuilder)
- func UseExtraShared(shared shareds.Shared)
- func UseExtraSharedLockers(builder shareds.LockersBuilder)
- func UseExtraSharedStore(builder shareds.StoreBuilder)
- type Barrier
- type BarrierValue
- func (bv BarrierValue) Bytes() []byte
- func (bv BarrierValue) Executing() BarrierValue
- func (bv BarrierValue) Exist() bool
- func (bv BarrierValue) Failed(v error) (n BarrierValue)
- func (bv BarrierValue) Finished() bool
- func (bv BarrierValue) IsExecuting() bool
- func (bv BarrierValue) IsInit() bool
- func (bv BarrierValue) Succeed(v interface{}) (n BarrierValue, err error)
- func (bv BarrierValue) Value() (data []byte, err error)
- type Cluster
- func (cluster *Cluster) AddService(service clusters.Service)
- func (cluster *Cluster) Barrier() (barrier barriers.Barrier)
- func (cluster *Cluster) Construct(options clusters.ClusterOptions) (err error)
- func (cluster *Cluster) Join(ctx context.Context) (err error)
- func (cluster *Cluster) Leave(ctx context.Context) (err error)
- func (cluster *Cluster) NodeEvents() (events <-chan clusters.NodeEvent)
- func (cluster *Cluster) Shared() (shared shareds.Shared)
- type Locker
- type Lockers
- type Maps
- func (mm *Maps) Get(ctx context.Context, key []byte) (value []byte, has bool, err error)
- func (mm *Maps) Lock(ctx context.Context, key []byte) (err error)
- func (mm *Maps) LockWithLease(ctx context.Context, key []byte, ttl time.Duration) (err error)
- func (mm *Maps) NewLockContext(ctx context.Context, key []byte) context.Context
- func (mm *Maps) Remove(ctx context.Context, key []byte) (err error)
- func (mm *Maps) Set(ctx context.Context, key []byte, value []byte) (err error)
- func (mm *Maps) SetTTL(ctx context.Context, key []byte, ttl time.Duration) (err error)
- func (mm *Maps) SetWithTTL(ctx context.Context, key []byte, value []byte, ttl time.Duration) (err error)
- func (mm *Maps) Unlock(ctx context.Context, key []byte) (err error)
- type Shared
- type Store
- func (store *Store) Close()
- func (store *Store) Expire(ctx context.Context, key []byte, ttl time.Duration) (err error)
- func (store *Store) Get(ctx context.Context, key []byte) (value []byte, has bool, err error)
- func (store *Store) Incr(ctx context.Context, key []byte, delta int64) (v int64, err error)
- func (store *Store) Remove(ctx context.Context, key []byte) (err error)
- func (store *Store) Set(ctx context.Context, key []byte, value []byte) (err error)
- func (store *Store) SetWithTTL(ctx context.Context, key []byte, value []byte, ttl time.Duration) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBarrier ¶
func NewLockers ¶
func UseExtraBarrier ¶
func UseExtraBarrier(builder barriers.BarrierBuilder)
func UseExtraShared ¶
func UseExtraSharedLockers ¶
func UseExtraSharedLockers(builder shareds.LockersBuilder)
func UseExtraSharedStore ¶
func UseExtraSharedStore(builder shareds.StoreBuilder)
Types ¶
type BarrierValue ¶
type BarrierValue []byte
func NewBarrierValue ¶
func NewBarrierValue() BarrierValue
func (BarrierValue) Bytes ¶
func (bv BarrierValue) Bytes() []byte
func (BarrierValue) Executing ¶
func (bv BarrierValue) Executing() BarrierValue
func (BarrierValue) Exist ¶
func (bv BarrierValue) Exist() bool
func (BarrierValue) Failed ¶
func (bv BarrierValue) Failed(v error) (n BarrierValue)
func (BarrierValue) Finished ¶
func (bv BarrierValue) Finished() bool
func (BarrierValue) IsExecuting ¶
func (bv BarrierValue) IsExecuting() bool
func (BarrierValue) IsInit ¶
func (bv BarrierValue) IsInit() bool
func (BarrierValue) Succeed ¶
func (bv BarrierValue) Succeed(v interface{}) (n BarrierValue, err error)
func (BarrierValue) Value ¶
func (bv BarrierValue) Value() (data []byte, err error)
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func (*Cluster) AddService ¶
func (*Cluster) Construct ¶
func (cluster *Cluster) Construct(options clusters.ClusterOptions) (err error)
func (*Cluster) NodeEvents ¶
type Lockers ¶
type Lockers struct {
// contains filtered or unexported fields
}
type Maps ¶
type Maps struct {
// contains filtered or unexported fields
}
func (*Maps) LockWithLease ¶
func (*Maps) NewLockContext ¶
func (*Maps) SetWithTTL ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.