Documentation ¶
Index ¶
- type ConnectType
- type Server
- func (s *Server) Disconnect(ctx context.Context, in *sshtunnelpb.DisconnectRequest) (*sshtunnelpb.DisconnectReply, error)
- func (s *Server) Forward(_ context.Context, in *sshtunnelpb.ConnectRequest) (*sshtunnelpb.ForwardReply, error)
- func (s *Server) ListConnect(ctx context.Context, in *sshtunnelpb.ListConnectRequest) (*sshtunnelpb.ListConnectReply, error)
- func (s *Server) Reverse(_ context.Context, in *sshtunnelpb.ConnectRequest) (*sshtunnelpb.ReverseReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectType ¶
type ConnectType string
const ( Forward ConnectType = "Forward" Reverse ConnectType = "Reverse" )
type Server ¶
type Server struct { sshtunnelpb.UnimplementedSshTunnelServer // contains filtered or unexported fields }
func NewSSHTunnelServer ¶
func (*Server) Disconnect ¶
func (s *Server) Disconnect(ctx context.Context, in *sshtunnelpb.DisconnectRequest) (*sshtunnelpb.DisconnectReply, error)
func (*Server) Forward ¶
func (s *Server) Forward(_ context.Context, in *sshtunnelpb.ConnectRequest) (*sshtunnelpb.ForwardReply, error)
func (*Server) ListConnect ¶
func (s *Server) ListConnect(ctx context.Context, in *sshtunnelpb.ListConnectRequest) (*sshtunnelpb.ListConnectReply, error)
func (*Server) Reverse ¶
func (s *Server) Reverse(_ context.Context, in *sshtunnelpb.ConnectRequest) (*sshtunnelpb.ReverseReply, error)
Click to show internal directories.
Click to hide internal directories.