config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLConfiguration

type MySQLConfiguration struct {
	// MySQL service host address. If left blank, the following related mysql options will be ignored.
	Host string
	// Username for access to mysql service.
	Username string
	// Password for access to mysql, should be used pair with password.
	Password string
	// Database name for the server to use.
	Database string
	// Maximum idle connections allowed to connect to mysql.
	MaxIdleConnections int32
	// Maximum open connections allowed to connect to mysql.
	MaxOpenConnections int32
	// Maximum connection life time allowed to connect to mysql.
	MaxConnectionLifeTime metav1.Duration
}

MySQLConfiguration defines the configuration of mysql clients for components that can run with mysql database.

func (*MySQLConfiguration) DeepCopy

func (in *MySQLConfiguration) DeepCopy() *MySQLConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MySQLConfiguration.

func (*MySQLConfiguration) DeepCopyInto

func (in *MySQLConfiguration) DeepCopyInto(out *MySQLConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RedisConfiguration

type RedisConfiguration struct {
	// Address of your Redis server(ip:port).
	Addr string
	// Username for access to redis service.
	Username string
	// Optional auth password for Redis db.
	Password string
	// Database to be selected after connecting to the server.
	Database int
	// Maximum number of retries before giving up.
	MaxRetries int
	// Timeout when connecting to redis service.
	Timeout metav1.Duration
}

RedisConfiguration defines the configuration of redis clients for components that can run with redis key-value database.

func (*RedisConfiguration) DeepCopy

func (in *RedisConfiguration) DeepCopy() *RedisConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisConfiguration.

func (*RedisConfiguration) DeepCopyInto

func (in *RedisConfiguration) DeepCopyInto(out *RedisConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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