get ready for saving the keys
This commit is contained in:
parent
6260b4fe2b
commit
564bf08803
3 changed files with 34 additions and 8 deletions
23
conn/conn.go
Normal file
23
conn/conn.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package conn
|
||||
|
||||
import (
|
||||
//"os"
|
||||
"github.com/eyedeekay/sam3"
|
||||
)
|
||||
|
||||
type Conn struct {
|
||||
*sam3.SAMConn
|
||||
path string
|
||||
}
|
||||
|
||||
func (c Conn) SaveKeys() {
|
||||
|
||||
}
|
||||
|
||||
func NewConn(conn *sam3.SAMConn, path string) (*Conn, error) {
|
||||
return GenConn(conn, path), nil
|
||||
}
|
||||
|
||||
func GenConn(conn *sam3.SAMConn, path string) *Conn {
|
||||
return &Conn{SAMConn: conn, path: path}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue