network

package
v0.23.35 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 23 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("sequencer closed")

Functions

func NewEdgeConnFactory

func NewEdgeConnFactory(routerName, key string, owner RouterConnOwner) edge.RouterConn

func NewNoopSequencer

func NewNoopSequencer[T any](channelDepth int) *noopSeq[T]

Types

type ConnType

type ConnType byte
const (
	ConnTypeDial ConnType = 1
	ConnTypeBind ConnType = 2
)

type MultiListener

type MultiListener interface {
	edge.Listener
	AddListener(listener edge.Listener, closeHandler func())
	NotifyOfChildError(err error)
	GetServiceName() string
	GetService() *rest_model.ServiceDetail
	CloseWithError(err error)
	GetEstablishedCount() uint
}

func NewMultiListener

func NewMultiListener(service *rest_model.ServiceDetail, getSessionF func() *rest_model.SessionDetail) MultiListener

type MultipleErrors

type MultipleErrors []error

func (MultipleErrors) Error

func (e MultipleErrors) Error() string

type ReadTimout

type ReadTimout struct{}

func (ReadTimout) Error

func (r ReadTimout) Error() string

func (ReadTimout) Temporary

func (r ReadTimout) Temporary() bool

func (ReadTimout) Timeout

func (r ReadTimout) Timeout() bool

type RouterConnOwner

type RouterConnOwner interface {
	OnClose(factory edge.RouterConn)
}

Jump to

Keyboard shortcuts

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