dao

package
v0.0.0-...-6be4f36 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COLLECTION = "contact"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContactsDao

type ContactsDao struct {
	Server   string
	Database string
}

func (*ContactsDao) Connect

func (m *ContactsDao) Connect()

func (*ContactsDao) Delete

func (m *ContactsDao) Delete(contact Contact) error

func (*ContactsDao) FindAll

func (m *ContactsDao) FindAll() ([]Contact, error)

func (*ContactsDao) FindById

func (m *ContactsDao) FindById(id string) (Contact, error)

func (*ContactsDao) Insert

func (m *ContactsDao) Insert(contact Contact) error

func (*ContactsDao) Update

func (m *ContactsDao) Update(contact Contact) error

Jump to

Keyboard shortcuts

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