Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToApplicationModel ¶
func ToApplicationModel(application *Application) (*specV1.Application, error)
func ToBatchModel ¶
func ToCallbackModel ¶
Types ¶
type Application ¶
type Application struct {
Id uint64 `db:"id"`
Namespace string `db:"namespace"`
Name string `db:"name"`
Version string `db:"version"`
IsDeleted int `db:"is_deleted"`
CreateTime time.Time `db:"create_time"`
UpdateTime time.Time `db:"update_time"`
Content string `db:"content"`
}
func FromApplicationModel ¶
func FromApplicationModel(application *specV1.Application) (*Application, error)
type Batch ¶
type Batch struct {
Name string `db:"name"`
Namespace string `db:"namespace"`
Description string `db:"description"`
QuotaNum int `db:"quota_num"`
EnableWhitelist int `db:"enable_whitelist"`
SecurityType common.Security `db:"security_type"`
SecurityKey string `db:"security_key"`
CallbackName string `db:"callback_name"`
CreateTime time.Time `db:"create_time"`
UpdateTime time.Time `db:"update_time"`
Labels string `db:"labels"`
Fingerprint string `db:"fingerprint"`
}
func FromBatchModel ¶
type Callback ¶
type Callback struct {
Name string `db:"name"`
Namespace string `db:"namespace"`
Method string `db:"method"`
Url string `db:"url"`
Params string `db:"params"`
Header string `db:"header"`
Body string `db:"body"`
Description string `db:"description"`
CreateTime time.Time `db:"create_time"`
UpdateTime time.Time `db:"update_time"`
}
func FromCallbackModel ¶
Click to show internal directories.
Click to hide internal directories.