Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeserializeBytes ¶
DeserializeBytes converts the bytes to an object using gob decoder
func SerializeBytes ¶
SerializeBytes serializa bytes using gob encoder and returns them
Types ¶
type Config ¶
type Config struct { // Path to leveldb database Path string // Options LevelDB open database options Options *Options // ReadOptions LevelDB read database options ReadOptions *ReadOptions // WriteOptions LevelDB write database options WriteOptions *WriteOptions // CleanTimeout Waiting between starting database cleaning and compression. Default one hour CleanTimeout time.Duration // MaxAge how much long the LevelDB should keep the session. Default 1 year MaxAge time.Duration }
Config the leveldb configuration used inside sessions
Click to show internal directories.
Click to hide internal directories.