filedata

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: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULTFILENAME = "ClientDataFile"

DEFAULTFILENAME is the name the data object will use for storing the data if one is not provided.

Functions

func NewFileData

func NewFileData(fileName string) *fileData

NewFileData creates a new file data object loading the existing file or making a new one if one does not exist.

func NewMemData

func NewMemData() *fileData

Types

type ClientRecord

type ClientRecord struct {
	*sync.RWMutex
	//    (table name)(row number)(column name)
	Tables map[string][]map[string]string
}

ClientRecord represents all the data associated with a single client.

type Factory

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

Factory is a factory for creating ClientData objects using fileData.

func NewFactory

func NewFactory(fileName string) *Factory

NewFactory returns a Factory that will make client data objects using the filedata as its source.

func NewMemDataFactory

func NewMemDataFactory() *Factory

func (*Factory) Create

func (cdf *Factory) Create(name string) clientdata.ClientData

Create makes a new ClientData object using the factories filedata as its source.

Jump to

Keyboard shortcuts

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