proxy/internal/msg/msg.go

15 lines
391 B
Go

package msg
type ZmqMsg struct {
MethodID int `json:"methodId"` //0(add), 1(delete)
ID string `json:"id"` // user-miner
Address string `json:"address"` // 转发目标地址
Msg string `json:"msg"` // 转发矿池的mining.authorize方法配置参数
}
type Authorize_msg struct {
ID int `json:"id"`
Method string `json:"method"`
Params []string
}