client

package
v0.0.0-...-115e584 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SERVER_PEM = `` /* 1346-byte string literal not displayed */

Variables

This section is empty.

Functions

func NewClientOpts

func NewClientOpts(caPem string) []grpc.DialOption

创建配置

Types

type UafClient

type UafClient struct {
	Client pb.SignalingClient
	Conn   *grpc.ClientConn
	Master string
	Target string

	Version int
	// contains filtered or unexported fields
}

rpc client

func NewUafClient

func NewUafClient(master string, target string, caPem string) (*UafClient, error)

创建client

func (*UafClient) DisConnect

func (p *UafClient) DisConnect()

关闭连接

func (*UafClient) IsReady

func (p *UafClient) IsReady() bool

是否连接就绪

Jump to

Keyboard shortcuts

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