rpc

package
v2025.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package rpc provides an internal RPC client for CLI-to-server communication. It handles configuration loading with environment variable substitution, flag override parsing, config file includes, and network dialing via the Goridge protocol. This package is for internal use only and should be kept in sync with the RPC plugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dialer

func Dialer(addr string) (net.Conn, error)

Dialer creates rpc socket Dialer.

func ExpandVal

func ExpandVal(s string, mapping func(string) string) string

ExpandVal replaces ${var} or $var in the string based on the mapping function. For example, os.ExpandEnv(s) is equivalent to os.Expand(s, os.Getenv).

func NewClient

func NewClient(cfg string, flags []string) (*rpc.Client, error)

NewClient creates client ONLY for internal usage (communication between our application with RR side). Client will be connected to the RPC.

Types

This section is empty.

Jump to

Keyboard shortcuts

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