handshake

package
v1.999.300 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPoolSize int = 1
)

Functions

func Create

func Create(options Options) gen.NetworkHandshake

Types

type ConnectionOptions

type ConnectionOptions struct {
	PoolSize int
	PoolDSN  []string

	EncodeAtomCache *sync.Map
	EncodeRegCache  *sync.Map
	EncodeErrCache  *sync.Map

	DecodeAtomCache *sync.Map
	DecodeRegCache  *sync.Map
	DecodeErrCache  *sync.Map
}

type MessageAccept

type MessageAccept struct {
	ID         string
	PoolSize   int
	PoolDSN    []string
	Digest     string
	DigestCert string
}

type MessageHello

type MessageHello struct {
	Salt       string
	Digest     string
	DigestCert string
}

type MessageIntroduce

type MessageIntroduce struct {
	Node     gen.Atom
	Version  gen.Version
	Flags    gen.NetworkFlags
	Creation int64

	MaxMessageSize int

	AtomCache map[uint16]gen.Atom
	RegCache  map[uint16]string
	ErrCache  map[uint16]error
	Digest    string
}

type MessageJoin

type MessageJoin struct {
	Node         gen.Atom
	ConnectionID string
	Salt         string
	Digest       string
}

type Options

type Options struct {
	PoolSize              int
	DisableTLSFingerprint bool
	NetworkFlags          gen.NetworkFlags
	AtomMapping           map[gen.Atom]gen.Atom
}

Jump to

Keyboard shortcuts

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