Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindGlobalVariables ¶
func FindGlobalVariables(ctx echo.Context) error
@Description Find GlobalVariables @Accept x-www-form-urlencoded @Produce json @Tags /api/v1/global_variables @Router /api/v1/global_variables [get] @Param q query string false "query github.com/claion-org/claiflow/pkg/server/database/vanilla/stmt/README.md" @Param o query string false "order github.com/claion-org/claiflow/pkg/server/database/vanilla/stmt/README.md" @@Param p query string false "paging github.com/claion-org/claiflow/pkg/server/database/vanilla/stmt/README.md" @Success 200 {array} GlobalVariable
func GetGlobalVariable ¶
func GetGlobalVariable(ctx echo.Context) error
@Description Get a GlobalVariable @Accept json @Produce json @Tags /api/v1/global_variables @Router /api/v1/global_variables/{uuid} [get] @Param uuid path string true "GlobalVariable UUID" @Success 200 {object} GlobalVariable
func UpdateGlobalVariableValue ¶
func UpdateGlobalVariableValue(ctx echo.Context) error
@Description Update GlobalVariable Value @Accept json @Produce json @Tags /api/v1/global_variables @Router /api/v1/global_variables/{uuid} [put] @Param uuid path string true "GlobalVariable UUID" @Param enviroment body UpdateValue true "UpdateValue" @Success 200 {object} GlobalVariable
Types ¶
type GlobalVariable ¶
type GlobalVariable struct { Uuid string `json:"uuid"` Name string `json:"name"` Summary *string `json:"summary,omitempty"` // (optional) Value string `json:"value"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` }
func NewGlobalVariable ¶
func NewGlobalVariable(m model.GlobalVariable) GlobalVariable
type UpdateValue ¶
type UpdateValue struct {
Value *string `json:"value"` // (optional)
}