rest

package
v0.0.0-...-dfb39b5 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SCHEMA = "restapi"
)

Variables

This section is empty.

Functions

func Dialect

func Dialect() *apiDialect

func RunnerFromConnection

func RunnerFromConnection(conn *systemTypes.Connection, connectionID uint64) (*restAPIWrapper, error)

RunnerFromConnection builds a transient restAPIWrapper from a resolved Connection without persisting anything to the DAL. Used for pre-enable health checks. connectionID is used to register credentials in the cred_registry so that OAuth2 token fetching works; pass 0 to skip registration.

Types

type ClientConfig

type ClientConfig struct {
	BaseURL             url.URL
	Timeout             time.Duration
	MaxIdleConns        int
	MaxIdleConnsPerHost int
	IdleConnTimeout     time.Duration
	Headers             map[string][]string

	DSN dal.DSN
}

ClientConfig holds configuration for creating a new Client

Jump to

Keyboard shortcuts

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