client

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

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 9 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 {
	chat.Chat_StreamClient
	// contains filtered or unexported fields
}

Client used to open a stream connection with another peer.

func Connect

func Connect(
	ctx context.Context,
	r *rand.Rand,
	log *logger.Logger,
	creds credentials.TransportCredentials,
	client *peers.Peer,
) (*Client, error)

Connect connects to a client.

type InsecureClient

type InsecureClient struct {
	greeter.GreeterClient
	// contains filtered or unexported fields
}

InsecureClient used to open an insecure connection with another peer.

func InsecureConnect

func InsecureConnect(
	ctx context.Context,
	log *logger.Logger,
	client *peers.Peer,
) (*InsecureClient, error)

InsecureConnect connects to a client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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