openapi

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 16 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

func BotCreateBatch(ctx echo.Context) error

func BotList

func BotList(ctx echo.Context) error

func BotRun

func BotRun(ctx echo.Context) error

func ConfigGetGlobalInfo

func ConfigGetGlobalInfo(ctx echo.Context) error

func ConfigGetSysInfo

func ConfigGetSysInfo(ctx echo.Context) error

func ConfigSetGlobalInfo

func ConfigSetGlobalInfo(ctx echo.Context) error

func ConfigSetSysInfo

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

func FileSetTags(ctx echo.Context) error

func FileTextUpload

func FileTextUpload(ctx echo.Context) error

func GetReport

func GetReport(ctx echo.Context) error

func PrefabGetInfo

func PrefabGetInfo(ctx echo.Context) error

func PrefabList

func PrefabList(ctx echo.Context) error

func PrefabRmv

func PrefabRmv(ctx echo.Context) error

func PrefabSetTags

func PrefabSetTags(ctx echo.Context) error

func PrefabUpload

func PrefabUpload(ctx echo.Context) error

func ReqPrint

func ReqPrint() echo.MiddlewareFunc

func Route

func Route(e *echo.Echo)

func Start

func Start(port int) *echo.Echo

Types

type BotBatchCreateRequest

type BotBatchCreateRequest struct {
	Name string
	Num  int
}

bot.batch

type BotBatchCreateResponse

type BotBatchCreateResponse struct {
}

type BotListResponse

type BotListResponse struct {
	Lst []factory.BatchInfo
}

bot.list

type BotRunRequest

type BotRunRequest struct {
	Name string
}

bot.run

type BotRunResponse

type BotRunResponse struct {
}

type ConfigGetSysInfoRes

type ConfigGetSysInfoRes struct {
	ReportSize   int
	ChannelSize  int
	EnqueneDelay int
}

config.sys.info

type ConfigRemoveReq

type ConfigRemoveReq struct {
	Name string
}

type ConfigSetSysInfoReq

type ConfigSetSysInfoReq struct {
	ReportSize   int
	ChannelSize  int
	EnqueneDelay int
}

config.sys.set

type ConfigSetSysInfoRes

type ConfigSetSysInfoRes struct {
	ReportSize   int
	ChannelSize  int
	EnqueneDelay int
}

type CreateDebugBotResponse

type CreateDebugBotResponse struct {
	BotID      string
	Blackboard string
	ThreadInfo string
}

debug.create

type Err

type Err int32

type FileListRes

type FileListRes struct {
	Bots []behaviorInfo
}

file.list

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 PrefabListReq

type PrefabListReq struct {
}

prefab.list

type PrefabListRes

type PrefabListRes struct {
	Lst []prefabInfo
}

type PrefabRmvReq

type PrefabRmvReq struct {
	Name string `json:"name"`
}

prefab.rmv

type PrefabSetTagsReq

type PrefabSetTagsReq struct {
	Name string   `json:"name"`
	Tags []string `json:"tags"`
}

prefab.setTags

type ReportRes

type ReportRes struct {
	Info []database.ReportTable
}

type SetBehaviorTagsReq

type SetBehaviorTagsReq struct {
	Name    string
	NewTags []string
}

file.setTags

type SetBehaviorTagsRes

type SetBehaviorTagsRes struct {
	Bots []behaviorInfo
}

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