mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 20:16:52 +00:00
add functions
This commit is contained in:
@@ -8,6 +8,18 @@ import (
|
||||
"net"
|
||||
)
|
||||
|
||||
type Secret struct {
|
||||
Password string
|
||||
Conn *Conn
|
||||
}
|
||||
|
||||
func NewSecret(p string, conn *Conn) *Secret {
|
||||
return &Secret{
|
||||
Password: p,
|
||||
Conn: conn,
|
||||
}
|
||||
}
|
||||
|
||||
type Link struct {
|
||||
Id int //id
|
||||
ConnType string //连接类型
|
||||
|
Reference in New Issue
Block a user