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 ¶
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.
Click to show internal directories.
Click to hide internal directories.