Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICreate ¶
type ICreate interface {
SetSchema(schema string) ICreate
GetSchema() string
SetValue(value map[string]interface{}) ICreate
GetValue() map[string]interface{}
ToJSON() ([]byte, error)
}
ICreate represents create command for koi client
type IDelete ¶
type IDelete interface {
SetSchema(schema string) IDelete
GetSchema() string
SetQuery(query map[string]interface{}) IDelete
GetQuery() map[string]interface{}
ToJSON() ([]byte, error)
}
IDelete represents delete command for koi client
type IKoiClient ¶
type IKoiClient interface {
SetAPIUrl(url string) IKoiClient
SetParams(param interface{}) IKoiClient
Exec() ([]byte, error)
}
IKoiClient represents available method for koi client
type IRead ¶
type IRead interface {
SetSchema(schema string) IRead
GetSchema() string
SetAs(resultAs string) IRead
GetAs() string
SetField(fields []string) IRead
GetField() []string
SetQuery(query map[string]interface{}) IRead
GetQuery() map[string]interface{}
SetLimit(limit int64) IRead
GetLimit() int64
SetOffset(offset int64) IRead
GetOffset() int64
SetOrderBy(orderBy []map[string]interface{}) IRead
GetOrderBy() []map[string]interface{}
ToJSON() ([]byte, error)
}
IRead represents read command for koi client
type IResult ¶
type IResult interface {
Status() string
Data() interface{}
DataAsList() []interface{}
}
IResult represents interface for result
type IUpdate ¶
type IUpdate interface {
SetSchema(schema string) IUpdate
GetSchema() string
SetQuery(query map[string]interface{}) IUpdate
GetQuery() map[string]interface{}
SetValue(value map[string]interface{}) IUpdate
GetValue() map[string]interface{}
ToJSON() ([]byte, error)
}
IUpdate represents update command for koi client
Click to show internal directories.
Click to hide internal directories.