database

package
v0.0.0-...-1a2806f Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 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 Config

type Config struct {
	Nodes           []NodeInfo    `mapstructure:"nodes"`
	ConnectInterval time.Duration `mapstructure:"connect_interval"`
	QueueSize       int           `mapstructure:"queue_size"`
}

Config db client config

func (*Config) GetQueueSize

func (c *Config) GetQueueSize() int

GetQueueSize get module queue size

type NodeInfo

type NodeInfo struct {
	ID     int    `mapstructure:"id"`
	Driver string `mapstructure:"driver"`
	DSN    string `mapstructure:"dsn"`
}

NodeInfo server node info

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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