conf

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pgsql_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Pgsql

type Pgsql struct {

	// The driver name for the PgSQL database.
	Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	// The data source name (DSN) for the PgSQL database.
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// The minimum number of connections to maintain in the connection pool.
	MinConn int32 `protobuf:"varint,3,opt,name=min_conn,json=minConn,proto3" json:"min_conn,omitempty"`
	// The maximum number of connections to maintain in the connection pool.
	MaxConn int32 `protobuf:"varint,4,opt,name=max_conn,json=maxConn,proto3" json:"max_conn,omitempty"`
	// The maximum lifetime for a connection in the connection pool.
	MaxLifeTime *durationpb.Duration `protobuf:"bytes,5,opt,name=max_life_time,json=maxLifeTime,proto3" json:"max_life_time,omitempty"`
	// The maximum idle time for a connection in the connection pool.
	MaxIdleTime *durationpb.Duration `protobuf:"bytes,6,opt,name=max_idle_time,json=maxIdleTime,proto3" json:"max_idle_time,omitempty"`
	// The maximum number of idle connections.
	MaxIdleConn int32 `protobuf:"varint,7,opt,name=max_idle_conn,json=maxIdleConn,proto3" json:"max_idle_conn,omitempty"`
	// Prometheus monitoring configuration (semantic only, no HTTP exposure here).
	Prometheus *PrometheusConfig `protobuf:"bytes,8,opt,name=prometheus,proto3" json:"prometheus,omitempty"`
	// contains filtered or unexported fields
}

Defines a message type for PgSQL configuration.

func (*Pgsql) Descriptor deprecated

func (*Pgsql) Descriptor() ([]byte, []int)

Deprecated: Use Pgsql.ProtoReflect.Descriptor instead.

func (*Pgsql) GetDriver

func (x *Pgsql) GetDriver() string

func (*Pgsql) GetMaxConn

func (x *Pgsql) GetMaxConn() int32

func (*Pgsql) GetMaxIdleConn

func (x *Pgsql) GetMaxIdleConn() int32

func (*Pgsql) GetMaxIdleTime

func (x *Pgsql) GetMaxIdleTime() *durationpb.Duration

func (*Pgsql) GetMaxLifeTime

func (x *Pgsql) GetMaxLifeTime() *durationpb.Duration

func (*Pgsql) GetMinConn

func (x *Pgsql) GetMinConn() int32

func (*Pgsql) GetPrometheus

func (x *Pgsql) GetPrometheus() *PrometheusConfig

func (*Pgsql) GetSource

func (x *Pgsql) GetSource() string

func (*Pgsql) ProtoMessage

func (*Pgsql) ProtoMessage()

func (*Pgsql) ProtoReflect

func (x *Pgsql) ProtoReflect() protoreflect.Message

func (*Pgsql) Reset

func (x *Pgsql) Reset()

func (*Pgsql) String

func (x *Pgsql) String() string

type PrometheusConfig

type PrometheusConfig struct {

	// The namespace for Prometheus metrics.
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// The subsystem for Prometheus metrics.
	Subsystem string `protobuf:"bytes,2,opt,name=subsystem,proto3" json:"subsystem,omitempty"`
	// Additional labels for metrics.
	Labels map[string]string `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

Prometheus monitoring configuration (semantic only).

func (*PrometheusConfig) Descriptor deprecated

func (*PrometheusConfig) Descriptor() ([]byte, []int)

Deprecated: Use PrometheusConfig.ProtoReflect.Descriptor instead.

func (*PrometheusConfig) GetLabels

func (x *PrometheusConfig) GetLabels() map[string]string

func (*PrometheusConfig) GetNamespace

func (x *PrometheusConfig) GetNamespace() string

func (*PrometheusConfig) GetSubsystem

func (x *PrometheusConfig) GetSubsystem() string

func (*PrometheusConfig) ProtoMessage

func (*PrometheusConfig) ProtoMessage()

func (*PrometheusConfig) ProtoReflect

func (x *PrometheusConfig) ProtoReflect() protoreflect.Message

func (*PrometheusConfig) Reset

func (x *PrometheusConfig) Reset()

func (*PrometheusConfig) String

func (x *PrometheusConfig) String() string

Jump to

Keyboard shortcuts

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