Documentation ¶
Index ¶
- func NewMongoDb(name string) interfaces.MongoDb
- func NewRedis(name int) interfaces.RedisDb
- func NewSQLDb(name string) interfaces.SQLDb
- func NewSeaweedFS(prePath string) interfaces.SeaweedFS
- type MongoDb
- type MongoTb
- func (my *MongoTb) Delete(condi interface{}) error
- func (my *MongoTb) FindALL(result interface{}, condi interface{}) error
- func (my *MongoTb) FindOne(result interface{}, condi interface{}) error
- func (my *MongoTb) Insert(data interface{}) error
- func (my *MongoTb) Update(replacement, condi interface{}) error
- func (my *MongoTb) Upsert(replacement, condi interface{}) error
- type RedisDb
- type SQLDb
- type SQLTb
- type SeaweedFS
- func (my *SeaweedFS) Delete(path string) error
- func (my *SeaweedFS) Download(path string) ([]byte, error)
- func (my *SeaweedFS) Info(path string) (interfaces.SeaweedFile, error)
- func (my *SeaweedFS) List(dirpath ...string) ([]interfaces.SeaweedFile, error)
- func (my *SeaweedFS) Upload(path string, content []byte) error
- type SeaweedFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMongoDb ¶
func NewMongoDb(name string) interfaces.MongoDb
func NewRedis ¶
func NewRedis(name int) interfaces.RedisDb
func NewSQLDb ¶
func NewSQLDb(name string) interfaces.SQLDb
func NewSeaweedFS ¶
func NewSeaweedFS(prePath string) interfaces.SeaweedFS
Types ¶
type MongoDb ¶
type MongoDb struct { interfaces.MongoDb // contains filtered or unexported fields }
type MongoTb ¶
type MongoTb struct { interfaces.MongoTb // contains filtered or unexported fields }
type RedisDb ¶
type RedisDb struct { interfaces.RedisDb // contains filtered or unexported fields }
type SQLDb ¶
type SQLDb struct { interfaces.SQLDb // contains filtered or unexported fields }
type SQLTb ¶
type SQLTb struct { interfaces.SQLTb // contains filtered or unexported fields }
type SeaweedFS ¶
type SeaweedFS struct { interfaces.SeaweedFS // contains filtered or unexported fields }
func (*SeaweedFS) Info ¶
func (my *SeaweedFS) Info(path string) (interfaces.SeaweedFile, error)
func (*SeaweedFS) List ¶
func (my *SeaweedFS) List(dirpath ...string) ([]interfaces.SeaweedFile, error)
type SeaweedFile ¶
type SeaweedFile struct {
// contains filtered or unexported fields
}
func (*SeaweedFile) IsDir ¶
func (my *SeaweedFile) IsDir() bool
func (*SeaweedFile) Name ¶
func (my *SeaweedFile) Name() string
func (*SeaweedFile) Path ¶
func (my *SeaweedFile) Path() string
Click to show internal directories.
Click to hide internal directories.