Documentation
¶
Index ¶
- type Dataset
- func (d *Dataset) AddElement(e Element) error
- func (d *Dataset) GetAllElements() []ElementNoIndex
- func (d *Dataset) GetElement(name string) (Element, error)
- func (d *Dataset) GetID() string
- func (d *Dataset) GetLength() int
- func (d *Dataset) ListElements() []ElementMeta
- func (d *Dataset) Save(ctx context.Context) error
- type DatasetMeta
- type Element
- type ElementMeta
- type ElementNoIndex
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dataset ¶
type Dataset struct { DatasetMeta `json:",inline"` Elements map[string]Element `json:"elements,omitempty"` // contains filtered or unexported fields }
func (*Dataset) AddElement ¶
func (*Dataset) GetAllElements ¶
func (d *Dataset) GetAllElements() []ElementNoIndex
func (*Dataset) ListElements ¶
func (d *Dataset) ListElements() []ElementMeta
type DatasetMeta ¶
type Element ¶
type Element struct { ElementMeta `json:",inline"` Index int `json:"index,omitempty"` Contents string `json:"contents,omitempty"` BinaryContents []byte `json:"binaryContents,omitempty"` }
type ElementMeta ¶
type ElementNoIndex ¶
type ElementNoIndex struct { ElementMeta `json:",inline"` Contents string `json:"contents,omitempty"` BinaryContents []byte `json:"binaryContents,omitempty"` }
ElementNoIndex is used for returning data to the user, since the user does not care about the index.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetDataset ¶
func (*Manager) ListDatasets ¶
func (m *Manager) ListDatasets(ctx context.Context) ([]DatasetMeta, error)
Click to show internal directories.
Click to hide internal directories.