Documentation ¶
Index ¶
- Constants
- func InitCustomMysqlDatabase(registerName, prefix string)
- func InitCustomOracleDatabase(registerName, hostname string, hostport int, servOsid, dbname, password string)
- func InitCustomPostgresDatabase(registerName, prefix string)
- func InitElasticDatabase()
- func InitMYSQLDatabase()
- func InitOracleDatabase()
- func InitPostgresDatabase()
- func InitRedisDatabase(observers ...RedisKeyspaceExpiredObserver)
- type DataSource
- type EQueryRequest
- func (query *EQueryRequest) Append() error
- func (query *EQueryRequest) Delete() error
- func (query *EQueryRequest) DeleteByQuery() error
- func (query *EQueryRequest) Get() (*EQueryResponse, error)
- func (query *EQueryRequest) Init(indexName string, documentID string, deleteQuery bool)
- func (query *EQueryRequest) InitIndex(indexName string)
- func (query *EQueryRequest) Search() (*EQueryResponse, error)
- func (query *EQueryRequest) Update() error
- type EQueryResponse
- type EQuerySearch
- type GormDataSource
- type RedisKeeper
- type RedisKeyspaceExpiredObserver
Constants ¶
View Source
const (
DATABASE_MYSQL = "zero.database.mysql"
)
View Source
const (
DATABASE_ORACLE = "zero.database.oracle"
)
View Source
const (
DATABASE_POSTGRES = "zero.database.postgres"
)
View Source
const (
DATABASE_REDIS = "zero.database.redis"
)
Variables ¶
This section is empty.
Functions ¶
func InitCustomMysqlDatabase ¶ added in v1.14.14
func InitCustomMysqlDatabase(registerName, prefix string)
func InitCustomOracleDatabase ¶ added in v1.14.2
func InitCustomPostgresDatabase ¶ added in v1.14.14
func InitCustomPostgresDatabase(registerName, prefix string)
func InitElasticDatabase ¶
func InitElasticDatabase()
func InitMYSQLDatabase ¶
func InitMYSQLDatabase()
func InitOracleDatabase ¶ added in v1.14.0
func InitOracleDatabase()
func InitPostgresDatabase ¶
func InitPostgresDatabase()
func InitRedisDatabase ¶
func InitRedisDatabase(observers ...RedisKeyspaceExpiredObserver)
Types ¶
type DataSource ¶ added in v1.2.0
type EQueryRequest ¶
type EQueryRequest struct { Query interface{} `json:"query,omitempty"` // contains filtered or unexported fields }
func (*EQueryRequest) Append ¶
func (query *EQueryRequest) Append() error
func (*EQueryRequest) Delete ¶
func (query *EQueryRequest) Delete() error
func (*EQueryRequest) DeleteByQuery ¶
func (query *EQueryRequest) DeleteByQuery() error
func (*EQueryRequest) Get ¶
func (query *EQueryRequest) Get() (*EQueryResponse, error)
func (*EQueryRequest) Init ¶
func (query *EQueryRequest) Init(indexName string, documentID string, deleteQuery bool)
func (*EQueryRequest) InitIndex ¶
func (query *EQueryRequest) InitIndex(indexName string)
func (*EQueryRequest) Search ¶
func (query *EQueryRequest) Search() (*EQueryResponse, error)
func (*EQueryRequest) Update ¶
func (query *EQueryRequest) Update() error
type EQueryResponse ¶
func (*EQueryResponse) ParserData ¶
func (qresp *EQueryResponse) ParserData(resp *http.Response) error
func (*EQueryResponse) ParserError ¶
func (qresp *EQueryResponse) ParserError(resp *http.Response) error
type EQuerySearch ¶
type GormDataSource ¶ added in v1.14.0
type GormDataSource struct {
// contains filtered or unexported fields
}
func (*GormDataSource) Connect ¶ added in v1.14.0
func (cp *GormDataSource) Connect() *sql.DB
func (*GormDataSource) Transaction ¶ added in v1.14.0
func (cp *GormDataSource) Transaction() *sql.Tx
type RedisKeeper ¶ added in v1.12.0
type RedisKeyspaceExpiredObserver ¶ added in v1.12.1
type RedisKeyspaceExpiredObserver interface {
OnMessage(*redis.Message) error
}
Click to show internal directories.
Click to hide internal directories.