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