mongo

package
v0.2.4-0...-bb5b233 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 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 ByteStore

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

func NewByteStore

func NewByteStore() *ByteStore

func (*ByteStore) Add

func (m *ByteStore) Add(db string, file *os.File) (map[string]interface{}, error)

func (*ByteStore) Delete

func (m *ByteStore) Delete(db, filename string) error

func (*ByteStore) DropDatabase

func (m *ByteStore) DropDatabase(db string) error

func (*ByteStore) Read

func (m *ByteStore) Read(db, filename string, file io.Writer) error

func (*ByteStore) Start

func (m *ByteStore) Start(config string) error

func (*ByteStore) Update

func (m *ByteStore) Update(db, filename string, file *os.File) (map[string]interface{}, error)

type Config

type Config struct {
	Addresses     []string      `json:"addresses"`
	Timeout       time.Duration `json:"timeout"`
	AuthDatabase  string        `json:"authdb"`
	Username      string        `json:"username"`
	Password      string        `json:"password"`
	StoreDatabase string        `json:"storedb"`
}

Jump to

Keyboard shortcuts

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