Initial Commit
This commit is contained in:
12
internal/types/http.go
Normal file
12
internal/types/http.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package types
|
||||
|
||||
type Node struct {
|
||||
ID string `msgpack:"id,omitempty"`
|
||||
IP string `msgpack:"ip"`
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
Error bool `msgpack:"error"`
|
||||
Message string `msgpack:"msg,omitempty"`
|
||||
Data interface{} `msgpack:"data,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user