pklgen

package
v0.0.0-...-ac0b3eb Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated from Pkl module `appConfig.pkl`. DO NOT EDIT.

Code generated from Pkl module `appConfig.pkl`. DO NOT EDIT.

Code generated from Pkl module `appConfig.pkl`. DO NOT EDIT.

Code generated from Pkl module `appConfig.pkl`. DO NOT EDIT.

Code generated from Pkl module `appConfig.pkl`. DO NOT EDIT.

Code generated from Pkl module `appConfig.pkl`. DO NOT EDIT.

Code generated from Pkl module `appConfig.pkl`. DO NOT EDIT.

Code generated from Pkl module `appConfig.pkl`. DO NOT EDIT.

Code generated from Pkl module `appConfig.pkl`. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthServerConfig

type AuthServerConfig struct {
	AccessTokenValidity *pkl.Duration `pkl:"accessTokenValidity"`

	PasswordresetTokenValidity *pkl.Duration `pkl:"passwordresetTokenValidity"`

	DefaultUserScopes []string `pkl:"defaultUserScopes"`

	LastAuthenticatedAtThreshold *pkl.Duration `pkl:"lastAuthenticatedAtThreshold"`
}

type DatabaseConfig

type DatabaseConfig struct {
	PSQLDB string `pkl:"PSQLDB"`

	PSQLHOST string `pkl:"PSQLHOST"`

	PSQLPORT int32 `pkl:"PSQLPORT"`

	PSQLUSER string `pkl:"PSQLUSER"`

	PSQLPASS string `pkl:"PSQLPASS"`

	AdditionalParams map[string]string `pkl:"AdditionalParams"`

	DBMaxOpenConns int `pkl:"DBMaxOpenConns"`

	MaxIdleConns int `pkl:"MaxIdleConns"`

	MinIdleConns int `pkl:"MinIdleConns"`

	ConnectionMaxLifetime *pkl.Duration `pkl:"ConnectionMaxLifetime"`
}

type EchoConfig

type EchoConfig struct {
	Debug bool `pkl:"debug"`

	ListenAddr string `pkl:"listenAddr"`

	HideInternalServerErrorDetails bool `pkl:"hideInternalServerErrorDetails"`

	BaseUrl *string `pkl:"baseUrl"`

	LoggerMiddleware bool `pkl:"loggerMiddleware"`

	RecoverMiddleware bool `pkl:"recoverMiddleware"`

	SecureMiddleware *EchoServerSecureMiddlewareConfig `pkl:"secureMiddleware"`
}

type EchoServerSecureMiddlewareConfig

type EchoServerSecureMiddlewareConfig struct {
	Enable bool `pkl:"enable"`

	XssProtection string `pkl:"xssProtection"`

	ContentTypeNosniff string `pkl:"contentTypeNosniff"`

	XFrameOptions string `pkl:"xFrameOptions"`

	HstsMaxAge int `pkl:"hstsMaxAge"`

	HstsExcludeSubdomains bool `pkl:"hstsExcludeSubdomains"`

	HstsPreload bool `pkl:"hstsPreload"`

	ContentSecurityPolicy string `pkl:"contentSecurityPolicy"`

	CspReportOnly bool `pkl:"cspReportOnly"`

	ReferrerPolicy string `pkl:"referrerPolicy"`
}

type LoggerConfig

type LoggerConfig struct {
	Level loggerlevel.LoggerLevel `pkl:"level"`

	RequestLevel loggerlevel.LoggerLevel `pkl:"requestLevel"`

	RequestBody bool `pkl:"requestBody"`

	RequestHeader bool `pkl:"requestHeader"`

	RequestQuery bool `pkl:"requestQuery"`

	ResponseHeader bool `pkl:"responseHeader"`

	ResponseBody bool `pkl:"responseBody"`

	LogCaller bool `pkl:"logCaller"`

	PreetyPrintConsole bool `pkl:"preetyPrintConsole"`
}

type ManagementServerConfig

type ManagementServerConfig struct {
	Secret string `pkl:"secret"`

	ReadinessTimeout *pkl.Duration `pkl:"readinessTimeout"`

	LivenessTimeout *pkl.Duration `pkl:"livenessTimeout"`

	ProbeWritablePathAbs []string `pkl:"probeWritablePathAbs"`

	ProbeWriteableTouchfile string `pkl:"probeWriteableTouchfile"`
}

type Pkl

type Pkl struct {
	Echo *EchoConfig `pkl:"Echo"`

	SB *SupabaseConfig `pkl:"SB"`

	DB *DatabaseConfig `pkl:"DB"`

	Auth *AuthServerConfig `pkl:"Auth"`

	Logger *LoggerConfig `pkl:"Logger"`

	ENV environment.Environment `pkl:"ENV"`

	Management *ManagementServerConfig `pkl:"Management"`
}

func Load

func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*Pkl, error)

Load loads the pkl module at the given source and evaluates it with the given evaluator into a Pkl

func LoadFromPath

func LoadFromPath(ctx context.Context, path string) (ret *Pkl, err error)

LoadFromPath loads the pkl module at the given path and evaluates it into a Pkl

type SupabaseConfig

type SupabaseConfig struct {
	ApiUrl string `pkl:"ApiUrl"`

	SecretKey string `pkl:"SecretKey"`
}

Directories

Path Synopsis
Code generated from Pkl module `appConfig.pkl`.
Code generated from Pkl module `appConfig.pkl`.
Code generated from Pkl module `appConfig.pkl`.
Code generated from Pkl module `appConfig.pkl`.

Jump to

Keyboard shortcuts

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