mirror of
https://github.com/ayflying/p2p.git
synced 2026-03-05 01:39:23 +00:00
增加代理接口
This commit is contained in:
17
internal/message/http/http.go
Normal file
17
internal/message/http/http.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package http
|
||||
|
||||
import v1 "github.com/ayflying/p2p/api/p2p/v1"
|
||||
|
||||
type Http struct {
|
||||
Ip string `json:"ip"`
|
||||
Port int `json:"port"`
|
||||
Cname string `json:"cname"`
|
||||
Data []byte `json:"data"`
|
||||
}
|
||||
|
||||
var New = Http{}
|
||||
|
||||
func (h Http) Message(msg *v1.Message) (err error) {
|
||||
//TODO implement me
|
||||
panic("implement me")
|
||||
}
|
||||
Reference in New Issue
Block a user