configuration

package
v0.0.0-...-b2cf0ac Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigInstance

func CreateConfigInstance() *config

Types

type ApplicationConfig

type ApplicationConfig struct {
	Web struct {
		ReadTimeout     time.Duration
		WriteTimeout    time.Duration
		IdleTimeout     time.Duration
		ShutdownTimeout time.Duration
		APIHost         string
		DebugHost       string
	}
}

type Config

type Config interface {
	GetConfig() (*ApplicationConfig, error)
}

type ServerConfig

type ServerConfig struct {
	Port string
}

Jump to

Keyboard shortcuts

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