config

package
v0.0.0-...-095c751 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestUUIDContextKey RequestUUIDKey = "requestUUID"
	LoggerContextKey      LoggerKey      = "logger"
	SessionContextKey     SessionKey     = "session"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server ServerConfig `yaml:"server"`
}

func ReadConfig

func ReadConfig() *Config

type CsrfConfig

type CsrfConfig struct {
	CsrfCookie   string        `yaml:"csrf_cookie"`
	CSRFLifeTime time.Duration `yaml:"csrf_lifetime"`
}

type LoggerKey

type LoggerKey string

type RequestUUIDKey

type RequestUUIDKey string

type ServerConfig

type ServerConfig struct {
	Host               string `yaml:"host"`
	AuthIP             string `yaml:"auth_ip"`
	ProfileIP          string `yaml:"profile_ip"`
	CartIP             string `yaml:"cart_ip"`
	Port               string `yaml:"port"`
	AuthServicePort    string `yaml:"auth_service_port"`
	ProfileServicePort string `yaml:"profile_service_port"`
	CartServicePort    string `yaml:"cart_service_port"`
}

type SessionKey

type SessionKey string

Jump to

Keyboard shortcuts

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