Documentation ¶
Index ¶
- Constants
- type AliyunDB
- func (a *AliyunDB) Close() (err error)
- func (a *AliyunDB) Delete(bucket, key string) (err error)
- func (a *AliyunDB) Exist(bucket, key string) bool
- func (a *AliyunDB) Get(bucket, key string) (data []byte, err error)
- func (a *AliyunDB) GetAllKey(bucket string) (keys []string, err error)
- func (a *AliyunDB) GetStream(bucket, key string) (data *os.File, err error)
- func (a *AliyunDB) Put(bucket, key string, value interface{}) (err error)
- func (a *AliyunDB) Type() string
- type BoltDB
- func (s *BoltDB) Close() (err error)
- func (s *BoltDB) Delete(bucket, key string) (err error)
- func (s *BoltDB) Exist(bucket, key string) bool
- func (s *BoltDB) Get(bucket, key string) (data []byte, err error)
- func (s *BoltDB) GetAllKey(bucket string) (keys []string, err error)
- func (s *BoltDB) GetStream(bucket, key string) (data *os.File, err error)
- func (s *BoltDB) Put(bucket, key string, value interface{}) (err error)
- func (s *BoltDB) Type() string
- type KeyValueDB
- type MongoDB
- func (m *MongoDB) Close() (err error)
- func (m *MongoDB) Delete(bucket, key string) (err error)
- func (m *MongoDB) Exist(bucket, key string) bool
- func (m *MongoDB) Get(bucket, key string) (data []byte, err error)
- func (m *MongoDB) GetAllKey(bucket string) (keys []string, err error)
- func (m *MongoDB) GetStream(bucket, key string) (data *os.File, err error)
- func (m *MongoDB) Put(bucket, key string, value interface{}) (err error)
- func (m *MongoDB) Type() string
- type S3DB
- func (s *S3DB) Close() (err error)
- func (s *S3DB) Delete(bucket, key string) (err error)
- func (s *S3DB) Exist(bucket, key string) bool
- func (s *S3DB) Get(bucket, key string) (data []byte, err error)
- func (s *S3DB) GetAllKey(bucket string) (keys []string, err error)
- func (s *S3DB) GetStream(bucket, key string) (data *os.File, err error)
- func (s *S3DB) Put(bucket, key string, value interface{}) (err error)
- func (s *S3DB) Type() string
Constants ¶
View Source
const ( K = "_id" V = "_value" MongoDBType = "MongoDB" )
View Source
const ( ForeverLandEndpoint = "https://endpoint.4everland.co" S3Type = "s3" )
View Source
const (
AliyunType = "aliyun"
)
refer https://help.aliyun.com/document_detail/32157.html?spm=a2c4g.11186623.0.0.1a4b32bcxaC4kR
View Source
const (
BoltType = "boltdb"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunDB ¶ added in v1.0.27
type AliyunDB struct {
// contains filtered or unexported fields
}
func NewAliyunDB ¶ added in v1.0.27
type KeyValueDB ¶
type KeyValueDB interface { Put(bucket, key string, value interface{}) (err error) Get(bucket, key string) (data []byte, err error) GetStream(bucket, key string) (data *os.File, err error) GetAllKey(bucket string) (keys []string, err error) Delete(bucket, key string) (err error) Close() (err error) Type() string Exist(bucket, key string) bool }
type MongoDB ¶ added in v1.1.3
type MongoDB struct {
// contains filtered or unexported fields
}
func NewMongoDB ¶ added in v1.1.3
NewMongoDB uri be like mongodb://user:password@localhost:27017
Click to show internal directories.
Click to hide internal directories.