rpcbind

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package rpcbind composes core with rpc: core's error codes, redaction and the methods exposed over the Local API. core does not depend on rpc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expose

func Expose(method string) bool

Expose picks the *core.Service methods callable over RPC: every exported one but Close, Redact, AuditExternal, SenderAvatar and the test hooks.

func Listen

func Listen(dataDir string, svc *core.Service, version string) (*rpc.Server, error)

Listen serves svc's exposed methods on <dataDir>/godwit.sock (see rpc.Listen; the caller holds the owner lock). Errors go out through NewCodec; the API token and svc's secrets are redacted from them and from the log. Sends by the full role and drafts by the mcp role are audited before they are dispatched.

func NewCodec

func NewCodec() *rpc.Codec

NewCodec registers core's error types (tried first, so *ai.Error with Code canceled stays an *ai.Error) and sentinels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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