Documentation ¶
Index ¶
- func Authorize(key, secret, method, bucket, file string, expire int64) (authorization string)
- func ConcatCondition(conditions ...Condition) (conditionStr string, args []interface{}, hasOperator bool)
- func Upload(c context.Context, fileName, fileType string, expire int64, body io.Reader, ...) (location string, err error)
- type Condition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcatCondition ¶
func ConcatCondition(conditions ...Condition) (conditionStr string, args []interface{}, hasOperator bool)
ConcatCondition concat conditions
Types ¶
type Condition ¶
type Condition struct { Before string Key string Operator string Value interface{} After string // contains filtered or unexported fields }
Condition 生成的condition为 [before] [key] [operator] ? [after] 如
[(] [id] [=] ? [and] [ctime] [>] ? [)] [order by] [time] nil [] //如果value是nil,不会设置placeholder ?
func AndCondition ¶
AndCondition and condition
func OrCondition ¶
OrCondition or condition
Click to show internal directories.
Click to hide internal directories.