config

package
v0.0.0-...-145960c Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: Apache-2.0 Imports: 2 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 {
	Server  Server
	Runtime Runtime
	Logger  Logger
}

func DefaultConfig

func DefaultConfig() *Config

func Load

func Load(file string) (*Config, error)

type Logger

type Logger struct {
	Level string
}

func DefaultLoggerConfig

func DefaultLoggerConfig() Logger

type Runtime

type Runtime struct {
	ParallelWorkerNumber int
}

func DefaultRuntimeConfig

func DefaultRuntimeConfig() Runtime

type Server

type Server struct {
	TCPPort                 int
	HTTPPort                int
	DebugPort               int
	Path                    string
	TmpPath                 string
	ListenHost              string
	DisplayName             string
	DefaultDatabase         string
	DefaultBlockSize        int
	CalculateTextStackTrace bool
}

func DefaultServerConfig

func DefaultServerConfig() Server

Jump to

Keyboard shortcuts

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