dbsdk

package
v0.0.0-...-bfefed7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 9 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 {
	Origin *url.URL
	Client *http.Client
}

Client standard SDK implementation

func New

func New(originString string) (*Client, error)

func (*Client) CreateTable

func (c *Client) CreateTable(name string) error

func (*Client) Index

func (c *Client) Index(tableName string)

func (*Client) Insert

func (c *Client) Insert(tableName string, document map[string]string) error

type SDK

type SDK interface {
	CreateTable(name string) error
	Insert(tableName string, document map[string]string) error
	Index(tableName string)
}

SDK minimal interface

Jump to

Keyboard shortcuts

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