config

package
v0.0.0-...-db8033e Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT 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 {
	Migrations    string
	Database      DBConfig
	RpcServer     ServerConfig
	HTTPServer    ServerConfig
	MetricsServer ServerConfig
}

func NewConfig

func NewConfig(ctx *cli.Context) Config

type DBConfig

type DBConfig struct {
	Host     string
	Port     int
	Name     string
	User     string
	Password string
}

type ServerConfig

type ServerConfig struct {
	Host string
	Port int
}

Jump to

Keyboard shortcuts

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