storageclient

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client to a grpc server

func NewClient

func NewClient(host, certFile string, keyFile string, caFiles []string) *Client

NewClient Client creates a new Client to communicate with a GRpc server

func (*Client) AddKeygroupTrigger

func (c *Client) AddKeygroupTrigger(kg string, id string, host string) error

AddKeygroupTrigger calls the same method on the remote server.

func (*Client) Append

func (c *Client) Append(kg string, val string, expiry int) (string, error)

Append calls the same method on the remote server

func (*Client) Close

func (c *Client) Close() error

Close closes the connection to the storage service.

func (*Client) CreateKeygroup

func (c *Client) CreateKeygroup(kg string) error

CreateKeygroup calls the same method on the remote server

func (*Client) Delete

func (c *Client) Delete(kg string, id string) error

Delete calls the same method on the remote server

func (*Client) DeleteKeygroup

func (c *Client) DeleteKeygroup(kg string) error

DeleteKeygroup calls the same method on the remote server

func (*Client) DeleteKeygroupTrigger

func (c *Client) DeleteKeygroupTrigger(kg string, id string) error

DeleteKeygroupTrigger calls the same method on the remote server.

func (*Client) Destroy

func (c *Client) Destroy()

Destroy destroys the connection

func (*Client) Exists

func (c *Client) Exists(kg string, id string) bool

Exists calls the same method on the remote server.

func (*Client) ExistsKeygroup

func (c *Client) ExistsKeygroup(kg string) bool

ExistsKeygroup calls the same method on the remote server.

func (*Client) GetKeygroupTrigger

func (c *Client) GetKeygroupTrigger(kg string) (map[string]string, error)

GetKeygroupTrigger calls the same method on the remote server.

func (*Client) IDs

func (c *Client) IDs(kg string) ([]string, error)

IDs calls the same method on the remote server

func (*Client) Read

func (c *Client) Read(kg string, id string) (string, error)

Read calls the same method on the remote server

func (*Client) ReadAll

func (c *Client) ReadAll(kg string) (map[string]string, error)

ReadAll calls the same method on the remote server

func (*Client) ReadSome

func (c *Client) ReadSome(kg string, id string, count uint64) (map[string]string, error)

Scan calls the same method on the remote server

func (*Client) Update

func (c *Client) Update(kg string, id string, val string, append bool, expiry int) error

Update calls the same method on the remote server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL