collection

package
v0.0.0-...-f92f1a8 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	Name string `json:"name"`

	Documents Documents `json:"-"`
	// contains filtered or unexported fields
}

Collection represents a table of json data

func New

func New(path string, name string, s storage.Storer) (*Collection, error)

func (*Collection) Close

func (c *Collection) Close() error

func (*Collection) Query

func (c *Collection) Query(id string) (string, bool)

func (*Collection) Remove

func (c *Collection) Remove(id string)

func (*Collection) Update

func (c *Collection) Update(id string, document string)

type Documents

type Documents map[string]string

Jump to

Keyboard shortcuts

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