config

package
v0.0.0-...-a3a5494 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 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 {
	// Server is a struct that holds the configuration for the server
	Server ServerConfig
}

Config is a struct that holds the configuration for the application

func NewConfig

func NewConfig() (Config, error)

NewConfig returns a new Config struct

type ServerConfig

type ServerConfig struct {
	// Host is the host that the server will listen on
	Host string
	// Port is the port that the server will listen on
	Port int
}

ServerConfig is a struct that holds the configuration for the server

Jump to

Keyboard shortcuts

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