Help us shape the future of Go! Take the 2026 Go Developer Survey

bridge

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package bridge adapts an existing Orb runtime to Bridge without owning its lifetime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Attachment

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

func Attach

func Attach(lifetime context.Context, host Host, options Options) (*Attachment, error)

func (*Attachment) Close

func (a *Attachment) Close() error

func (*Attachment) Invoke

func (a *Attachment) Invoke(ctx context.Context, method string, params json.RawMessage) (json.RawMessage, error)

func (*Attachment) SetGeneration

func (a *Attachment) SetGeneration(generation string) error

type Host

Host is the local non-owning attachment boundary shared by the SDK runtime and Orb's existing interactive host. It intentionally has no Dispose method.

type Options

type Options struct {
	Status      func(*runtime.AgentSession) string
	InstanceID  string
	Store       bridge.Store
	Authorize   func(bridge.Request) bool
	LedgerQuota int
}

Directories

Path Synopsis
Package tool exposes independently opt-in, source-attributed bridge tools.
Package tool exposes independently opt-in, source-attributed bridge tools.

Jump to

Keyboard shortcuts

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