Documentation
¶
Index ¶
- Variables
- type Pgsql
- func (*Pgsql) Descriptor() ([]byte, []int)deprecated
- func (x *Pgsql) GetDriver() string
- func (x *Pgsql) GetMaxConn() int32
- func (x *Pgsql) GetMaxIdleConn() int32
- func (x *Pgsql) GetMaxIdleTime() *durationpb.Duration
- func (x *Pgsql) GetMaxLifeTime() *durationpb.Duration
- func (x *Pgsql) GetMinConn() int32
- func (x *Pgsql) GetPrometheus() *PrometheusConfig
- func (x *Pgsql) GetSource() string
- func (*Pgsql) ProtoMessage()
- func (x *Pgsql) ProtoReflect() protoreflect.Message
- func (x *Pgsql) Reset()
- func (x *Pgsql) String() string
- type PrometheusConfig
- func (*PrometheusConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PrometheusConfig) GetLabels() map[string]string
- func (x *PrometheusConfig) GetNamespace() string
- func (x *PrometheusConfig) GetSubsystem() string
- func (*PrometheusConfig) ProtoMessage()
- func (x *PrometheusConfig) ProtoReflect() protoreflect.Message
- func (x *PrometheusConfig) Reset()
- func (x *PrometheusConfig) String() string
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) GetMaxConn ¶
func (*Pgsql) GetMaxIdleConn ¶
func (*Pgsql) GetMaxIdleTime ¶
func (x *Pgsql) GetMaxIdleTime() *durationpb.Duration
func (*Pgsql) GetMaxLifeTime ¶
func (x *Pgsql) GetMaxLifeTime() *durationpb.Duration
func (*Pgsql) GetMinConn ¶
func (*Pgsql) GetPrometheus ¶
func (x *Pgsql) GetPrometheus() *PrometheusConfig
func (*Pgsql) ProtoMessage ¶
func (*Pgsql) ProtoMessage()
func (*Pgsql) ProtoReflect ¶
func (x *Pgsql) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.