mirror of
https://gitee.com/goploy/goploy.git
synced 2024-12-02 04:07:33 +08:00
21 lines
492 B
Go
21 lines
492 B
Go
package ws
|
|
|
|
// ProjectMessage is publish project message struct
|
|
type ServerTemplateMessage struct {
|
|
ServerID int64 `json:"serverId"`
|
|
ServerName string `json:"serverName"`
|
|
Detail string `json:"detail"`
|
|
Ext interface{} `json:"ext"`
|
|
Type uint8 `json:"type"`
|
|
}
|
|
|
|
const (
|
|
ServerTemplateRsync = 1
|
|
ServerTemplateSSH = 2
|
|
ServerTemplateScript = 3
|
|
)
|
|
|
|
func (serverTemplateMessage ServerTemplateMessage) canSendTo(client *Client) error {
|
|
return nil
|
|
}
|