appconfig

package
v0.0.0-...-25085cf Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated from Pkl module `org.pkl.golang.example.AppConfig`. DO NOT EDIT.

Code generated from Pkl module `org.pkl.golang.example.AppConfig`. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	// The host to listen on
	Host string `pkl:"host"`

	// The application port to listen on
	Port uint16 `pkl:"port"`

	// Redis settings for this application
	Redis *redisconfig.RedisConfig `pkl:"redis"`

	// The level of logging for the application.
	//
	// - "error": Log only error level messages
	// - "warn": Log error and warning messages
	// - "info": Log all messages
	LogLevel loglevel.LogLevel `pkl:"logLevel"`
}

Application configuration for the Pkl Go Example application.

See generated sources in the gen/ directory.

func Load

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

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

func LoadFromPath

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

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

Directories

Path Synopsis
Code generated from Pkl module `org.pkl.golang.example.AppConfig`.
Code generated from Pkl module `org.pkl.golang.example.AppConfig`.

Jump to

Keyboard shortcuts

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