api

package
v0.0.0-...-a7f6a6d Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlServer

type ControlServer struct {
	cliapi.UnimplementedControlServer
	// contains filtered or unexported fields
}

func (*ControlServer) Connect

func (*ControlServer) Disconnect

func (c *ControlServer) Disconnect(_ context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

func (*ControlServer) GetStatus

type PeerServer

type PeerServer struct {
	cliapi.UnimplementedPeerServer
}

func (*PeerServer) GetPeers

func (p *PeerServer) GetPeers(ctx context.Context, req *emptypb.Empty) (*cliapi.PeerList, error)

func (*PeerServer) RemovePeer

func (p *PeerServer) RemovePeer(ctx context.Context, req *cliapi.RemovePeerRequest) (*emptypb.Empty, error)

func (*PeerServer) SetPeer

type RelayControl

type RelayControl interface {
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ip string, port int, relay *daemon.Relay) *Server

func (*Server) Run

func (s *Server) Run() error

type TunnelServer

type TunnelServer struct {
	cliapi.UnimplementedTunnelServer
}

func (*TunnelServer) Create

func (*TunnelServer) Delete

func (*TunnelServer) List

Jump to

Keyboard shortcuts

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