config

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: MIT Imports: 5 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 {
	Dispatch struct {
		WorkersNumber        int `yaml:"workersNumber,omitempty"`
		DefaultQueueCapacity int `yaml:"defaultQueueCapacity,omitempty"`
		MaxQueueCapacity     int `yaml:"maxQueueCapacity,omitempty"`
	}

	Database struct {
		Url    string `yaml:"url,omitempty"`
		Driver string `yaml:"driver,omitempty"`
	}

	Cache struct {
		Addr string `yaml:"addr,omitempty"`
		Pass string `yaml:"pass,omitempty"`
		DB   int    `yaml:"db,omitempty"`
	}

	Input struct {
		DefaultQueueCapacity int `yaml:"defaultQueueCapacity,omitempty"`
		MaxQueueCapacity     int `yaml:"maxQueueCapacity,omitempty"`
		MaxBulkLimit         int `yaml:"maxBulkLimit,omitempty"`
	}

	System struct {
		StacksNumber         int `yaml:"stacksNumber,omitempty"`
		DefaultStackCapacity int `yaml:"defaultStackCapacity,omitempty"`
		MaxStackCapacity     int `yaml:"maxStackCapacity,omitempty"`
	}

	Network struct {
		Port int    `yaml:"port,omitempty"`
		Addr string `yaml:"addr,omitempty"`
	}
}

func DefaultConfig

func DefaultConfig() Config

func GetConfig

func GetConfig(path string) Config

Jump to

Keyboard shortcuts

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