Documentation ¶
Index ¶
- func CustomError(c common.Code, msg string) error
- type ErrorWrapper
- type Server
- func (s *Server) CreateConnection(ctx context.Context, req *protos.CreateConnectionRequest) (*protos.CreateConnectionResponse, error)
- func (s *Server) CreateRelay(ctx context.Context, req *protos.CreateRelayRequest) (*protos.CreateRelayResponse, error)
- func (s *Server) CreateTunnel(ctx context.Context, req *protos.CreateTunnelRequest) (*protos.CreateTunnelResponse, error)
- func (s *Server) DeleteConnection(ctx context.Context, req *protos.DeleteConnectionRequest) (*protos.DeleteConnectionResponse, error)
- func (s *Server) DeleteRelay(ctx context.Context, req *protos.DeleteRelayRequest) (*protos.DeleteRelayResponse, error)
- func (s *Server) DeleteTunnel(ctx context.Context, req *protos.DeleteTunnelRequest) (*protos.DeleteTunnelResponse, error)
- func (s *Server) GetAllConnections(_ context.Context, req *protos.GetAllConnectionsRequest) (*protos.GetAllConnectionsResponse, error)
- func (s *Server) GetAllRelays(_ context.Context, req *protos.GetAllRelaysRequest) (*protos.GetAllRelaysResponse, error)
- func (s *Server) GetAllTunnels(_ context.Context, req *protos.GetAllTunnelsRequest) (*protos.GetAllTunnelsResponse, error)
- func (s *Server) GetConnection(_ context.Context, req *protos.GetConnectionRequest) (*protos.GetConnectionResponse, error)
- func (s *Server) GetRelay(ctx context.Context, request *protos.GetRelayRequest) (*protos.GetRelayResponse, error)
- func (s *Server) GetServerOptions(_ context.Context, req *protos.GetServerOptionsRequest) (*protos.GetServerOptionsResponse, error)
- func (s *Server) GetTunnel(_ context.Context, request *protos.GetTunnelRequest) (*protos.GetTunnelResponse, error)
- func (s *Server) ResumeRelay(ctx context.Context, req *protos.ResumeRelayRequest) (*protos.ResumeRelayResponse, error)
- func (s *Server) ResumeTunnel(ctx context.Context, req *protos.ResumeTunnelRequest) (*protos.ResumeTunnelResponse, error)
- func (s *Server) StopRelay(ctx context.Context, req *protos.StopRelayRequest) (*protos.StopRelayResponse, error)
- func (s *Server) StopTunnel(ctx context.Context, req *protos.StopTunnelRequest) (*protos.StopTunnelResponse, error)
- func (s *Server) TestConnection(ctx context.Context, req *protos.TestConnectionRequest) (*protos.TestConnectionResponse, error)
- func (s *Server) UpdateConnection(ctx context.Context, req *protos.UpdateConnectionRequest) (*protos.UpdateConnectionResponse, error)
- func (s *Server) UpdateRelay(ctx context.Context, req *protos.UpdateRelayRequest) (*protos.UpdateRelayResponse, error)
- func (s *Server) UpdateTunnel(ctx context.Context, req *protos.UpdateTunnelRequest) (*protos.UpdateTunnelResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorWrapper ¶
func (*ErrorWrapper) Error ¶
func (e *ErrorWrapper) Error() string
type Server ¶
type Server struct { Actions actions.IActions AuthToken string PersistentConfig *config.Config Bus bus.IBus Log *logrus.Entry CLIOptions *opts.CLIOptions }
func (*Server) CreateConnection ¶
func (s *Server) CreateConnection(ctx context.Context, req *protos.CreateConnectionRequest) (*protos.CreateConnectionResponse, error)
func (*Server) CreateRelay ¶
func (s *Server) CreateRelay(ctx context.Context, req *protos.CreateRelayRequest) (*protos.CreateRelayResponse, error)
func (*Server) CreateTunnel ¶ added in v1.4.0
func (s *Server) CreateTunnel(ctx context.Context, req *protos.CreateTunnelRequest) (*protos.CreateTunnelResponse, error)
func (*Server) DeleteConnection ¶
func (s *Server) DeleteConnection(ctx context.Context, req *protos.DeleteConnectionRequest) (*protos.DeleteConnectionResponse, error)
func (*Server) DeleteRelay ¶
func (s *Server) DeleteRelay(ctx context.Context, req *protos.DeleteRelayRequest) (*protos.DeleteRelayResponse, error)
func (*Server) DeleteTunnel ¶ added in v1.4.0
func (s *Server) DeleteTunnel(ctx context.Context, req *protos.DeleteTunnelRequest) (*protos.DeleteTunnelResponse, error)
func (*Server) GetAllConnections ¶
func (s *Server) GetAllConnections(_ context.Context, req *protos.GetAllConnectionsRequest) (*protos.GetAllConnectionsResponse, error)
func (*Server) GetAllRelays ¶
func (s *Server) GetAllRelays(_ context.Context, req *protos.GetAllRelaysRequest) (*protos.GetAllRelaysResponse, error)
func (*Server) GetAllTunnels ¶ added in v1.4.0
func (s *Server) GetAllTunnels(_ context.Context, req *protos.GetAllTunnelsRequest) (*protos.GetAllTunnelsResponse, error)
func (*Server) GetConnection ¶
func (s *Server) GetConnection(_ context.Context, req *protos.GetConnectionRequest) (*protos.GetConnectionResponse, error)
func (*Server) GetRelay ¶ added in v1.2.1
func (s *Server) GetRelay(ctx context.Context, request *protos.GetRelayRequest) (*protos.GetRelayResponse, error)
func (*Server) GetServerOptions ¶
func (s *Server) GetServerOptions(_ context.Context, req *protos.GetServerOptionsRequest) (*protos.GetServerOptionsResponse, error)
func (*Server) GetTunnel ¶ added in v1.4.0
func (s *Server) GetTunnel(_ context.Context, request *protos.GetTunnelRequest) (*protos.GetTunnelResponse, error)
func (*Server) ResumeRelay ¶
func (s *Server) ResumeRelay(ctx context.Context, req *protos.ResumeRelayRequest) (*protos.ResumeRelayResponse, error)
func (*Server) ResumeTunnel ¶ added in v1.4.0
func (s *Server) ResumeTunnel(ctx context.Context, req *protos.ResumeTunnelRequest) (*protos.ResumeTunnelResponse, error)
func (*Server) StopRelay ¶
func (s *Server) StopRelay(ctx context.Context, req *protos.StopRelayRequest) (*protos.StopRelayResponse, error)
func (*Server) StopTunnel ¶ added in v1.4.0
func (s *Server) StopTunnel(ctx context.Context, req *protos.StopTunnelRequest) (*protos.StopTunnelResponse, error)
func (*Server) TestConnection ¶
func (s *Server) TestConnection(ctx context.Context, req *protos.TestConnectionRequest) (*protos.TestConnectionResponse, error)
func (*Server) UpdateConnection ¶
func (s *Server) UpdateConnection(ctx context.Context, req *protos.UpdateConnectionRequest) (*protos.UpdateConnectionResponse, error)
func (*Server) UpdateRelay ¶
func (s *Server) UpdateRelay(ctx context.Context, req *protos.UpdateRelayRequest) (*protos.UpdateRelayResponse, error)
func (*Server) UpdateTunnel ¶ added in v1.4.0
func (s *Server) UpdateTunnel(ctx context.Context, req *protos.UpdateTunnelRequest) (*protos.UpdateTunnelResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.