Documentation ¶
Index ¶
- Variables
- type BatchRequest
- type ImmuClient
- func (c *ImmuClient) ByIndex(index uint64) (*schema.Item, error)
- func (c *ImmuClient) Connect() (err error)
- func (c *ImmuClient) Connected(f func() (interface{}, error)) (interface{}, error)
- func (c *ImmuClient) Consistency(index uint64) (*schema.ConsistencyProof, error)
- func (c *ImmuClient) Count(keyReader io.Reader) (*schema.ItemsCount, error)
- func (c *ImmuClient) Disconnect() error
- func (c *ImmuClient) Get(keyReader io.Reader) (*schema.Item, error)
- func (c *ImmuClient) GetBatch(keyReaders []io.Reader) (*schema.ItemList, error)
- func (c *ImmuClient) HealthCheck() error
- func (c *ImmuClient) History(keyReader io.Reader) (*schema.ItemList, error)
- func (c *ImmuClient) Inclusion(index uint64) (*schema.InclusionProof, error)
- func (c *ImmuClient) Scan(keyReader io.Reader) (*schema.ItemList, error)
- func (c *ImmuClient) Set(keyReader io.Reader, valueReader io.Reader) (*schema.Index, error)
- func (c *ImmuClient) SetBatch(request *BatchRequest) (*schema.Index, error)
- func (c *ImmuClient) WithLogger(logger logger.Logger) *ImmuClient
- func (c *ImmuClient) WithOptions(options Options) *ImmuClient
- type Options
- func (o Options) Bind() string
- func (o Options) FromEnvironment() Options
- func (o Options) String() string
- func (o Options) WithAddress(address string) Options
- func (o Options) WithDialRetries(retries int) Options
- func (o Options) WithHealthCheckRetries(retries int) Options
- func (o Options) WithPort(port int) Options
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ImmuClient ¶
type ImmuClient struct { Logger logger.Logger Options Options // contains filtered or unexported fields }
func DefaultClient ¶
func DefaultClient() *ImmuClient
func (*ImmuClient) Connect ¶
func (c *ImmuClient) Connect() (err error)
func (*ImmuClient) Connected ¶
func (c *ImmuClient) Connected(f func() (interface{}, error)) (interface{}, error)
func (*ImmuClient) Consistency ¶
func (c *ImmuClient) Consistency(index uint64) (*schema.ConsistencyProof, error)
func (*ImmuClient) Count ¶
func (c *ImmuClient) Count(keyReader io.Reader) (*schema.ItemsCount, error)
func (*ImmuClient) Disconnect ¶
func (c *ImmuClient) Disconnect() error
func (*ImmuClient) HealthCheck ¶
func (c *ImmuClient) HealthCheck() error
func (*ImmuClient) Inclusion ¶
func (c *ImmuClient) Inclusion(index uint64) (*schema.InclusionProof, error)
func (*ImmuClient) SetBatch ¶
func (c *ImmuClient) SetBatch(request *BatchRequest) (*schema.Index, error)
func (*ImmuClient) WithLogger ¶
func (c *ImmuClient) WithLogger(logger logger.Logger) *ImmuClient
func (*ImmuClient) WithOptions ¶
func (c *ImmuClient) WithOptions(options Options) *ImmuClient
type Options ¶
func DefaultOptions ¶
func DefaultOptions() Options
func (Options) FromEnvironment ¶
func (Options) WithAddress ¶
func (Options) WithDialRetries ¶
func (Options) WithHealthCheckRetries ¶
Click to show internal directories.
Click to hide internal directories.