app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, cfg *config.ServiceDialer) *Client

func (*Client) AgentList

func (c *Client) AgentList(ctx context.Context) (map[string]*pb.Agent, error)

func (*Client) AgentRemove

func (c *Client) AgentRemove(ctx context.Context, agentId string) error

func (*Client) ProxyStart

func (c *Client) ProxyStart(ctx context.Context, proxyAddr string) ([]byte, error)

func (*Client) ProxyStop

func (c *Client) ProxyStop(ctx context.Context) error

func (*Client) TunnelAddRoute

func (c *Client) TunnelAddRoute(ctx context.Context, agentId string, routes []string) error

func (*Client) TunnelList

func (c *Client) TunnelList(ctx context.Context) ([]*pb.Tunnel, error)

func (*Client) TunnelPause

func (c *Client) TunnelPause(ctx context.Context, agentId string) error

func (*Client) TunnelRemoveRoute

func (c *Client) TunnelRemoveRoute(ctx context.Context, agentId string, routes []string) error

func (*Client) TunnelResume

func (c *Client) TunnelResume(ctx context.Context, agentId string) error

func (*Client) TunnelStart

func (c *Client) TunnelStart(ctx context.Context, agentId string, routes []string) error

func (*Client) TunnelStop

func (c *Client) TunnelStop(ctx context.Context, agentId string) error

type ClientKey

type ClientKey struct{}

type Server

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

func NewServer

func NewServer(ctx context.Context, cfg *config.ServiceServer) *Server

func (*Server) Run

func (s *Server) Run(listener net.Listener) error

func (*Server) ShutDownGracefully

func (s *Server) ShutDownGracefully() error

type ServiceHandler

type ServiceHandler struct {
	serviceconnect.UnimplementedRaidoServiceHandler
	// contains filtered or unexported fields
}

func (*ServiceHandler) AgentList

func (*ServiceHandler) AgentRemove

func (*ServiceHandler) ProxyStart

func (*ServiceHandler) ProxyStop

func (*ServiceHandler) TunnelAddRoute

func (*ServiceHandler) TunnelList

func (*ServiceHandler) TunnelPause

func (*ServiceHandler) TunnelRemoveRoute

func (*ServiceHandler) TunnelResume

func (*ServiceHandler) TunnelStart

func (*ServiceHandler) TunnelStop

Jump to

Keyboard shortcuts

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