First batch
This commit is contained in:
13
data.go
13
data.go
@@ -1,5 +1,16 @@
|
||||
package oclib
|
||||
|
||||
type Data struct {
|
||||
Resource
|
||||
AbstractResource
|
||||
|
||||
Protocols []string `json:"protocol"` //TODO Enum type
|
||||
DataType string `json:"datatype"`
|
||||
Example string `json:"example" required:"true" validate:"required" description:"base64 encoded data"`
|
||||
|
||||
}
|
||||
|
||||
|
||||
func (d *Data) GetType() ResourceType{
|
||||
return DATA
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user