conns

package
v0.0.0-...-8220f0d Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(nodeID uint64, top network.NetTopology, maxPayload int, key signature.KeyPair, connection service.CONNECTION) *cache

func NewPool

func NewPool(size int, nodeID uint64, top network.NetTopology, maxPayload int, key signature.KeyPair, connection service.CONNECTION) *pool

Types

type AckID

type AckID struct {
	NodeID    uint64
	RequestID uint64
}

type Cache

type Cache interface {
	Close()
	WriteRequest(
		nodeID uint64, msg *service.Message, timeout time.Duration, ack bool,
		cb func(uint64, *service.Message)) (uint64, error)
}

type MuConn

type MuConn struct {
	// contains filtered or unexported fields
}

type PendingAck

type PendingAck struct {
	// contains filtered or unexported fields
}

type Pool

type Pool interface {
	MessageAckPending() int
	Close()
	Borrow() Cache
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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