pluginhost

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallError

type CallError struct {
	Response protocol.ResponseError
}

func (*CallError) Error

func (e *CallError) Error() string

func (*CallError) PartialOutputs

func (e *CallError) PartialOutputs() map[string]any

func (*CallError) Redact

func (e *CallError) Redact(redact func(string) string) *CallError

func (*CallError) TheaterCode

func (e *CallError) TheaterCode() string

type NotificationSink

type NotificationSink interface {
	Log(protocol.LogParams)
	Progress(protocol.ProgressParams)
}

type OpenConfig

type OpenConfig struct {
	Mode                protocol.SessionMode
	AllowedCapabilities []string
	SessionConfig       map[string]any
}

type Session

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

func (*Session) Call

func (s *Session) Call(ctx context.Context, method string, params any, sink NotificationSink, result any) error

func (*Session) Close

func (s *Session) Close(ctx context.Context) error

func (*Session) RedactText added in v0.2.0

func (s *Session) RedactText(text string) string

Jump to

Keyboard shortcuts

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