server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 0 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 {
	// Host of the server.
	Host string `env:"HOST,required"`
	// Port of the server.
	Port string `env:"PORT,required"`
	// Timeout of the server.
	Timeout TimeoutConfig `envPrefix:"TIMEOUT_"`
}

type TimeoutConfig

type TimeoutConfig struct {
	// ReadTimeout of the server.
	ReadTimeout string `env:"READ,required"`
	// WriteTimeout of the server.
	WriteTimeout string `env:"WRITE,required"`
}

TimeoutConfig holds the configuration for the timeouts of the server.

Jump to

Keyboard shortcuts

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