config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Global GlobalConfiguration
	Cors   CorsConfiguration
}
var (
	Config Configuration
	Logger *log.Logger
)

type CorsConfiguration

type CorsConfiguration struct {
	AllowedOrigins   []string
	AllowCredentials bool
	AllowedHeaders   []string
	AllowedMethods   []string
	Debug            bool
}

type GlobalConfiguration

type GlobalConfiguration struct {
	Debug               bool
	ServerAddress       string
	ServerPort          string
	MaxAgeBeforeCleanup int
	CleanCheckInterval  int
}

GlobalConfig holds global configuration items

Jump to

Keyboard shortcuts

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