rpc

package
v0.27.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Overview

Package rpc wraps Connect clients that call prosa-server, pre-injecting "Authorization: Admin <token>" so callers never need to remember it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Code

func Code(err error) connect.Code

Code wraps connect.CodeOf for convenience in handlers that want to decide whether to retry vs surface an error verbatim.

Types

type Clients

Clients bundles every server RPC the panel calls.

func New

func New(serverURL, adminToken string) *Clients

New builds a Clients tied to serverURL, attaching the admin token on every request via an HTTP RoundTripper.

Jump to

Keyboard shortcuts

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