client

package
v0.0.0-...-29ec7e5 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2017 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	authentication.ClientAuth
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...Option) *Client

func (*Client) Dial

func (c *Client) Dial(peerID string) (*grpc.ClientConn, error)

func (*Client) DialUnsecure

func (c *Client) DialUnsecure(peerID string) (*ClientConnPlus, error)

func (*Client) TearDown

func (c *Client) TearDown()

type ClientConnPlus

type ClientConnPlus struct {
	CC       *grpc.ClientConn
	TLSState <-chan tls.ConnectionState
}

func (*ClientConnPlus) TearDown

func (cp *ClientConnPlus) TearDown()

type Option

type Option func(*options)

Option fills the option struct to configure TLS keys etc.

func TLSKeyFile

func TLSKeyFile(certFile, keyFile string) Option

TLSKeyFile defines the server's TLS certificate used to authenticate against a client.

Jump to

Keyboard shortcuts

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