storage

package
v0.0.0-...-e31f9e3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2016 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionManager

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

CollectionManager is the m

type RecordCollectionManager

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

RecordCollectionManager is the manager for Record in mongo

func NewRecordCollectionManager

func NewRecordCollectionManager(s *mgo.Session) *RecordCollectionManager

NewRecordCollectionManager returns a new RecordCollectionManager object

func (*RecordCollectionManager) FindRecordByID

func (m *RecordCollectionManager) FindRecordByID(rID string) (*common.Record, error)

FindRecordByID finds a Record entity by ID.

func (*RecordCollectionManager) NewRecordDocument

func (m *RecordCollectionManager) NewRecordDocument(r *common.Record) (string, error)

NewRecordDocument generates a new Record document

type VendorCollectionManager

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

VendorCollectionManager is the manager for vendor in mongo

func NewVendorCollectionManager

func NewVendorCollectionManager(s *mgo.Session) *VendorCollectionManager

NewVendorCollectionManager returns a new VendorCollectionManager object

func (*VendorCollectionManager) AddNewRecord

func (m *VendorCollectionManager) AddNewRecord(vID string, rID string) error

AddNewRecord adds a new record (record ID) to a given service.

func (*VendorCollectionManager) AddNewRecords

func (m *VendorCollectionManager) AddNewRecords(vID string, rID []string) error

AddNewRecords adds new records (record ID) to a given service.

func (*VendorCollectionManager) FindVendorByHost

func (m *VendorCollectionManager) FindVendorByHost(host string) (*common.Vendor, error)

FindVendorByHost finds a vendor entity by host.

func (*VendorCollectionManager) FindVendorByID

func (m *VendorCollectionManager) FindVendorByID(vID string) (*common.Vendor, error)

FindVendorByID finds a vendor entity by ID.

func (*VendorCollectionManager) NewVendorDocument

func (m *VendorCollectionManager) NewVendorDocument(v *common.Vendor) (string, error)

NewVendorDocument generates a new vendor document

func (*VendorCollectionManager) UpdateVendorDocument

func (m *VendorCollectionManager) UpdateVendorDocument(vID string, vendor common.Vendor) error

UpdateVendorDocument updates a vendor entirely.

Jump to

Keyboard shortcuts

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