ingress

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 22 Imported by: 1 module, 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

Overview

Package ingress normalizes authenticated external content into typed graph observations and explicit retained-media requests. It is a gateway boundary, not a wire-protocol parser: transports translate their events before these ports and cannot choose provenance by setting an authority field.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachmentHandleType

func AttachmentHandleType() element.Type

func ContentCancelType

func ContentCancelType() element.Type

func Descriptors

func Descriptors() []element.Descriptor

func FactoryRegistrations

func FactoryRegistrations() ([]graphruntime.FactoryRegistration, error)

func ObservationType

func ObservationType() element.Type

func OutcomeType

func OutcomeType() element.Type

func RegisterDescriptors

func RegisterDescriptors(catalog *resolve.Catalog) error

func RegisterFactories

func RegisterFactories(registry *graphruntime.Registry) error

func UserAttachmentType

func UserAttachmentType() element.Type

func UserContentDescriptor

func UserContentDescriptor() element.Descriptor

UserContentDescriptor keeps modality and activation explicit while sharing only the state needed to join retention replies to their originating turn. It never parses files or narrates images; those choices remain downstream.

func UserFileType

func UserFileType() element.Type

func UserImageType

func UserImageType() element.Type

func UserTextType

func UserTextType() element.Type

Types

type ContentCancel

type ContentCancel struct {
	ContentID string `json:"content_id,omitempty"`
	StreamID  string `json:"stream_id,omitempty"`
	Reason    string `json:"reason,omitempty"`
}

ContentCancel addresses content within the envelope's exact session. A StreamID cancels all revisions while its bounded cancellation record remains retained, including revisions arriving after pending retention finishes. A ContentID cancels one pending or next matching content request. If both are supplied, the content lookup takes precedence for pending work and the stream cancellation also remains recorded. New requests use new stream identities. RunID/CancellationScope is a content-ID fallback only without explicit IDs.

type Outcome

type Outcome struct {
	Kind           OutcomeKind `json:"kind"`
	Operation      string      `json:"operation"`
	ContentID      string      `json:"content_id,omitempty"`
	StreamID       string      `json:"stream_id,omitempty"`
	SourceRevision uint64      `json:"source_revision,omitempty"`
	Handle         string      `json:"handle,omitempty"`
	Code           string      `json:"code,omitempty"`
	Message        string      `json:"message,omitempty"`
	FinishedNS     uint64      `json:"finished_ns,omitempty"`
}

type OutcomeKind

type OutcomeKind string
const (
	OutcomeSucceeded OutcomeKind = "succeeded"
	OutcomeCanceled  OutcomeKind = "canceled"
	OutcomeRefused   OutcomeKind = "refused"
	OutcomeFailed    OutcomeKind = "failed"
	OutcomeIgnored   OutcomeKind = "ignored"
)

type UserAttachment

type UserAttachment struct {
	ContentID      string `json:"content_id,omitempty"`
	StreamID       string `json:"stream_id,omitempty"`
	Name           string `json:"name,omitempty"`
	Caption        string `json:"caption,omitempty"`
	MIMEType       string `json:"mime_type"`
	Content        []byte `json:"-"`
	SHA256         string `json:"sha256,omitempty"`
	SourceRevision uint64 `json:"source_revision"`
	CapturedNS     uint64 `json:"captured_ns,omitempty"`
}

UserAttachment covers non-image, non-file content without weakening those two contracts. Kind remains media.AttachmentOther after retention.

type UserContentConfig

type UserContentConfig struct {
	Observer         string `json:"observer,omitempty"`
	TextSource       string `json:"text_source,omitempty"`
	AttachmentSource string `json:"attachment_source,omitempty"`
	RetentionScope   string `json:"retention_scope,omitempty"`
	MaxTextBytes     int    `json:"max_text_bytes,omitempty"`
	MaxMetadataBytes int    `json:"max_metadata_bytes,omitempty"`
	MaxInputBytes    int    `json:"max_input_bytes,omitempty"`
	MaxPending       int    `json:"max_pending,omitempty"`
	MaxPendingBytes  int    `json:"max_pending_bytes,omitempty"`
	MaxStreams       int    `json:"max_streams,omitempty"`
	TerminalMemory   int    `json:"terminal_memory,omitempty"`
}

type UserFile

type UserFile struct {
	ContentID      string `json:"content_id,omitempty"`
	StreamID       string `json:"stream_id,omitempty"`
	Name           string `json:"name"`
	Caption        string `json:"caption,omitempty"`
	MIMEType       string `json:"mime_type"`
	Content        []byte `json:"-"`
	SHA256         string `json:"sha256,omitempty"`
	SourceRevision uint64 `json:"source_revision"`
	CapturedNS     uint64 `json:"captured_ns,omitempty"`
}

type UserImage

type UserImage struct {
	ContentID      string `json:"content_id,omitempty"`
	StreamID       string `json:"stream_id,omitempty"`
	Caption        string `json:"caption,omitempty"`
	MIMEType       string `json:"mime_type"`
	Content        []byte `json:"-"`
	SHA256         string `json:"sha256,omitempty"`
	Width          int    `json:"width"`
	Height         int    `json:"height"`
	SourceRevision uint64 `json:"source_revision"`
	CapturedNS     uint64 `json:"captured_ns,omitempty"`
}

type UserText

type UserText struct {
	ContentID  string `json:"content_id,omitempty"`
	StreamID   string `json:"stream_id,omitempty"`
	Text       string `json:"text"`
	StableText string `json:"stable_text,omitempty"`
	Language   string `json:"language,omitempty"`
	Revision   uint64 `json:"revision"`
	Supersedes uint64 `json:"supersedes,omitempty"`
	Final      bool   `json:"final,omitempty"`
}

UserText is authenticated participant text. Authority is intentionally not a payload field: only a gateway edge selected by topology may feed this type.

Jump to

Keyboard shortcuts

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