client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotExpectedMessage = errors.New("wrong message type")

handshake 과정에서 올바르지 않은 메세지 타입이 올 경우 발생하는 에러

Functions

func Dial

func Dial(serverIp string, metaData map[string]string, clientOpts ClientOpts, grpcOpts GrpcOpts, crypto bifrost.Crypto) (bifrost.Connection, error)

서버와 연결 요청. 실패시 err. handshake 과정을 거침.

Types

type ClientOpts

type ClientOpts struct {
	Ip     string
	PubKey bifrost.Key
}

Server 와 연결시 사용되는 Client option

type GrpcOpts

type GrpcOpts struct {
	TlsEnabled bool
	Creds      credentials.TransportCredentials
}

Server 와 연결시 사용되는 grpc option.

Jump to

Keyboard shortcuts

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