datafactory

package
v0.0.0-...-4f83aec Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2016 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(kind, databaseLogin, databasePassword, databaseName, databaseIP, databasePort string, disableNewAccounts bool) (clientdata.Factory, error)

NewFactory returns a factory to make client data objects of the type kind and using the database. Currently supports "postgres" as a kind, using a Postgres database.

Types

type DataFactory

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

func NewDataFactory

func NewDataFactory(data clientdata.DataStore, disableNewAccounts bool) *DataFactory

func (*DataFactory) Create

func (df *DataFactory) Create(name string) clientdata.ClientData

Jump to

Keyboard shortcuts

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