configs

package
v0.0.0-...-48e7155 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncConfig

type SyncConfig struct {
	PoolSize    int `json:"pool_size,omitempty" yaml:"pool_size,omitempty" default:"50"` // 协程池大小
	RedisConfig struct {
		Addr     string `json:"addr" yaml:"addr"`
		Password string `json:"password,omitempty" yaml:"password,omitempty"`
		DB       int    `json:"db,omitempty" yaml:"db,omitempty" default:"0"`
	} `json:"redis" yaml:"redis"`

	ZookeeperConfig struct {
		Hosts    []string `json:"hosts" yaml:"hosts"`
		Username string   `json:"username" yaml:"username"`
		Password string   `json:"password" yaml:"password"`
	}
}

Jump to

Keyboard shortcuts

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