libs5-go/metadata/web_app_reference.go

16 lines
400 B
Go
Raw Normal View History

2024-01-05 14:02:26 +00:00
package metadata
import "git.lumeweb.com/LumeWeb/libs5-go/encoding"
type WebAppMetadataFileReference struct {
2024-01-18 17:15:47 +00:00
ContentType string `json:"contentType"`
Cid *encoding.CID `json:"cid"`
2024-01-05 14:02:26 +00:00
}
2024-01-05 14:02:58 +00:00
func NewWebAppMetadataFileReference(cid *encoding.CID, contentType string) *WebAppMetadataFileReference {
2024-01-05 14:02:26 +00:00
return &WebAppMetadataFileReference{
Cid: cid,
ContentType: contentType,
}
}