server

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomError

func CustomError(c common.Code, msg string) error

Types

type ErrorWrapper

type ErrorWrapper struct {
	Status *common.Status
}

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 (*Server) CreateRelay

func (*Server) CreateTunnel added in v1.4.0

func (*Server) DeleteConnection

func (*Server) DeleteRelay

func (*Server) DeleteTunnel added in v1.4.0

func (*Server) GetAllRelays

func (*Server) GetAllTunnels added in v1.4.0

func (*Server) GetConnection

func (*Server) GetRelay added in v1.2.1

func (s *Server) GetRelay(ctx context.Context, request *protos.GetRelayRequest) (*protos.GetRelayResponse, error)

func (*Server) GetTunnel added in v1.4.0

func (*Server) ResumeRelay

func (*Server) ResumeTunnel added in v1.4.0

func (*Server) StopRelay

func (*Server) StopTunnel added in v1.4.0

func (*Server) TestConnection

func (*Server) UpdateConnection

func (*Server) UpdateRelay

func (*Server) UpdateTunnel added in v1.4.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL