Documentation ¶
Overview ¶
Package appfile reads and writes encore.app files.
Index ¶
Constants ¶
View Source
const Name = "encore.app"
Name is the name of the Encore app file. It is expected to be located in the root of the Encore app (which is usually the Git repository root).
Variables ¶
This section is empty.
Functions ¶
func Experiments ¶
func Experiments(appRoot string) ([]experiments.Name, error)
Experiments returns the experimental feature the app located at appRoot has opted into.
Types ¶
type CORS ¶
type CORS struct { // Debug is a flag to enable debug logging for CORS Debug bool `json:"debug,omitempty"` // AllowHeaders allows an app to specify additional headers that should be // accepted by the app. // // If the list contains "*", then all headers are allowed. AllowHeaders []string `json:"allow_headers"` }
func GlobalCORS ¶
GlobalCORS returns the global CORS settings for the app located
type File ¶
type File struct { // ID is the encore.dev app id for the app. // It is empty if the app is not linked to encore.dev. ID string `json:"id"` // can be empty // Experiments is a list of values to enable experimental features in Encore. // These are not guaranteed to be stable in either runtime behaviour // or in API design. // // Do not use these features in production without consulting the Encore team. Experiments []experiments.Name `json:"experiments,omitempty"` // Configure global CORS settings for the application which // will be applied to all API gateways into the application. GlobalCORS *CORS `json:"global_cors,omitempty"` // CgoEnabled enables building with cgo. CgoEnabled bool `json:"cgo_enabled,omitempty"` }
File is a parsed encore.app file.
Click to show internal directories.
Click to hide internal directories.