Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertType ¶
ConvertType converts a type (file or directory) from a string to the types.Type enum.
Types ¶
type Data ¶
type Data struct { ID string `json:"id"` Meta struct { Rev string `json:"rev"` } `json:"meta"` Attributes struct { Type string `json:"type"` Name string `json:"name"` DirID string `json:"dir_id"` } `json:"attributes"` }
Data describes an item inside data.
type Doc ¶
type Doc struct {
Data Data `json:"data"`
}
Doc describes a JSON-API document. See https://jsonapi.org/format/#document-structure
Click to show internal directories.
Click to hide internal directories.