database

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DOMAIN string = "46bf3452-28e7-482c-9bbf-df053873b021"

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoConnectionSettings

type MongoConnectionSettings struct {
	Host                   []string
	Db                     string
	AuthenticationDatabase string
	Username               string
	Password               string
	UseSSL                 bool
	Timeout                time.Duration
}

type ReposClient

type ReposClient struct{}

func (ReposClient) CreateSession

func (c ReposClient) CreateSession(authInfo MongoConnectionSettings) (*mgo.Session, error)

func (ReposClient) EnsureSimpleIndex

func (c ReposClient) EnsureSimpleIndex(collection *mgo.Collection, key string, name string, isUnique bool) error

func (ReposClient) InsertCard

func (c ReposClient) InsertCard(db *mgo.Database, collectionName string, cards map[string]models.GwentCard)

func (ReposClient) InsertGenericCollection

func (c ReposClient) InsertGenericCollection(db *mgo.Database, collectionName string, names map[string]struct{})

func (ReposClient) InsertVariation

func (c ReposClient) InsertVariation(db *mgo.Database, collectionName string, cards map[string]models.GwentCard)

Jump to

Keyboard shortcuts

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