Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StorageEngines = map[string]StorageInstanciation{}
StorageEngines lists all Storage implementations declared, with a way to instanciate automatically each.
Functions ¶
Types ¶
type ProviderAndDomainStorage ¶ added in v0.4.1
type ProviderAndDomainStorage interface {
provider.ProviderStorage
domain.DomainStorage
}
type Storage ¶
type Storage interface {
authuser.AuthUserStorage
domain.DomainStorage
domainlog.DomainLogStorage
insight.InsightStorage
provider.ProviderStorage
session.SessionStorage
user.UserStorage
zone.ZoneStorage
// SchemaVersion returns the version of the migration currently in use.
SchemaVersion() int
// DoMigration is the first function called.
MigrateSchema() error
// Close shutdown the connection with the database and releases all structure.
Close() error
}
type StorageEngine ¶
type StorageEngine string
StorageEngine defines an interface that handle configuration throught custom flag.
func (*StorageEngine) Set ¶
func (i *StorageEngine) Set(value string) (err error)
func (*StorageEngine) String ¶
func (i *StorageEngine) String() string
Source Files
¶
- interface.go
- singleton.go
Click to show internal directories.
Click to hide internal directories.