client

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 14 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 is a simple client used for executing statements against PranaDB, it used by the CLI and elsewhere

func NewClient

func NewClient(serverAddress string) *Client

func (*Client) ExecuteStatement

func (c *Client) ExecuteStatement(statement string, args []*service.Arg) (chan string, error)

ExecuteStatement executes a Prana statement. Lines of output will be received on the channel that is returned. When the channel is closed, the results are complete

func (*Client) RegisterProtobufs

func (c *Client) RegisterProtobufs(ctx context.Context, in *service.RegisterProtobufsRequest, option ...grpc.CallOption) error

func (*Client) SetPageSize

func (c *Client) SetPageSize(pageSize int)

func (*Client) Start

func (c *Client) Start() error

func (*Client) Stop

func (c *Client) Stop() error

Jump to

Keyboard shortcuts

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