constants

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The length of token that client endpoint send to server endpoint
	TokenLength = 512
	// The lenght of ack message that server endpoint send to client endpoint
	AckMsgLength = 1
)
View Source
const (
	// Means that server endpoint accept the token which receive from client endpoint
	HandshakeSuccess = 0x01
	// Means that server endpoint cannot parse token
	ParseTokenError = 0x02
	// Means that server endpoint cannot connect server application
	CannotConnServer = 0x03
)
View Source
const (
	ClientAppAddr      = "Client-App-Addr"
	StreamID           = "Stream-ID"
	ServerAppAddr      = "Server-App-Addr"
	ClientEndpointAddr = "Client-Endpoint-Addr"
)

The key names of log's additional key/value pairs

View Source
const (
	CtxRemoteEndpointAddr keytype = "Remote-Endpoint-Addr"
	CtxClientAppAddr      keytype = "Client-App-Addr"
)

The key names of value context

View Source
const (
	ClientEndpoint = "client"
	ServerEndpoint = "server"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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