config

package
v0.0.0-...-9ff3cc9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: GPL-3.0 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 {
	LogLevel      string         `json:"log_level"`
	GRPCEndpoint  *Endpoint      `json:"grpc_endpoint"`
	HTTPEndpoint  *Endpoint      `json:"http_endpoint"`
	RuntimeConfig *config.Config `json:"runtime_config"`
}

Config of service.

func LoadConfig

func LoadConfig(configPath string) (*Config, error)

type Endpoint

type Endpoint struct {
	Address string `json:"address"`
	Port    uint16 `json:"port"`
}

func (*Endpoint) String

func (e *Endpoint) String() string

Jump to

Keyboard shortcuts

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