config

package
v0.0.0-...-dd05744 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 4 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 {
	conf.Version
	HTTP Server
	GRPC Server
}

func Load

func Load() (*Config, error)

type Server

type Server struct {
	Host string `conf:"default:0.0.0.0"`
	Port int    `conf:"default:8080"`
}

func (*Server) Addr

func (s *Server) Addr() string

Jump to

Keyboard shortcuts

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