Documentation ¶
Index ¶
- func Read(c net.Conn, sc ...int) (v any, err error)
- func ReadL(c net.Conn, ls ...log.L) (v any, ne bool)
- func ReadRaw(c net.Conn, sc ...int) (byte, []byte, error)
- func Write(c net.Conn, msg any, sc ...int) error
- func WriteL(c net.Conn, msg any, ls ...log.L) bool
- type Close
- type CloseTaskReq
- type CloseTaskResp
- type ConnectTaskReq
- type ConnectTaskResp
- type CreateTaskReq
- type CreateTaskResp
- type Data
- type Error
- type LoginReq
- type LoginResp
- type OK
- type StopService
- type StopServiceReq
- type StopServiceResp
- type Task
- type UninstallService
- type UninstallServiceReq
- type UninstallServiceResp
- type WorkReq
- type WorkResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloseTaskReq ¶
type CloseTaskReq struct {
Tid string `json:"tid,omitempty"`
}
type CloseTaskResp ¶
type CloseTaskResp struct { }
type ConnectTaskReq ¶
type ConnectTaskResp ¶
type CreateTaskReq ¶
type CreateTaskResp ¶
type StopService ¶ added in v1.3.0
type StopService struct {
Cid uint
}
type StopServiceReq ¶ added in v1.3.0
type StopServiceReq struct { }
type StopServiceResp ¶ added in v1.3.0
type StopServiceResp struct {
Error
}
type Task ¶
type Task struct { Id uint `json:"id,omitempty"` Name string `json:"name,omitempty"` Addr string `json:"addr,omitempty"` Secret string `json:"secret,omitempty"` Compress bool `json:"compress,omitempty"` }
func NewTaskSecret ¶
type UninstallService ¶ added in v1.3.0
type UninstallService struct {
Cid uint
}
type UninstallServiceReq ¶ added in v1.3.0
type UninstallServiceReq struct { }
type UninstallServiceResp ¶ added in v1.3.0
type UninstallServiceResp struct {
Error
}
Click to show internal directories.
Click to hide internal directories.