types

package
v1.50.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultServiceName = "authula"

Variables

This section is empty.

Functions

This section is empty.

Types

type ExporterType

type ExporterType string
const (
	ExporterOTLP   ExporterType = "otlp"
	ExporterStdout ExporterType = "stdout"
	ExporterNone   ExporterType = "none"
)

type OTelPluginConfig

type OTelPluginConfig struct {
	Enabled        bool              `json:"enabled" toml:"enabled"`
	ServiceName    string            `json:"service_name,omitempty" toml:"service_name"`
	Exporter       ExporterType      `json:"exporter,omitempty" toml:"exporter"`
	Protocol       ProtocolType      `json:"protocol,omitempty" toml:"protocol"`
	Endpoint       string            `json:"endpoint,omitempty" toml:"endpoint"`
	Insecure       bool              `json:"insecure,omitempty" toml:"insecure"`
	Headers        map[string]string `json:"headers,omitempty" toml:"headers"`
	TracesEnabled  *bool             `json:"traces_enabled,omitempty" toml:"traces_enabled"`
	MetricsEnabled *bool             `json:"metrics_enabled,omitempty" toml:"metrics_enabled"`
	LogsEnabled    bool              `json:"logs_enabled,omitempty" toml:"logs_enabled"`
	RuntimeMetrics *bool             `json:"runtime_metrics,omitempty" toml:"runtime_metrics"`
	SampleRatio    *float64          `json:"sample_ratio,omitempty" toml:"sample_ratio"`
	TrustProxy     bool              `json:"trust_proxy,omitempty" toml:"trust_proxy"`
}

func (*OTelPluginConfig) ApplyDefaults

func (c *OTelPluginConfig) ApplyDefaults()

func (OTelPluginConfig) LogsActive

func (c OTelPluginConfig) LogsActive() bool

func (OTelPluginConfig) MetricsActive

func (c OTelPluginConfig) MetricsActive() bool

func (OTelPluginConfig) MetricsOn

func (c OTelPluginConfig) MetricsOn() bool

func (OTelPluginConfig) RuntimeOn

func (c OTelPluginConfig) RuntimeOn() bool

RuntimeOn reports whether Go runtime metrics should be started. It defaults to true when unset.

func (OTelPluginConfig) TracesActive

func (c OTelPluginConfig) TracesActive() bool

func (OTelPluginConfig) TracesOn

func (c OTelPluginConfig) TracesOn() bool

func (OTelPluginConfig) Valid

func (c OTelPluginConfig) Valid() bool

type ProtocolType

type ProtocolType string
const (
	ProtocolHTTP ProtocolType = "http"
	ProtocolGRPC ProtocolType = "grpc"
)

Jump to

Keyboard shortcuts

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