libs5-go/metadata/web_app.go

28 lines
685 B
Go
Raw Normal View History

2024-01-05 14:02:26 +00:00
package metadata
var (
_ Metadata = (*WebAppMetadata)(nil)
)
2024-01-05 14:02:26 +00:00
type WebAppMetadata struct {
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,
}
}
func NewEmptyWebAppMetadata() *WebAppMetadata {
return &WebAppMetadata{}
}