msgactor

package
v0.0.0-...-d81ffa1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package msgactor contains definitions for messages directly sent and received between actors of the toversok stage.

Actor message interface definitions are sealed within this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActorMessage

type ActorMessage interface {
	// contains filtered or unexported methods
}

type DManSetMTU

type DManSetMTU struct {
	ForAddrPort netip.AddrPort

	MTU uint16
}

type DRouterPeerAddKnownAs

type DRouterPeerAddKnownAs struct {
	Peer key.NodePublic

	AddrPort netip.AddrPort
}

type DRouterPeerClearKnownAs

type DRouterPeerClearKnownAs struct {
	Peer key.NodePublic
}

type DRouterPushSTUN

type DRouterPushSTUN struct {
	Packets map[netip.AddrPort][]byte
}

type EManSTUNResponse

type EManSTUNResponse struct {
	Endpoint netip.AddrPort

	Packet []byte

	Timestamp time.Time
}

type HomeRelayChangeNotification

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

type LocalEndpointsChangeNotification

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

type OutConnUse

type OutConnUse struct {
	UseRelay  bool
	TrackHome bool

	RelayToUse    int64
	AddrPortToUse netip.AddrPort
}

type PeerConnStateChangeNotification

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

type PeerState

type PeerState byte
const (
	PeerStateIdle PeerState = iota
	PeerStateRelay
	PeerStateDirect
)

type RManRelayLatencyResults

type RManRelayLatencyResults struct {
	RelayLatency map[int64]time.Duration
}

type SManSendSessionMessageToDirect

type SManSendSessionMessageToDirect struct {
	AddrPort netip.AddrPort

	ToSession key.SessionPublic

	Msg msgsess.SessionMessage
}

type SManSendSessionMessageToRelay

type SManSendSessionMessageToRelay struct {
	Relay int64

	Peer key.NodePublic

	ToSession key.SessionPublic

	Msg msgsess.SessionMessage
}

type SManSessionFrameFromAddrPort

type SManSessionFrameFromAddrPort struct {
	AddrPort netip.AddrPort

	FrameWithMagic []byte
}

type SManSessionFrameFromRelay

type SManSessionFrameFromRelay struct {
	Relay int64

	Peer key.NodePublic

	FrameWithMagic []byte
}

type StageNotification

type StageNotification interface {
	// contains filtered or unexported methods
}

type SyncPeerInfo

type SyncPeerInfo struct {
	Peer key.NodePublic
}

type TManConnActivity

type TManConnActivity struct {
	Peer key.NodePublic

	// else its out
	IsIn bool

	IsActive bool
}

type TManConnGoodBye

type TManConnGoodBye struct {
	Peer key.NodePublic

	// else its out
	IsIn bool
}

type TManSessionMessageFromDirect

type TManSessionMessageFromDirect struct {
	AddrPort netip.AddrPort

	Msg *msgsess.ClearMessage
}

type TManSessionMessageFromRelay

type TManSessionMessageFromRelay struct {
	Relay int64

	Peer key.NodePublic

	// session key from the session message
	Msg *msgsess.ClearMessage
}

type UpdateRelayConfiguration

type UpdateRelayConfiguration struct {
	Config []relay.Information
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳