conf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 3 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 {
	Node  int64 `default:"0"`
	Debug bool  `default:"true"`
	Http  Http
	Grpc  Grpc
}

func GetConfig

func GetConfig() *Config

func ParseConfig

func ParseConfig() *Config

type Grpc

type Grpc struct {
	Host string `default:"127.0.0.1"`
	Port int    `default:"31000"`
}

type Http

type Http struct {
	Host string `default:"127.0.0.1"`
	Port int    `default:"9000"`
}

Jump to

Keyboard shortcuts

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