contract

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliConfiguration

type CliConfiguration interface {
	Name() string

	Description() string
}

type Configuration

type Configuration interface {
	Get(name string) Parameter

	MustGet(name string) Parameter

	RegisterRuntime(name string, value any)

	Resolve() error

	Cli() CliConfiguration

	Kernel() KernelConfiguration

	Http() HttpConfiguration

	Names() []string
}

type EnvironmentSource

type EnvironmentSource interface {
	Load() (map[string]string, error)
}

type HttpConfiguration

type HttpConfiguration interface {
	Address() string

	DefaultLocale() string

	PublicDir() string

	StaticIndexFile() string

	MaxRequestBodyBytes() int

	StaticEnableCache() bool

	StaticCacheMaxAge() int
}

type KernelConfiguration

type KernelConfiguration interface {
	DefaultMode() string

	Env() string

	ProjectDir() string

	LogsDir() string

	CacheDir() string

	LogPath() string

	LogLevel() loggingcontract.Level
}

type Parameter

type Parameter interface {
	EnvironmentKey() string

	EnvironmentValue() any

	Value() any

	IsDefault() bool

	String() string

	MustString() string

	Bool() (bool, error)

	Int() (int, error)
}

Jump to

Keyboard shortcuts

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