Documentation
¶
Index ¶
Constants ¶
View Source
const Lens scene.InfraName = "datasource"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSource ¶
type JsonDataSource ¶
type JsonDataSource interface {
DataSource
Load() ([]byte, error)
Save(data []byte) error
}
type MongoDataSource ¶
type MongoDataSource interface {
DataSource
Database() *mongo.Database
Collection(coll string) *mongo.Collection
}
type MysqlDataSource ¶
type MysqlDataSource interface {
SqlDataSource
}
type RedisDataSource ¶
type SqlDataSource ¶
type SqlDataSource interface {
DataSource
Connection() *sql.DB
}
type SqliteDataSource ¶
type SqliteDataSource interface {
SqlDataSource
}
Click to show internal directories.
Click to hide internal directories.