clients

package
v0.0.0-...-fc27e31 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBoltClient

func NewBoltClient(path string) (types.Client, error)

func NewHTTPClient

func NewHTTPClient(endpoint string) (types.Client, error)

Types

type BoltClient

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

BoltClient implements the types.Client interface with a BoltDB backend. BoltClient is the primary database backend for Fit. It can also be used directly from the command line.

func (*BoltClient) Close

func (c *BoltClient) Close()

func (*BoltClient) Datasets

func (c *BoltClient) Datasets() (datasets []*types.Dataset, err error)

func (*BoltClient) Delete

func (c *BoltClient) Delete(name string) error

func (*BoltClient) Query

func (c *BoltClient) Query(query *types.Query) (*types.Dataset, error)

Query finds all of the datasets contained in Queries and returns a combined dataset for each column in the search. The values from each dataset are stored entirely in memory until the query is complete. This means that the total size of all datasets queried cannot exceed the total system memory. The resulting dataset columns will be ordered in the same order they were queried for.

func (*BoltClient) Write

func (c *BoltClient) Write(ds *types.Dataset) (err error)

type HTTPClient

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

HTTPClient implements the types.Client interface over HTTP

func (*HTTPClient) Datasets

func (c *HTTPClient) Datasets() (datasets []*types.Dataset, err error)

func (*HTTPClient) Delete

func (c *HTTPClient) Delete(name string) (err error)

func (*HTTPClient) Query

func (c *HTTPClient) Query(query *types.Query) (ds *types.Dataset, err error)

func (*HTTPClient) Write

func (c *HTTPClient) Write(ds *types.Dataset) (err error)

Jump to

Keyboard shortcuts

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