mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-10 11:40:30 +08:00
24 lines
351 B
Go
24 lines
351 B
Go
package link
|
|
|
|
import "net"
|
|
|
|
var (
|
|
privKey [32]byte
|
|
myip string
|
|
me net.IP
|
|
)
|
|
|
|
func SetMyself(privateKey [32]byte, myIP string) {
|
|
privKey = privateKey
|
|
myip = myIP
|
|
me = net.ParseIP(myIP)
|
|
}
|
|
|
|
func (id *Identity) Encode(b []byte) (n int, err error) {
|
|
return 0, nil
|
|
}
|
|
|
|
func (id *Identity) Decode(b []byte) (n int, err error) {
|
|
return 0, nil
|
|
}
|