Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultMongoDBDatabase = "journal" DefaultMongoDBCollection = "collection" )
Defaults
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(o *Options)
Option : ...
func SetMongoDBClient ¶
SetMongoDBClient set mongodb connector
func SetMongoDBCollection ¶
SetMongoDBCollection set database & collection
type Options ¶
type Options struct { Name string // May not user Backend StorageBackend // contains filtered or unexported fields }
Options : Journal options
type StorageBackend ¶
type StorageBackend int8
StorageBackend : Enum of backend
const ( GORMBackend StorageBackend = 0 MongoDBBackend StorageBackend = 1 )
Backends
Click to show internal directories.
Click to hide internal directories.