session

package
v4.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package session This file is the hub of the `session` package. The `Client` struct defined here manages the database connection has the responsibility of interpreting user inputs.

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 represents an agent that manages a database connection and parses/executes the statements specified by a user in a command-line buffer.

func NewLocalClient

func NewLocalClient(dir string) (c *Client, err error)

NewLocalClient builds a new client struct in local mode.

func NewRemoteClient

func NewRemoteClient(url string) (c *Client, err error)

NewRemoteClient generates a new client struct.

func (*Client) Connect

func (c *Client) Connect() error

Connect initializes a client connection.

func (*Client) GetBucketInfo

func (c *Client) GetBucketInfo(key io.TimeBucketKey) (resp *frontend.GetInfoResponse, err error)

func (*Client) Read

func (c *Client) Read() error

Read kicks off the buffer reading process.

Jump to

Keyboard shortcuts

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