Documentation
¶
Index ¶
- type Cookie
- type CookieListRequest
- type CookieListResponse
- type DeleteCookieRequest
- type DeleteCookieResponse
- type DeleteRequest
- type DeleteResponse
- type DeleteValueRequest
- type DeleteValueResponse
- type GetRequest
- type GetResponse
- type InstallRequest
- type InstallResponse
- type ListRequest
- type ListResponse
- type RunRequest
- type RunResponse
- type Script
- type SetCookieRequest
- type SetCookieResponse
- type SetValueRequest
- type SetValueResponse
- type StopRequest
- type StopResponse
- type Storage
- type StorageListRequest
- type StorageListResponse
- type UpdateRequest
- type UpdateResponse
- type Value
- type ValueListRequest
- type ValueListResponse
- type WatchRequest
- type WatchResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cookie ¶
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 DeleteValueRequest ¶
type DeleteValueRequest struct { mux.Meta `path:"/values/:storageName/:key" method:"DELETE"` StorageName string `uri:"storageName"` Key string `uri:"key"` }
DeleteValueRequest 删除脚本值
type GetRequest ¶
type GetRequest struct { mux.Meta `path:"/scripts/:scriptId" method:"GET"` ScriptID string `uri:"scriptId"` }
GetRequest 获取脚本
type InstallRequest ¶
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 RunRequest ¶
type RunRequest struct { mux.Meta `path:"/scripts/:scriptId/run" method:"POST"` ScriptID string `uri:"scriptId"` }
RunRequest 运行脚本
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 SetValueRequest ¶
type SetValueRequest struct { mux.Meta `path:"/values/:storageName" method:"POST"` StorageName string `uri:"storageName"` Values []*Value `form:"values"` }
SetValueRequest 设置脚本值
type StopRequest ¶
type StopRequest struct { mux.Meta `path:"/scripts/:scriptId/stop" method:"POST"` ScriptID string `uri:"scriptId"` }
StopRequest 停止脚本
type StorageListRequest ¶
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 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 监听脚本
Click to show internal directories.
Click to hide internal directories.