config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CORSConfig added in v0.0.3

type CORSConfig struct {
	AllowedOrigins   []string
	AllowedMethods   []string
	AllowedHeaders   []string
	MaxAge           int
	AllowCredentials bool
}

type Client

type Client struct {
	Host         string
	Port         int
	RetryTimeout time.Duration
	RetriesCount int
}

type ClientsConfig

type ClientsConfig struct {
	SSO Client
}

type Config

type Config struct {
	HTTP    HTTPConfig
	CORS    CORSConfig
	Clients ClientsConfig
	Logging LoggingConfig
}

func New

func New() *Config

type HTTPConfig

type HTTPConfig struct {
	Host              string
	Port              int
	ReadHeaderTimeout time.Duration
}

type LoggingConfig

type LoggingConfig struct {
	Level       slog.Level
	LogFilePath string
}

Jump to

Keyboard shortcuts

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