common

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package common gathers what is shared by the different kinds of datasource proxy (HTTP, SQL).

Index

Constants

View Source
const (
	// DatasourceFieldLog is the log field holding the name of the datasource.
	DatasourceFieldLog = "datasource"
	// ProjectFieldLog is the log field holding the project of the datasource (see ProjectForLog).
	ProjectFieldLog = "project"
)

Variables

This section is empty.

Functions

func ProjectForLog

func ProjectForLog(project string) string

ProjectForLog returns a meaningful log value for the project field. For global datasources (where project is empty), it returns "<global>" to make logs clearer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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