conf

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_mysql_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Mysql

type Mysql struct {

	// The driver name for the MySQL database.
	Driver string `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	// The data source name (DSN) for the MySQL 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"`
	// contains filtered or unexported fields
}

Defines a message type for MySQL configuration.

func (*Mysql) Descriptor deprecated

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

Deprecated: Use Mysql.ProtoReflect.Descriptor instead.

func (*Mysql) GetDriver

func (x *Mysql) GetDriver() string

func (*Mysql) GetMaxConn

func (x *Mysql) GetMaxConn() int32

func (*Mysql) GetMaxIdleConn

func (x *Mysql) GetMaxIdleConn() int32

func (*Mysql) GetMaxIdleTime

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

func (*Mysql) GetMaxLifeTime

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

func (*Mysql) GetMinConn

func (x *Mysql) GetMinConn() int32

func (*Mysql) GetSource

func (x *Mysql) GetSource() string

func (*Mysql) ProtoMessage

func (*Mysql) ProtoMessage()

func (*Mysql) ProtoReflect

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

func (*Mysql) Reset

func (x *Mysql) Reset()

func (*Mysql) String

func (x *Mysql) String() string

Jump to

Keyboard shortcuts

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