db

package
v0.0.0-...-de8420c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(database string, user string, password string, url string)

func Health

func Health() bool

Types

type DB

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

func NewDatabase

func NewDatabase() *DB

func (*DB) GetPartners

func (db *DB) GetPartners() (*proto.PartnerList, error)

type MockDB

type MockDB struct {
}

func NewMockDatabase

func NewMockDatabase() *MockDB

func (*MockDB) GetPartners

func (db *MockDB) GetPartners() (*proto.PartnerList, error)

Jump to

Keyboard shortcuts

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