server

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 BotList

func BotList(ctx echo.Context) error

func BotRun

func BotRun(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 DebugStep

func DebugStep(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

func GetReport

func GetReport(ctx echo.Context) error

func ReqPrint

func ReqPrint() echo.MiddlewareFunc

func Route

func Route(e *echo.Echo)

Types

type BehaviorListRes

type BehaviorListRes struct {
	Bots []behaviorInfo
}

type BotBatchCreateRequest added in v0.1.2

type BotBatchCreateRequest struct {
	Name string
	Num  int
}

bot.batch

type BotBatchCreateResponse added in v0.1.2

type BotBatchCreateResponse struct {
}

type BotListResponse

type BotListResponse struct {
	Lst []factory.BatchInfo
}

bot.list

type BotRunRequest added in v0.1.2

type BotRunRequest struct {
	Name string
}

bot.run

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

type CreateDebugBotResponse struct {
	BotID      string
	Blackboard string
	ThreadInfo string
}

debug.create

type Err

type Err int32

type FileRemoveReq

type FileRemoveReq struct {
	Name string
}

file.remove

type FileRemoveRes

type FileRemoveRes struct {
	Bots []behaviorInfo
}

type FindBehaviorReq

type FindBehaviorReq struct {
	Name string
}

file.get

type FindBehaviorRes

type FindBehaviorRes struct {
	Info database.BehaviorInfo
}

type ReportRes

type ReportRes struct {
	Info []database.ReportInfo
}

type Response

type Response struct {
	Code int
	Msg  string
	Body interface{}
}

type SetBehaviorTagsReq added in v0.0.12

type SetBehaviorTagsReq struct {
	Name    string
	NewTags []string
}

file.setTags

type SetBehaviorTagsRes added in v0.0.12

type SetBehaviorTagsRes struct {
	Bots []behaviorInfo
}

type SetConfigReq added in v0.1.15

type SetConfigReq struct {
	Name string `json:"name"`
	Dat  string `json:"dat"`
}

type StepRequest

type StepRequest struct {
	BotID string
}

debug.step

type StepResponse

type StepResponse struct {
	Blackboard string
	ThreadInfo string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL