client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Code generated generate_clients.go. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreUnexported

func IgnoreUnexported() cmp.Option

func NamespaceInterceptor

func NamespaceInterceptor(namespace string) connect.UnaryInterceptorFunc

Types

type Client

type Client interface {
	Apiv1() Apiv1
}

func New

func New(config *DialConfig) (Client, error)

type ClientCall

type ClientCall struct {
	WantRequest  proto.Message
	WantResponse func() connect.AnyResponse
	WantError    *connect.Error
}

type DialConfig

type DialConfig struct {
	BaseURL string
	Token   string

	Namespace string

	// Optional client Interceptors
	Interceptors []connect.Interceptor

	UserAgent string

	Transport http.RoundTripper

	Log *slog.Logger
}

DialConfig is the configuration to create an tenant-apiserver connection

func (*DialConfig) HttpClient

func (d *DialConfig) HttpClient() *http.Client

type TestClientInterceptor

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

func NewTestInterceptor

func NewTestInterceptor(t *testing.T, calls []ClientCall) *TestClientInterceptor

func (*TestClientInterceptor) WrapStreamingClient

func (*TestClientInterceptor) WrapStreamingHandler

func (*TestClientInterceptor) WrapUnary

Jump to

Keyboard shortcuts

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