Documentation
¶
Overview ¶
Package wave2 is the app-facing runtime API for Wave2 applications.
This package intentionally excludes build/dev orchestration concerns so production applications keep a lean runtime dependency surface.
Index ¶
Constants ¶
View Source
const RuntimeConfigPath = "wave_owned/runtime_cfg.json"
RuntimeConfigPath is the fixed runtime-config artifact path relative to dist-static root.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// DistStaticFS is the dist static filesystem root containing generated
// Wave2 runtime artifacts.
//
// In production, you probably want to use `embed.FS`.
// In development, leave this field null (the dev server doesn't even use it,
// and you can improve speed by avoid the `embed.FS` compilation overhead).
DistStaticFS fs.FS
// Logger is the optional runtime logger used by Wave2.
Logger *slog.Logger
}
Options configures Wave2 runtime construction from generated dist artifacts.
type RuntimeConfig ¶
type RuntimeConfig struct {
PublicPathPrefix string `json:"public_path_prefix"`
}
RuntimeConfig is the generated runtime-config artifact loaded by Wave2.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package wavebuild defines the build/dev orchestration contracts for Wave2.
|
Package wavebuild defines the build/dev orchestration contracts for Wave2. |
|
Package wavefw provides the framework-facing adapter API for Wave2.
|
Package wavefw provides the framework-facing adapter API for Wave2. |
Click to show internal directories.
Click to hide internal directories.