server

package
v0.0.0-...-cd40d76 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedBackconnectdServer
	// contains filtered or unexported fields
}

Server stores information about open sessions and loggers

func New

func New(logger *log.Logger) Server

New returns an empty Server

func (*Server) AdminLoop

func (s *Server) AdminLoop(addr string)

AdminLoop starts listener for admin connections

func (*Server) BackconnectLoop

func (s *Server) BackconnectLoop(addr string)

BackconnectLoop starts listener for backconnections

func (*Server) ConnectSession

func (s *Server) ConnectSession(stream pb.Backconnectd_ConnectSessionServer) error

func (*Server) KillSession

func (s *Server) KillSession(ctx context.Context, req *pb.SessionKillRequest) (*pb.Response, error)

func (*Server) Subscribe

func (s *Server) Subscribe(req *pb.SubscribeRequest, stream pb.Backconnectd_SubscribeServer) error

Jump to

Keyboard shortcuts

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