add a web resource concept for data + storage

This commit is contained in:
mr
2024-10-09 09:05:49 +02:00
parent ba6ac86bff
commit b90ffbc4f0
5 changed files with 30 additions and 23 deletions

View File

@@ -8,6 +8,12 @@ import (
"github.com/google/uuid"
)
type WebResource struct {
Type string `bson:"type,omitempty" json:"type,omitempty"` // Type is the type of the storage
Protocol string `bson:"protocol,omitempty" json:"protocol,omitempty"` // Protocol is the protocol of the URL
Path string `bson:"path,omitempty" json:"path,omitempty"` // Path is the path of the URL
}
/*
* AbstractResource is a struct that represents a resource
* it defines the resource data