oc-lib/data.go

21 lines
407 B
Go
Raw Normal View History

2024-07-04 16:08:59 +02:00
package oclib
2024-07-11 16:00:51 +02:00
2024-07-17 17:17:37 +02:00
2024-07-11 16:00:51 +02:00
type Data struct {
2024-07-16 10:56:36 +02:00
AbstractResource
2024-07-17 17:17:37 +02:00
Protocols []string `json:"protocol,omitempty" bson:"protocol,omitempty"` //TODO Enum type
DataType string `json:"datatype" required:"true" bson:"datatype"`
Example string `json:"example" bson:"example" required:"true" validate:"required" description:"base64 encoded data"`
2024-07-16 10:56:36 +02:00
}
func (d *Data) GetType() ResourceType{
return DATA
2024-07-11 16:00:51 +02:00
}
2024-07-16 10:56:36 +02:00
2024-07-17 17:17:37 +02:00