connectrpc

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Carrier

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

func NewCarrier

func NewCarrier(logger *slog.Logger) *Carrier

func (*Carrier) Intercept

func (ca *Carrier) Intercept() connect.UnaryInterceptorFunc

type ConnectServer

type ConnectServer interface {
	GetGlobalInterceptors() []connect.Interceptor
	Register(string, http.Handler)
	Serve()
}

func NewConnectRPCServer

func NewConnectRPCServer(lc fx.Lifecycle, opt Option, logger *slog.Logger) ConnectServer

type Option

type Option struct {
	Addr     string `json:"addr" yaml:"addr" toml:"addr"`
	CertFile string `json:"cert_file" toml:"cert_file" yaml:"cert_file"`
	KeyFile  string `json:"key_file" toml:"key_file" yaml:"key_file"`
}

Jump to

Keyboard shortcuts

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