Types.go 331 B

123456789101112131415161718192021
  1. package Utils
  2. import (
  3. "github.com/swzry/go.TSmap"
  4. "golang.org/x/crypto/ssh"
  5. "golang.org/x/crypto/ssh/terminal"
  6. )
  7. type ClientConnection struct {
  8. Channels TSmap.TSmap
  9. }
  10. type UserContextType struct {
  11. PWD string
  12. }
  13. type AvaliableChannel struct {
  14. Channel ssh.Channel
  15. Term *terminal.Terminal
  16. UserContext UserContextType
  17. }