grpcclient

package
v0.0.0-...-4bb11d9 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	PubKey       string `toml:"client_public_key"`
	PrivKey      string `toml:"client_private_key"`
	ServerPubKey string `toml:"server_public_key"`
	ServerIP     string `toml:"server_ip"`
}

ClientConfig maps our config for a pure grpc client.

func NewClientConfig

func NewClientConfig(path string) (ClientConfig, error)

NewClientConfig ...

type CoChairClient

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

CoChairClient is a wrapper around our generated gRPC server.ProxyClient interface.

func NewCoChairClient

func NewCoChairClient(conf ClientConfig) (*CoChairClient, error)

NewCoChairClient returns a CoChairClient

func (*CoChairClient) Put

func (c *CoChairClient) Put(domain string, ips []string) error

Put ...

func (*CoChairClient) State

func (c *CoChairClient) State(domain string) error

State reports on the state of the proxy.

Jump to

Keyboard shortcuts

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