client

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnMap = make(map[string]*cf.ClientConn)

ConnMap client connection map

View Source
var DownloadConnMap = &sync.Map{}

DownloadConnMap download connection between P-PP

View Source
var OfflineChan = make(chan *Offline, 2)

OfflineChan OfflineChan

View Source
var PPConn *cf.ClientConn

PPConn current connected pp node

View Source
var SPConn *cf.ClientConn

SPConn super node connection

View Source
var UpConnMap = &sync.Map{}

UpConnMap upload connection

Functions

func GetConnectionName added in v0.6.0

func GetConnectionName(conn core.WriteCloser) string

func NewClient

func NewClient(server string, heartbeat bool) *cf.ClientConn

NewClient

Types

type Offline

type Offline struct {
	IsSp           bool
	NetworkAddress string
}

Offline Offline

Jump to

Keyboard shortcuts

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