scripts

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cookie struct {
	StorageName string                      `json:"storage_name"`
	Host        string                      `json:"host"`
	Cookies     []*cookie_entity.HttpCookie `json:"cookies"`
	Createtime  int64                       `json:"createtime"`
}

type CookieListRequest

type CookieListRequest struct {
	mux.Meta    `path:"/cookies/:storageName" method:"GET"`
	StorageName string `uri:"storageName"`
}

CookieListRequest 脚本cookie列表

type CookieListResponse

type CookieListResponse struct {
	List []*Cookie `json:"list"`
}

CookieListResponse 脚本cookie列表

type DeleteCookieRequest

type DeleteCookieRequest struct {
	mux.Meta    `path:"/cookies/:storageName" method:"DELETE"`
	StorageName string `uri:"storageName"`
	Host        string `form:"host"`
}

DeleteCookieRequest 删除cookie

type DeleteCookieResponse

type DeleteCookieResponse struct {
}

type DeleteRequest

type DeleteRequest struct {
	mux.Meta `path:"/scripts/:scriptId" method:"DELETE"`
	ScriptID string `uri:"scriptId"`
}

DeleteRequest 删除脚本

type DeleteResponse

type DeleteResponse struct {
}

DeleteResponse 删除脚本

type DeleteValueRequest

type DeleteValueRequest struct {
	mux.Meta    `path:"/values/:storageName/:key" method:"DELETE"`
	StorageName string `uri:"storageName"`
	Key         string `uri:"key"`
}

DeleteValueRequest 删除脚本值

type DeleteValueResponse

type DeleteValueResponse struct {
}

DeleteValueResponse 删除脚本值

type GetRequest

type GetRequest struct {
	mux.Meta `path:"/scripts/:scriptId" method:"GET"`
	ScriptID string `uri:"scriptId"`
}

GetRequest 获取脚本

type GetResponse

type GetResponse struct {
	Script *Script `json:"script"`
}

GetResponse 获取脚本

type InstallRequest

type InstallRequest struct {
	mux.Meta `path:"/scripts" method:"POST"`
	Code     string `form:"code"`
}

InstallRequest 创建脚本

type InstallResponse

type InstallResponse struct {
	Scripts []*Script `json:"scripts"`
}

InstallResponse 创建脚本

type ListRequest

type ListRequest struct {
	mux.Meta `path:"/scripts" method:"GET"`
	ScriptID string `form:"scriptId"`
}

ListRequest 脚本列表

type ListResponse

type ListResponse struct {
	List []*Script `json:"list"`
}

ListResponse 脚本列表

type RunRequest

type RunRequest struct {
	mux.Meta `path:"/scripts/:scriptId/run" method:"POST"`
	ScriptID string `uri:"scriptId"`
}

RunRequest 运行脚本

type RunResponse

type RunResponse struct {
}

RunResponse 运行脚本

type Script

type Script struct {
	ID           string                    `json:"id" yaml:"id,omitempty"`
	Name         string                    `json:"name" yaml:"name"`
	Code         string                    `json:"code,omitempty" yaml:"code,omitempty"`
	Metadata     script_entity.Metadata    `json:"metadata" yaml:"metadata"`
	SelfMetadata script_entity.Metadata    `json:"self_metadata" yaml:"selfMetadata"`
	Status       script_entity.Status      `json:"status" yaml:"status"`
	State        script_entity.ScriptState `json:"state" yaml:"state"`
	Createtime   int64                     `json:"createtime" yaml:"createtime"`
	Updatetime   int64                     `json:"updatetime" yaml:"updatetime"`
}

func (*Script) Entity

func (s *Script) Entity() *script_entity.Script

type SetCookieRequest

type SetCookieRequest struct {
	mux.Meta    `path:"/cookies/:storageName" method:"POST"`
	StorageName string                      `uri:"storageName"`
	Cookies     []*cookie_entity.HttpCookie `form:"cookies"`
}

SetCookieRequest 设置cookie

type SetCookieResponse

type SetCookieResponse struct {
}

SetCookieResponse 设置cookie

type SetValueRequest

type SetValueRequest struct {
	mux.Meta    `path:"/values/:storageName" method:"POST"`
	StorageName string   `uri:"storageName"`
	Values      []*Value `form:"values"`
}

SetValueRequest 设置脚本值

type SetValueResponse

type SetValueResponse struct {
}

SetValueResponse 设置脚本值

type StopRequest

type StopRequest struct {
	mux.Meta `path:"/scripts/:scriptId/stop" method:"POST"`
	ScriptID string `uri:"scriptId"`
}

StopRequest 停止脚本

type StopResponse

type StopResponse struct {
}

StopResponse 停止脚本

type Storage

type Storage struct {
	Name         string   `json:"name"`
	LinkScriptID []string `json:"link_script_id"`
}

type StorageListRequest

type StorageListRequest struct {
	mux.Meta `path:"/storages" method:"GET"`
}

StorageListRequest 值储存空间列表

type StorageListResponse

type StorageListResponse struct {
	List []*Storage `json:"list"`
}

StorageListResponse 值储存空间列表

type UpdateRequest

type UpdateRequest struct {
	mux.Meta `path:"/scripts/:scriptId" method:"PUT"`
	ScriptID string  `uri:"scriptId"`
	Script   *Script `form:"script"`
}

UpdateRequest 更新脚本

type UpdateResponse

type UpdateResponse struct {
}

UpdateResponse 更新脚本

type Value

type Value struct {
	StorageName string                   `json:"storage_name"`
	Key         string                   `json:"key"`
	Value       value_entity.ValueString `json:"value"`
	Createtime  int64                    `json:"createtime"`
}

type ValueListRequest

type ValueListRequest struct {
	mux.Meta    `path:"/values/:storageName" method:"GET"`
	StorageName string `uri:"storageName"`
}

ValueListRequest 脚本值列表

type ValueListResponse

type ValueListResponse struct {
	List []*Value `json:"list"`
}

ValueListResponse 脚本值列表

type WatchRequest

type WatchRequest struct {
	mux.Meta `path:"/scripts/:scriptId/watch" method:"GET"`
	ScriptID string `uri:"scriptId"`
}

WatchRequest 监听脚本

type WatchResponse

type WatchResponse struct {
}

WatchResponse 监听脚本

Jump to

Keyboard shortcuts

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