Documentation ¶
Index ¶
- Constants
- func CloseDatabase()
- func CloseTcpServer()
- func Delete(mode string, id string) error
- func Pickle(data interface{}) (blob []byte, err error)
- func Read(mode string, id string, skeleton interface{}) error
- func StartTcpServer()
- func Unpickle(data []byte, skeleton interface{}) error
- func Write(mode string, id string, data interface{}) error
Constants ¶
View Source
const ( // RwVanillaFile is read/write to use simple one file per pickle. RwVanillaFile = "vanilla-file" // RwFile is alias to RwVanillaFile. RwFile = "file" // RwDb is read/write mode to use a DB for pickle persistence (database type gets managed by config.RwDbDriver). RwDb = "database" // RwRpc is read/write mode to use a TCP ficklepickle server for pickle persistence (database type gets managed by config.RwDbDriver). RwRpc = "rpc" )
Variables ¶
This section is empty.
Functions ¶
func CloseTcpServer ¶
func CloseTcpServer()
CloseTcpServer forwards close of tcp server to ficklerpc.
func Delete ¶
Delete returns error state for removing pickle of provided provided 'id' using 'mode'.
func Read ¶
Read returns error state for restoring pickle of provided 'id' using 'mode'; updates provided reference to 'skeleton' interface Go type.
func StartTcpServer ¶
func StartTcpServer()
StartTcpServer forwards start of tcp server to ficklerpc.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.