Documentation
¶
Index ¶
- Constants
- func BotCreateBatch(ctx echo.Context) error
- func BotList(ctx echo.Context) error
- func BotRun(ctx echo.Context) error
- func ConfigGetInfo(ctx echo.Context) error
- func ConfigListInfo(ctx echo.Context) error
- func ConfigRemove(ctx echo.Context) error
- func ConfigUpload(ctx echo.Context) error
- func DebugCreate(ctx echo.Context) error
- func DebugStep(ctx echo.Context) error
- func FileBlobUpload(ctx echo.Context) error
- func FileGetBlob(ctx echo.Context) error
- func FileGetList(ctx echo.Context) error
- func FileRemove(ctx echo.Context) error
- func FileSetTags(ctx echo.Context) error
- func FileTextUpload(ctx echo.Context) error
- func GetReport(ctx echo.Context) error
- func ReqPrint() echo.MiddlewareFunc
- func Route(e *echo.Echo)
- type BehaviorListRes
- type BotBatchCreateRequest
- type BotBatchCreateResponse
- type BotListResponse
- type BotRunRequest
- type BotRunResponse
- type ConfigGetInfoResponse
- type ConfigGetListInfoRes
- type ConfigRemoveReq
- type CreateDebugBotResponse
- type Err
- type FileRemoveReq
- type FileRemoveRes
- type FindBehaviorReq
- type FindBehaviorRes
- type ReportRes
- type Response
- type SetBehaviorTagsReq
- type SetBehaviorTagsRes
- type SetConfigReq
- type StepRequest
- type StepResponse
Constants ¶
View Source
const ( Succ Err = 200 Fail Err = 1000 ErrContentRead = 1000 + iota ErrWrongInput ErrJsonUnmarshal ErrJsonInvalid ErrPluginLoad ErrEnd ErrBreak ErrCantFindBot ErrCreateBot ErrEmptyBatch ErrTagsFormat ErrRunningErr ErrUploadConfig ErrGetConfig )
Variables ¶
This section is empty.
Functions ¶
func BotCreateBatch ¶ added in v0.1.2
func BotCreateBatch(ctx echo.Context) error
func ConfigGetInfo ¶ added in v0.1.7
func ConfigGetInfo(ctx echo.Context) error
func ConfigListInfo ¶ added in v0.1.15
func ConfigListInfo(ctx echo.Context) error
func ConfigRemove ¶ added in v0.1.15
func ConfigRemove(ctx echo.Context) error
func ConfigUpload ¶ added in v0.1.7
func ConfigUpload(ctx echo.Context) error
func DebugCreate ¶
func DebugCreate(ctx echo.Context) error
func FileBlobUpload ¶
func FileBlobUpload(ctx echo.Context) error
func FileGetBlob ¶
func FileGetBlob(ctx echo.Context) error
func FileGetList ¶
func FileGetList(ctx echo.Context) error
func FileRemove ¶
func FileRemove(ctx echo.Context) error
func FileSetTags ¶ added in v0.0.12
func FileSetTags(ctx echo.Context) error
func FileTextUpload ¶
func FileTextUpload(ctx echo.Context) error
Types ¶
type BehaviorListRes ¶
type BehaviorListRes struct {
Bots []behaviorInfo
}
type BotBatchCreateRequest ¶ added in v0.1.2
bot.batch
type BotBatchCreateResponse ¶ added in v0.1.2
type BotBatchCreateResponse struct {
}
type BotRunResponse ¶ added in v0.1.2
type BotRunResponse struct {
}
type ConfigGetInfoResponse ¶ added in v0.1.7
type ConfigGetInfoResponse struct {
Lst []database.TemplateConfig
}
type ConfigGetListInfoRes ¶ added in v0.1.15
type ConfigGetListInfoRes struct {
Lst []string
}
type ConfigRemoveReq ¶ added in v0.1.15
type ConfigRemoveReq struct {
Name string
}
type CreateDebugBotResponse ¶ added in v0.0.12
debug.create
type FileRemoveRes ¶
type FileRemoveRes struct {
Bots []behaviorInfo
}
type FindBehaviorRes ¶
type FindBehaviorRes struct {
Info database.BehaviorInfo
}
type ReportRes ¶
type ReportRes struct {
Info []database.ReportInfo
}
type SetBehaviorTagsReq ¶ added in v0.0.12
file.setTags
type SetBehaviorTagsRes ¶ added in v0.0.12
type SetBehaviorTagsRes struct {
Bots []behaviorInfo
}
type SetConfigReq ¶ added in v0.1.15
type StepResponse ¶
Click to show internal directories.
Click to hide internal directories.