persist

package
v0.0.0-...-3a1ef6a Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDataItem

type IDataItem interface {
	Print() string
}

type IPersistantStorage

type IPersistantStorage interface {

	// Get/Set the logging for the interface
	GetStorageHandler(name string) (IStorageHandler, bool)
	SetStorageHander(name string, store IStorageHandler)
	GetAllStorageHandlers() map[string]IStorageHandler
	RemoveStorageHandler(name string) bool

	// This function creates all the structures for all the handlers
	// this could be files, tables etc
	CreateStructures() IQueryResult
}

type IQuery

type IQuery interface {
	Error() error
}

type IQueryResult

type IQueryResult interface {
	QuerySucceeded() bool
	Error() error
}

type IStorageHandler

type IStorageHandler interface {

	// Make sure that the Peristant storage is available
	// Thsiw ill have access to files, database, logging etc
	GetPersistantStorage() IPersistantStorage
	SetPersistantStorage(persistant IPersistantStorage) //IStorageHandler

	// This function creates all the structures that are needed for storage
	// this could be files, tables etc
	CreateStructures() IQueryResult
}

Jump to

Keyboard shortcuts

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