2024-01-05 14:02:26 +00:00
|
|
|
package metadata
|
|
|
|
|
2024-01-09 13:16:14 +00:00
|
|
|
var (
|
|
|
|
_ Metadata = (*WebAppMetadata)(nil)
|
|
|
|
)
|
|
|
|
|
2024-01-05 14:02:26 +00:00
|
|
|
type WebAppMetadata struct {
|
2024-01-09 13:16:14 +00:00
|
|
|
BaseMetadata
|
2024-01-05 14:02:26 +00:00
|
|
|
Name string
|
|
|
|
TryFiles []string
|
|
|
|
ErrorPages map[int]string
|
|
|
|
ExtraMetadata ExtraMetadata
|
|
|
|
Paths map[string]WebAppMetadataFileReference
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewWebAppMetadata(name string, tryFiles []string, extraMetadata ExtraMetadata, errorPages map[int]string, paths map[string]WebAppMetadataFileReference) *WebAppMetadata {
|
|
|
|
return &WebAppMetadata{
|
|
|
|
Name: name,
|
|
|
|
TryFiles: tryFiles,
|
|
|
|
ExtraMetadata: extraMetadata,
|
|
|
|
ErrorPages: errorPages,
|
|
|
|
Paths: paths,
|
|
|
|
}
|
|
|
|
}
|
2024-01-09 13:16:42 +00:00
|
|
|
func NewEmptyWebAppMetadata() *WebAppMetadata {
|
|
|
|
return &WebAppMetadata{}
|
|
|
|
}
|