testserver

package
v0.0.0-...-4a8ad3d Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestServer

type TestServer struct {
	Server   *httptest.Server // For HTTP transport only
	DB       *sqlite.DB
	Token    string
	TenantID string
	Mode     TransportMode
	// contains filtered or unexported fields
}

func New

func New(t *testing.T, token, tenantID string) *TestServer

func NewWithTransport

func NewWithTransport(t *testing.T, token, tenantID string, mode TransportMode) *TestServer

func (*TestServer) AddAPIKey

func (ts *TestServer) AddAPIKey(token, tenantID string) error

type TransportMode

type TransportMode string
const (
	TransportHTTP  TransportMode = "http"
	TransportStdio TransportMode = "stdio"
)

Jump to

Keyboard shortcuts

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