observation

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const IdentityBytes = 16

Variables

View Source
var ErrInvalidEvent = errors.New("engine observation is invalid")
View Source
var ErrInvalidFact = errors.New("engine observation fact is invalid")
View Source
var ErrInvalidFailure = errors.New("engine observation failure is invalid")
View Source
var ErrInvalidIdentity = errors.New("engine observation identity is invalid")
View Source
var ErrInvalidProgress = errors.New("engine receive progress is invalid")

Functions

func ValidExactItemBlockCounts

func ValidExactItemBlockCounts(outcomes FileOutcomes) bool

Types

type ContentPath

type ContentPath uint8
const (
	ContentPathRelay ContentPath = iota + 1
	ContentPathDirect
	ContentPathDirectAndRelay
)

func (ContentPath) Name

func (value ContentPath) Name() (string, bool)

func (ContentPath) Valid

func (value ContentPath) Valid() bool

type ContentPathSelected

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

func NewContentPathSelected

func NewContentPathSelected(path ContentPath) (ContentPathSelected, error)

func (ContentPathSelected) EngineEvent

func (ContentPathSelected) EngineEvent()

func (ContentPathSelected) Level

func (ContentPathSelected) Level() Level

func (ContentPathSelected) Path

func (value ContentPathSelected) Path() ContentPath

func (ContentPathSelected) Validate

func (value ContentPathSelected) Validate() error

func (ContentPathSelected) Workflow

func (ContentPathSelected) Workflow() Workflow

type DiscoveryStatus

type DiscoveryStatus uint8
const (
	DiscoveryOpen DiscoveryStatus = iota + 1
	DiscoveryComplete
	DiscoveryFailed
)

func (DiscoveryStatus) Name

func (value DiscoveryStatus) Name() (string, bool)

func (DiscoveryStatus) Valid

func (value DiscoveryStatus) Valid() bool

type DisplayName

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

func NewDisplayName

func NewDisplayName(text string) DisplayName

func (DisplayName) Empty

func (value DisplayName) Empty() bool

func (DisplayName) Text

func (value DisplayName) Text() string

type DisplayPath

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

func NewDisplayPath

func NewDisplayPath(text string) DisplayPath

func (DisplayPath) Empty

func (value DisplayPath) Empty() bool

func (DisplayPath) Text

func (value DisplayPath) Text() string

type EngineFailureClass

type EngineFailureClass string
const (
	EngineFailureNone        EngineFailureClass = "none"
	EngineFailureLocal       EngineFailureClass = "local"
	EngineFailureNetwork     EngineFailureClass = "network"
	EngineFailureUsage       EngineFailureClass = "usage"
	EngineFailureSourceDrift EngineFailureClass = "source_drift"
)

type EngineStopReason

type EngineStopReason uint8
const (
	EngineNoStop EngineStopReason = iota
	EngineCancelled
	EngineShareStopped
	EngineApplicationClosed
)

func (EngineStopReason) Name

func (reason EngineStopReason) Name() (string, bool)

type EngineTaskID

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

func NewEngineTaskID

func NewEngineTaskID(value string) (EngineTaskID, error)

func (EngineTaskID) String

func (id EngineTaskID) String() string

func (EngineTaskID) Valid

func (id EngineTaskID) Valid() bool

type EngineTaskObserved

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

func NewEngineTaskObserved

func NewEngineTaskObserved(spec EngineTaskSpec) (EngineTaskObserved, error)

func (EngineTaskObserved) EngineEvent

func (EngineTaskObserved) EngineEvent()

func (EngineTaskObserved) Facts

func (event EngineTaskObserved) Facts() EngineTaskSpec

func (EngineTaskObserved) Level

func (EngineTaskObserved) Level() Level

func (EngineTaskObserved) Validate

func (event EngineTaskObserved) Validate() error

func (EngineTaskObserved) Workflow

func (event EngineTaskObserved) Workflow() Workflow

type EngineTaskOutcome

type EngineTaskOutcome string
const (
	EngineOutcomeSuccess   EngineTaskOutcome = "success"
	EngineOutcomePartial   EngineTaskOutcome = "partial"
	EngineOutcomePaused    EngineTaskOutcome = "paused"
	EngineOutcomeCancelled EngineTaskOutcome = "cancelled"
	EngineOutcomeStopped   EngineTaskOutcome = "stopped"
	EngineOutcomeFailed    EngineTaskOutcome = "failed"
)

type EngineTaskSpec

type EngineTaskSpec struct {
	Workflow       Workflow
	Task           EngineTaskID
	At             time.Time
	Stage          EngineTaskStage
	StopReason     EngineStopReason
	Outcome        EngineTaskOutcome
	FailureClass   EngineFailureClass
	Failure        Failure
	CleanupFailure Failure
}

EngineTaskSpec describes product lifecycle and retained task settlement.

type EngineTaskStage

type EngineTaskStage uint8
const (
	EngineTaskStarted EngineTaskStage = iota + 1
	EngineTaskStopping
	EngineTaskSettled
)

func (EngineTaskStage) Name

func (stage EngineTaskStage) Name() (string, bool)

type Event

type Event interface {
	EngineEvent()
	Workflow() Workflow
	Level() Level
	Validate() error
}

type Failure

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

func NewFailure

func NewFailure(code FailureCode) (Failure, error)

func NewFaultFailure

func NewFaultFailure(code FailureCode, context FaultContext) (Failure, error)

func NewRelayRouteFailure

func NewRelayRouteFailure(hint networkendpoint.RelayBaseHint) Failure

func NewRetryableFailure

func NewRetryableFailure(code FailureCode, retryAfterMillis uint64) (Failure, error)

func NewSelectionCollisionFailure

func NewSelectionCollisionFailure(first, second DisplayPath) (Failure, error)

func NewSourcePathFailure

func NewSourcePathFailure(code FailureCode, path DisplayPath) (Failure, error)

func ProjectFault

func ProjectFault(value transferfault.Fault) (Failure, bool)

func ProjectNormalizedFault

func ProjectNormalizedFault(domain uint8, scope uint8, code uint16) (Failure, bool)

func (Failure) Code

func (failure Failure) Code() FailureCode

func (Failure) Fault

func (failure Failure) Fault() (FaultContext, bool)

func (Failure) MessageKey

func (failure Failure) MessageKey() (SafeMessageKey, bool)

func (Failure) RelayBaseHint

func (failure Failure) RelayBaseHint() networkendpoint.RelayBaseHint

func (Failure) RetryAfterMillis

func (failure Failure) RetryAfterMillis() (uint64, bool)

func (Failure) SelectionCollision

func (failure Failure) SelectionCollision() (SelectionCollision, bool)

func (Failure) SourcePath

func (failure Failure) SourcePath() (DisplayPath, bool)

func (Failure) Valid

func (failure Failure) Valid() bool

type FailureCode

type FailureCode uint16
const (
	FailureUnexpected FailureCode = iota + 1
	FailureCanceled
	FailureDeadline
	FailureInvalidInput
	FailureNetworkUnavailable
	FailureCapabilityInvalid
	FailureSelectionMissing
	FailureSelectionCollision
	FailurePublication
	FailureTraceOpen
	FailureTraceExists
	FailureTraceWrite

	FailureRelayMalformed
	FailureRelayUnsupportedMode
	FailureRelayShareIDCollision
	FailureRelayAlreadyRegistered
	FailureRelayChallengeExpired
	FailureRelayInvalidProof
	FailureRelayDescriptorInvalid
	FailureRelayNotFound
	FailureRelayStarting
	FailureRelayAdmission
	FailureRelayStopped
	FailureRelayProtocol
	FailureRelayClosed
	FailureRelayOverflow
	FailureRelayTransport

	FailurePeerNegotiation
	FailurePeerTimeout
	FailurePeerCandidates
	FailurePeerAdmission
	FailurePeerPolicy
	FailurePeerBusy
	FailurePeerSignaling
	FailurePeerCanceled
	FailurePeerStopped
	FailurePeerConfiguration
	FailurePeerOperationMissing
	FailurePeerEventCapacity
	FailurePeerShutdown
	FailurePeerChannelDrain
	FailurePeerProtocol

	FailureSourceUnavailable
	FailureSourceRevisionChanged
	FailureSourceRevisionInvalidated
	FailureSourcePermanent
	FailureSourceMissing
	FailureSourceAccessDenied
	FailureSourceUnsupported
	FailureSourceOmitted
	FailureCatalogUnavailable
	FailureCatalogDirectoryStale
	FailureCatalogInvalidGeneration
	FailureSessionTransport
	FailureSessionProtocol
	FailureSessionResourceBudget
	FailureSessionDependencyContract
	FailureOutputStateIO
	FailureOutputOwnership
	FailureOutputNamespaceUnsafe
	FailureOutputUnsupportedFilesystem
	FailureOutputDirectoryBinding
	FailureOutputDirectoryMetadata
	FailureOutputFileAlreadyActive
	FailureOutputResourceBudget
	FailureOutputMutationAmbiguous
	FailureOutputContract
	FailureOutputOperationAlreadyRunning
	FailureOutputNeedsAttention
	FailureDestinationCollision
	FailureCheckpointRevisionConflict
	FailureCheckpointInvalid
	FailureOwnedObjectUnknown
	FailureCheckpointBusy
	FailureCheckpointCorruptRecord
	FailureCheckpointUnsafeInstall
	FailureCheckpointOwnershipMismatch
	FailureCheckpointStateIO
	FailureOutputRecoveryUnavailable
	FailureRetainedOutputMissing
	FailureRelayRouteNotFound
)

func (FailureCode) MessageKey

func (code FailureCode) MessageKey() (SafeMessageKey, bool)

func (FailureCode) Name

func (code FailureCode) Name() (string, bool)

type Fallback

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

func NewFallback

func NewFallback(workflow Workflow, from, to Transport, failure Failure) (Fallback, error)

func (Fallback) EngineEvent

func (Fallback) EngineEvent()

func (Fallback) Failure

func (value Fallback) Failure() Failure

func (Fallback) From

func (value Fallback) From() Transport

func (Fallback) Level

func (Fallback) Level() Level

func (Fallback) To

func (value Fallback) To() Transport

func (Fallback) Validate

func (value Fallback) Validate() error

func (Fallback) Workflow

func (value Fallback) Workflow() Workflow

type FaultContext

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

func NewFaultContext

func NewFaultContext(domain FaultDomain, scope FaultScope, code uint16) (FaultContext, error)

func (FaultContext) Code

func (context FaultContext) Code() uint16

func (FaultContext) Domain

func (context FaultContext) Domain() FaultDomain

func (FaultContext) Scope

func (context FaultContext) Scope() FaultScope

func (FaultContext) Valid

func (context FaultContext) Valid() bool

type FaultDomain

type FaultDomain uint8
const (
	FaultSource FaultDomain = iota + 1
	FaultCatalog
	FaultSession
	FaultOutput
	FaultCheckpoint
)

func (FaultDomain) Name

func (value FaultDomain) Name() (string, bool)

type FaultScope

type FaultScope uint8
const (
	FaultFileLocal FaultScope = iota + 1
	FaultDirectoryLocal
	FaultOutputPause
	FaultSessionTerminal
)

func (FaultScope) Name

func (value FaultScope) Name() (string, bool)

type FileOutcomes

type FileOutcomes struct {
	DownloadedFiles          uint64
	ResumedFiles             uint64
	PreviouslyPublishedFiles uint64
	PausedFiles              uint64
	CollisionFiles           uint64
	ItemBlockedFiles         uint64
	RevisionConflictFiles    uint64
	CheckpointInvalidFiles   uint64
	OwnedObjectUnknownFiles  uint64
	FailedFiles              uint64
	ModifiedTimeWarnings     uint64
}

func (FileOutcomes) HasNonSuccess

func (outcomes FileOutcomes) HasNonSuccess() bool

type LaneAdopted

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

func NewLaneAdopted

func NewLaneAdopted(
	workflow Workflow,
	session ProtocolSessionID,
	lane LaneIdentity,
	transport Transport,
) (LaneAdopted, error)

func (LaneAdopted) EngineEvent

func (LaneAdopted) EngineEvent()

func (LaneAdopted) Lane

func (value LaneAdopted) Lane() LaneIdentity

func (LaneAdopted) Level

func (LaneAdopted) Level() Level

func (LaneAdopted) ProtocolSessionID

func (value LaneAdopted) ProtocolSessionID() ProtocolSessionID

func (LaneAdopted) Transport

func (value LaneAdopted) Transport() Transport

func (LaneAdopted) Validate

func (value LaneAdopted) Validate() error

func (LaneAdopted) Workflow

func (value LaneAdopted) Workflow() Workflow

type LaneIdentity

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

func NewLaneIdentity

func NewLaneIdentity(id, epoch uint32) (LaneIdentity, error)

func (LaneIdentity) Epoch

func (identity LaneIdentity) Epoch() uint32

func (LaneIdentity) ID

func (identity LaneIdentity) ID() uint32

func (LaneIdentity) Valid

func (identity LaneIdentity) Valid() bool

type Level

type Level uint8
const (
	LevelDebug Level = iota + 1
	LevelInfo
	LevelWarning
	LevelError
)

func (Level) Name

func (value Level) Name() (string, bool)

type ObservationRejection

type ObservationRejection struct {
	Event            string
	Source           string
	Stage            string
	Field            string
	Rule             string
	Session          string
	Operation        string
	Revision         string
	ResponseSequence string
	AttemptSequence  string
	// contains filtered or unexported fields
}

func CaptureObservationRejection

func CaptureObservationRejection(context ObservationRejection, fields ...RejectionField) ObservationRejection

func (ObservationRejection) Evidence

func (value ObservationRejection) Evidence() []RejectionField

func (ObservationRejection) OmittedBytes

func (value ObservationRejection) OmittedBytes() uint64

func (ObservationRejection) OmittedFields

func (value ObservationRejection) OmittedFields() uint64

func (ObservationRejection) Truncated

func (value ObservationRejection) Truncated() bool

func (ObservationRejection) Valid

func (value ObservationRejection) Valid() bool

type ObserverLossCategory

type ObserverLossCategory uint8
const (
	ObserverLossRelayLifecycle ObserverLossCategory = iota + 1
	ObserverLossWebRTCLifecycle
	ObserverLossSenderAttempt
	ObserverLossReceiverTermination
	ObserverLossLaneSettlement
	ObserverLossProtocolOperation
	ObserverLossTransferLifecycle
	ObserverLossOutputDiagnostic
	ObserverLossCatalogStorage
	ObserverLossRootPrefetch
	ObserverLossSenderTerminalSend
	ObserverLossSenderSessionTerminal
	ObserverLossSenderCapacity
	ObserverLossSenderRevision
	ObserverLossCommandAdapter
	ObserverLossNativeConnectivity
	ObserverLossEngineObservation
	ObserverLossCategoryLimit
)

func (ObserverLossCategory) Name

func (value ObserverLossCategory) Name() (string, bool)

type ObserverLossObserved

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

func NewObserverLossObserved

func NewObserverLossObserved(spec ObserverLossSpec) (ObserverLossObserved, error)

func (ObserverLossObserved) Category

func (value ObserverLossObserved) Category() ObserverLossCategory

func (ObserverLossObserved) Count

func (value ObserverLossObserved) Count() uint64

func (ObserverLossObserved) EngineEvent

func (ObserverLossObserved) EngineEvent()

func (ObserverLossObserved) Level

func (ObserverLossObserved) Level() Level

func (ObserverLossObserved) OmittedSamples

func (value ObserverLossObserved) OmittedSamples() uint64

func (ObserverLossObserved) Reason

func (ObserverLossObserved) Rejection

func (value ObserverLossObserved) Rejection() (ObservationRejection, bool)

func (ObserverLossObserved) Validate

func (value ObserverLossObserved) Validate() error

func (ObserverLossObserved) Workflow

func (value ObserverLossObserved) Workflow() Workflow

type ObserverLossReason

type ObserverLossReason uint8
const (
	ObserverLossUnknownEnum ObserverLossReason = iota + 1
	ObserverLossInvalidIdentity
	ObserverLossInvalidStageFields
	ObserverLossEventContract
	ObserverLossAdapterCapacityTimeout
	ObserverLossTraceQueue
	ObserverLossRecorderClosed
	ObserverLossStreamCapacity
	ObserverLossReaderNotJoined
	ObserverLossPathCapacity
	ObserverLossCleanupResidue
	ObserverLossReasonLimit
)

func (ObserverLossReason) IsContractRejection

func (value ObserverLossReason) IsContractRejection() bool

func (ObserverLossReason) Name

func (value ObserverLossReason) Name() (string, bool)

type ObserverLossSpec

type ObserverLossSpec struct {
	Workflow       Workflow
	Category       ObserverLossCategory
	Reason         ObserverLossReason
	Count          uint64
	OmittedSamples uint64
	Rejection      ObservationRejection
}

type PeerAttemptID

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

func NewPeerAttemptID

func NewPeerAttemptID(raw []byte) (PeerAttemptID, error)

func (PeerAttemptID) Bytes

func (id PeerAttemptID) Bytes() []byte

func (PeerAttemptID) Hex

func (id PeerAttemptID) Hex() string

func (PeerAttemptID) Valid

func (id PeerAttemptID) Valid() bool

type PeerPathID

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

func NewPeerPathID

func NewPeerPathID(raw []byte) (PeerPathID, error)

func (PeerPathID) Bytes

func (id PeerPathID) Bytes() []byte

func (PeerPathID) Hex

func (id PeerPathID) Hex() string

func (PeerPathID) Valid

func (id PeerPathID) Valid() bool

type ProgressSnapshot

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

func NewProgressSnapshot

func NewProgressSnapshot(spec ProgressSpec) (ProgressSnapshot, error)

func (ProgressSnapshot) CapacityAccumulatedWait

func (snapshot ProgressSnapshot) CapacityAccumulatedWait() time.Duration

func (ProgressSnapshot) CapacityActiveWaiters

func (snapshot ProgressSnapshot) CapacityActiveWaiters() uint32

func (ProgressSnapshot) CapacityWaitAttempts

func (snapshot ProgressSnapshot) CapacityWaitAttempts() uint64

func (ProgressSnapshot) CapacityWaitVisible

func (snapshot ProgressSnapshot) CapacityWaitVisible() bool

func (ProgressSnapshot) CompletedBytes

func (snapshot ProgressSnapshot) CompletedBytes() uint64

func (ProgressSnapshot) CountersExact

func (snapshot ProgressSnapshot) CountersExact() bool

func (ProgressSnapshot) DiscoveredBytes

func (snapshot ProgressSnapshot) DiscoveredBytes() uint64

func (ProgressSnapshot) DiscoveredFiles

func (snapshot ProgressSnapshot) DiscoveredFiles() uint64

func (ProgressSnapshot) Discovery

func (snapshot ProgressSnapshot) Discovery() DiscoveryStatus

func (ProgressSnapshot) FileOutcomes

func (snapshot ProgressSnapshot) FileOutcomes() FileOutcomes

func (ProgressSnapshot) NewlyVerifiedBytes

func (snapshot ProgressSnapshot) NewlyVerifiedBytes() uint64

func (ProgressSnapshot) PreviouslyPublishedBytes

func (snapshot ProgressSnapshot) PreviouslyPublishedBytes() uint64

func (ProgressSnapshot) PublishedBytes

func (snapshot ProgressSnapshot) PublishedBytes() uint64

func (ProgressSnapshot) PublishedFiles

func (snapshot ProgressSnapshot) PublishedFiles() uint64

func (ProgressSnapshot) RestartReusableBytes

func (snapshot ProgressSnapshot) RestartReusableBytes() uint64

func (ProgressSnapshot) SourceOmittedEntries

func (snapshot ProgressSnapshot) SourceOmittedEntries() uint64

func (ProgressSnapshot) Valid

func (snapshot ProgressSnapshot) Valid() bool

func (ProgressSnapshot) VerifiedBytes

func (snapshot ProgressSnapshot) VerifiedBytes() uint64

type ProgressSpec

type ProgressSpec struct {
	SourceOmittedEntries     uint64
	DiscoveredFiles          uint64
	DiscoveredBytes          uint64
	PublishedFiles           uint64
	PublishedBytes           uint64
	PreviouslyPublishedBytes uint64
	VerifiedBytes            uint64
	NewlyVerifiedBytes       uint64
	RestartReusableBytes     uint64
	FileOutcomes             FileOutcomes
	// Capacity pressure is receiver scheduling state, not file settlement, so it
	// must remain outside the exact counter relationships above.
	CapacityActiveWaiters   uint32
	CapacityAccumulatedWait time.Duration
	CapacityWaitAttempts    uint64
	CapacityWaitVisible     bool
	Discovery               DiscoveryStatus
	CountersExact           bool
}

type ProtocolOperationID

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

func NewProtocolOperationID

func NewProtocolOperationID(raw []byte) (ProtocolOperationID, error)

func (ProtocolOperationID) Bytes

func (id ProtocolOperationID) Bytes() []byte

func (ProtocolOperationID) Hex

func (id ProtocolOperationID) Hex() string

func (ProtocolOperationID) Valid

func (id ProtocolOperationID) Valid() bool

type ProtocolSessionID

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

func NewProtocolSessionID

func NewProtocolSessionID(raw []byte) (ProtocolSessionID, error)

func (ProtocolSessionID) Bytes

func (id ProtocolSessionID) Bytes() []byte

func (ProtocolSessionID) Hex

func (id ProtocolSessionID) Hex() string

func (ProtocolSessionID) Valid

func (id ProtocolSessionID) Valid() bool

type Ready

type Ready struct{}

func NewReady

func NewReady() Ready

func (Ready) EngineEvent

func (Ready) EngineEvent()

func (Ready) Level

func (Ready) Level() Level

func (Ready) Validate

func (value Ready) Validate() error

func (Ready) Workflow

func (Ready) Workflow() Workflow

type ReceiveOperationID

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

func NewReceiveOperationID

func NewReceiveOperationID(raw []byte) (ReceiveOperationID, error)

func (ReceiveOperationID) Bytes

func (id ReceiveOperationID) Bytes() []byte

func (ReceiveOperationID) Hex

func (id ReceiveOperationID) Hex() string

func (ReceiveOperationID) Valid

func (id ReceiveOperationID) Valid() bool

type RejectionField

type RejectionField struct {
	Field          string
	Representation string
	Value          string
	// contains filtered or unexported fields
}

func RejectedBool

func RejectedBool(field string, value bool) RejectionField

func RejectedEnum

func RejectedEnum(field string, value uint64) RejectionField

func RejectedIdentity

func RejectedIdentity(field string, value []byte) RejectionField

func RejectedString

func RejectedString(field, value string) RejectionField

func RejectedUint

func RejectedUint(field string, value uint64) RejectionField

type RelayAvailability

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

func NewRelayAvailability

func NewRelayAvailability(available, total, terminal uint32, everReady bool) (RelayAvailability, error)

func (RelayAvailability) Available

func (value RelayAvailability) Available() uint32

func (RelayAvailability) EngineEvent

func (RelayAvailability) EngineEvent()

func (RelayAvailability) EverReady

func (value RelayAvailability) EverReady() bool

func (RelayAvailability) Level

func (RelayAvailability) Level() Level

func (RelayAvailability) Terminal

func (value RelayAvailability) Terminal() uint32

func (RelayAvailability) Total

func (value RelayAvailability) Total() uint32

func (RelayAvailability) Validate

func (value RelayAvailability) Validate() error

func (RelayAvailability) Workflow

func (RelayAvailability) Workflow() Workflow

type RelayConnected

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

func NewRelayConnected

func NewRelayConnected(workflow Workflow, origin RelayOrigin) (RelayConnected, error)

func (RelayConnected) EngineEvent

func (RelayConnected) EngineEvent()

func (RelayConnected) Level

func (RelayConnected) Level() Level

func (RelayConnected) Origin

func (value RelayConnected) Origin() RelayOrigin

func (RelayConnected) Validate

func (value RelayConnected) Validate() error

func (RelayConnected) Workflow

func (value RelayConnected) Workflow() Workflow

type RelayOrigin

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

Origins omit routes and credentials so observations cannot become dial endpoints.

func NewRelayOrigin

func NewRelayOrigin(scheme RelayScheme, host string, port uint16) (RelayOrigin, error)

func (RelayOrigin) Host

func (origin RelayOrigin) Host() string

func (RelayOrigin) Port

func (origin RelayOrigin) Port() uint16

func (RelayOrigin) Scheme

func (origin RelayOrigin) Scheme() RelayScheme

func (RelayOrigin) Valid

func (origin RelayOrigin) Valid() bool

type RelayRecovering

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

func NewRelayRecovering

func NewRelayRecovering(
	workflow Workflow,
	origin RelayOrigin,
	attempt uint32,
	state RelayRecoveryState,
	failure Failure,
) (RelayRecovering, error)

func NewRelayRecoveryObservation

func NewRelayRecoveryObservation(workflow Workflow, origin RelayOrigin, attempt uint32, state RelayRecoveryState, failure Failure, details RelayRecoveryDetails) (RelayRecovering, error)

func (RelayRecovering) Attempt

func (value RelayRecovering) Attempt() uint32

func (RelayRecovering) Details

func (event RelayRecovering) Details() (RelayRecoveryDetails, bool)

func (RelayRecovering) EngineEvent

func (RelayRecovering) EngineEvent()

func (RelayRecovering) Failure

func (value RelayRecovering) Failure() (Failure, bool)

func (RelayRecovering) Level

func (value RelayRecovering) Level() Level

func (RelayRecovering) Origin

func (value RelayRecovering) Origin() RelayOrigin

func (RelayRecovering) State

func (value RelayRecovering) State() RelayRecoveryState

func (RelayRecovering) Validate

func (value RelayRecovering) Validate() error

func (RelayRecovering) Workflow

func (value RelayRecovering) Workflow() Workflow

type RelayRecoveryDetails

type RelayRecoveryDetails struct {
	WaitReason        RelayWaitReason
	Authorization     serviceauthority.AdmissionState
	ShareInstance     SharingInstanceID
	Generation        uint64
	Slow              bool
	Resume            bool
	Terminal          bool
	NextDelay         time.Duration
	ProtocolSessionID ProtocolSessionID
}

type RelayRecoveryState

type RelayRecoveryState uint8
const (
	RelayRecoveryStarted RelayRecoveryState = iota + 1
	RelayRecoverySucceeded
	RelayRecoveryFailed
	RelayRecoveryWaiting
)

func (RelayRecoveryState) Name

func (state RelayRecoveryState) Name() (string, bool)

type RelayScheme

type RelayScheme uint8
const (
	RelayWS RelayScheme = iota + 1
	RelayWSS
)

func (RelayScheme) Name

func (scheme RelayScheme) Name() (string, bool)

type RelayWaitReason

type RelayWaitReason uint8
const (
	RelayWaitConnection RelayWaitReason = iota
	RelayWaitBandwidth
)

func (RelayWaitReason) Name

func (reason RelayWaitReason) Name() string

type SafeMessageKey

type SafeMessageKey uint8
const (
	MessageUnexpected SafeMessageKey = iota + 1
	MessageInterrupted
	MessageTimedOut
	MessageInvalidRequest
	MessageNetworkUnavailable
	MessageCapabilityInvalid
	MessageSelectionMissing
	MessageRelayRejected
	MessageRelayUnavailable
	MessageShareUnavailable
	MessageDirectUnavailable
	MessageDirectPolicy
	MessageDirectBusy
	MessageDirectAdmission
	MessageSourceUnavailable
	MessageSourceMissing
	MessageSourceAccessDenied
	MessageSourceUnsupported
	MessageSourceOmitted
	MessageSourceChanged
	MessageCatalogUnavailable
	MessageSessionFailed
	MessageOutputFailed
	MessageCheckpointFailed
	MessagePublicationFailed
	MessageTraceIncomplete
	MessageTraceExists
	MessageOutputNeedsAttention
	MessageDestinationCollision
	MessageCheckpointRevisionConflict
	MessageCheckpointInvalid
	MessageOwnedObjectUnknown
	MessageOutputRecoveryUnavailable
	MessageRetainedOutputMissing
	MessageSelectionCollision
	MessageShareStopped
	MessageOutputBusy
	MessageOutputOperationAlreadyRunning
	MessageRelayRouteNotFound
)

func (SafeMessageKey) Name

func (value SafeMessageKey) Name() (string, bool)

type SelectionCollision

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

func (SelectionCollision) FirstPath

func (collision SelectionCollision) FirstPath() DisplayPath

func (SelectionCollision) SecondPath

func (collision SelectionCollision) SecondPath() DisplayPath

func (SelectionCollision) Valid

func (collision SelectionCollision) Valid() bool

type SharingInstanceID

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

func NewSharingInstanceID

func NewSharingInstanceID(raw []byte) (SharingInstanceID, error)

func (SharingInstanceID) Bytes

func (id SharingInstanceID) Bytes() []byte

func (SharingInstanceID) Valid

func (id SharingInstanceID) Valid() bool

type SharingSubject

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

func NewDirectorySubject

func NewDirectorySubject(name DisplayName) (SharingSubject, error)

func NewFileSubject

func NewFileSubject(name DisplayName, size uint64) (SharingSubject, error)

func NewMultipleSubject

func NewMultipleSubject(selectedItems uint64) (SharingSubject, error)

func (SharingSubject) FileBytes

func (subject SharingSubject) FileBytes() uint64

func (SharingSubject) Kind

func (subject SharingSubject) Kind() SharingSubjectKind

func (SharingSubject) Name

func (subject SharingSubject) Name() DisplayName

func (SharingSubject) SelectedItems

func (subject SharingSubject) SelectedItems() uint64

func (SharingSubject) Valid

func (subject SharingSubject) Valid() bool

type SharingSubjectKind

type SharingSubjectKind uint8
const (
	SharingFile SharingSubjectKind = iota + 1
	SharingDirectory
	SharingMultiple
)

func (SharingSubjectKind) Name

func (kind SharingSubjectKind) Name() (string, bool)

type SharingSubjectSelected

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

func NewSharingSubjectSelected

func NewSharingSubjectSelected(subject SharingSubject) (SharingSubjectSelected, error)

func (SharingSubjectSelected) EngineEvent

func (SharingSubjectSelected) EngineEvent()

func (SharingSubjectSelected) Level

func (SharingSubjectSelected) Level() Level

func (SharingSubjectSelected) Subject

func (value SharingSubjectSelected) Subject() SharingSubject

func (SharingSubjectSelected) Validate

func (value SharingSubjectSelected) Validate() error

func (SharingSubjectSelected) Workflow

func (SharingSubjectSelected) Workflow() Workflow

type SourceOmissionsObserved

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

func NewSourceOmissionsObserved

func NewSourceOmissionsObserved(summary catalog.SourceOmissions) (SourceOmissionsObserved, error)

func (SourceOmissionsObserved) EngineEvent

func (SourceOmissionsObserved) EngineEvent()

func (SourceOmissionsObserved) Level

func (SourceOmissionsObserved) Summary

func (SourceOmissionsObserved) Validate

func (value SourceOmissionsObserved) Validate() error

func (SourceOmissionsObserved) Workflow

func (SourceOmissionsObserved) Workflow() Workflow

type TransferJobID

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

func NewTransferJobID

func NewTransferJobID(raw []byte) (TransferJobID, error)

func (TransferJobID) Bytes

func (id TransferJobID) Bytes() []byte

func (TransferJobID) Hex

func (id TransferJobID) Hex() string

func (TransferJobID) Valid

func (id TransferJobID) Valid() bool

type TransferProgress

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

func NewTransferProgress

func NewTransferProgress(
	receiveOperation ReceiveOperationID,
	transferJob TransferJobID,
	snapshot ProgressSnapshot,
) (TransferProgress, error)

func (TransferProgress) EngineEvent

func (TransferProgress) EngineEvent()

func (TransferProgress) Level

func (TransferProgress) Level() Level

func (TransferProgress) ReceiveOperationID

func (value TransferProgress) ReceiveOperationID() ReceiveOperationID

func (TransferProgress) Snapshot

func (value TransferProgress) Snapshot() ProgressSnapshot

func (TransferProgress) TransferJobID

func (value TransferProgress) TransferJobID() TransferJobID

func (TransferProgress) Validate

func (value TransferProgress) Validate() error

func (TransferProgress) Workflow

func (TransferProgress) Workflow() Workflow

type Transport

type Transport uint8
const (
	TransportRelay Transport = iota + 1
	TransportWebRTC
)

func (Transport) Name

func (value Transport) Name() (string, bool)

func (Transport) Valid

func (value Transport) Valid() bool

type Warning

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

func NewWarning

func NewWarning(workflow Workflow, failure Failure) (Warning, error)

func (Warning) EngineEvent

func (Warning) EngineEvent()

func (Warning) Failure

func (value Warning) Failure() Failure

func (Warning) Level

func (Warning) Level() Level

func (Warning) Validate

func (value Warning) Validate() error

func (Warning) Workflow

func (value Warning) Workflow() Workflow

type Workflow

type Workflow uint8
const (
	WorkflowShare Workflow = iota + 1
	WorkflowReceive
)

func (Workflow) Name

func (w Workflow) Name() (string, bool)

func (Workflow) Valid

func (w Workflow) Valid() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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