client

package
v0.0.0-...-c9d8e2f Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 14 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 {
	services.DataManagement
	connections.Tailnet
	ID string
}

func (*Client) NewClient

func (cl *Client) NewClient(ctx context.Context, opts ...Option) error

func (*Client) RegisterWithCoordinationServer

func (cl *Client) RegisterWithCoordinationServer(ctx context.Context, addr string) error

RegisterWithCoordinationServer generate the registration request and send it to the coordination server

func (*Client) StartDatabase

func (cl *Client) StartDatabase(ctx context.Context) error

func (*Client) StartRPCClientMode

func (cl *Client) StartRPCClientMode(ctx context.Context) error

type CommandServer

type CommandServer struct {
	pb.UnimplementedCommandRunnerServer
}

CommandServer struct to contain command runner rpc

func (*CommandServer) Command

RegisterCommandRunner registers the RPC call and implements behavior for command runner

type Option

type Option func(cl *Client) error

Jump to

Keyboard shortcuts

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