Documentation ¶
Index ¶
- func GetCounter(ctx context.Context, name string, opts ...primitive.Option) (counter.Counter, error)
- func GetElection(ctx context.Context, name string, opts ...primitive.Option) (election.Election, error)
- func GetIndexedMap(ctx context.Context, name string, opts ...primitive.Option) (indexedmap.IndexedMap, error)
- func GetList(ctx context.Context, name string, opts ...primitive.Option) (list.List, error)
- func GetLock(ctx context.Context, name string, opts ...primitive.Option) (lock.Lock, error)
- func GetMap(ctx context.Context, name string, opts ...primitive.Option) (_map.Map, error)
- func GetSet(ctx context.Context, name string, opts ...primitive.Option) (set.Set, error)
- func GetValue(ctx context.Context, name string, opts ...primitive.Option) (value.Value, error)
- type Client
- type EmptyOption
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCounter ¶
func GetCounter(ctx context.Context, name string, opts ...primitive.Option) (counter.Counter, error)
GetCounter gets the Counter instance of the given name
func GetElection ¶
func GetElection(ctx context.Context, name string, opts ...primitive.Option) (election.Election, error)
GetElection gets the Election instance of the given name
func GetIndexedMap ¶
func GetIndexedMap(ctx context.Context, name string, opts ...primitive.Option) (indexedmap.IndexedMap, error)
GetIndexedMap gets the IndexedMap instance of the given name
Types ¶
type Client ¶
type Client interface { counter.Client election.Client indexedmap.Client list.Client lock.Client _map.Client set.Client value.Client io.Closer }
Client is an Atomix client
type EmptyOption ¶ added in v0.5.5
type EmptyOption struct{}
EmptyOption is an empty primitive option
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is a client option
func WithBrokerHost ¶ added in v0.5.5
WithBrokerHost sets the broker host
func WithBrokerPort ¶ added in v0.5.5
WithBrokerPort sets the broker port
func WithClientID ¶ added in v0.5.5
WithClientID sets the client identifier
Click to show internal directories.
Click to hide internal directories.