Documentation ¶
Index ¶
- Constants
- func CheckSyntax(format model.ConfigFormat, content string) error
- func Create(c echo.Context, param view.ReqCreateConfig) (resp view.RespDetailConfig, err error)
- func Delete(c echo.Context, id uint) (err error)
- func Detail(param view.ReqDetailConfig) (resp view.RespDetailConfig, err error)
- func Diff(configID, historyID uint) (resp view.RespDiffConfig, err error)
- func GetAllConfigText() (list []db.Configuration, err error)
- func History(param view.ReqHistoryConfig, uid int) (resp view.RespHistoryConfig, err error)
- func Init(d *gorm.DB)
- func Instances(param view.ReqConfigInstanceList) (resp view.RespConfigInstanceList, err error)
- func List(param view.ReqListConfig) (resp view.RespListConfig, err error)
- func Publish(param view.ReqPublishConfig, c echo.Context) (err error)
- func ReadInstanceConfig(param view.ReqReadInstanceConfig) (configContentList []view.RespReadInstanceConfigItem, err error)
- func StatisticsCommit(start, end int64) (cmcCnt []view.CmcCnt, total int, err error)
- func StatisticsEnv() (res []view.EnvStatic, total int, err error)
- func TryLock(uid, configId uint) (err error)
- func Unlock(uid, configId uint) (err error)
- func Update(c echo.Context, param view.ReqUpdateConfig) (err error)
- type SyntaxError
Constants ¶
View Source
const (
ExpiredLockTime = 6
)
Variables ¶
This section is empty.
Functions ¶
func CheckSyntax ¶ added in v0.3.0
func CheckSyntax(format model.ConfigFormat, content string) error
func Create ¶
func Create(c echo.Context, param view.ReqCreateConfig) (resp view.RespDetailConfig, err error)
Create ..
func Detail ¶
func Detail(param view.ReqDetailConfig) (resp view.RespDetailConfig, err error)
func GetAllConfigText ¶ added in v0.3.0
func GetAllConfigText() (list []db.Configuration, err error)
func History ¶
func History(param view.ReqHistoryConfig, uid int) (resp view.RespHistoryConfig, err error)
History 发布历史分页列表,Page从0开始
func Instances ¶
func Instances(param view.ReqConfigInstanceList) (resp view.RespConfigInstanceList, err error)
Instances ..
func List ¶
func List(param view.ReqListConfig) (resp view.RespListConfig, err error)
func ReadInstanceConfig ¶ added in v0.3.0
func ReadInstanceConfig(param view.ReqReadInstanceConfig) (configContentList []view.RespReadInstanceConfigItem, err error)
func StatisticsCommit ¶ added in v0.3.0
func StatisticsEnv ¶ added in v0.3.0
Types ¶
type SyntaxError ¶ added in v0.3.0
func (SyntaxError) Error ¶ added in v0.3.0
func (s SyntaxError) Error() string
Click to show internal directories.
Click to hide internal directories.