Documentation ¶
Index ¶
Constants ¶
View Source
const ( PaginationPageMinimum = 0 PaginationSizeMinimum = 1 PaginationSizeMaximum = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶ added in v1.0.0
func NewPagination ¶ added in v1.0.0
func NewPagination() *Pagination
func (*Pagination) Validate ¶ added in v1.0.0
func (p *Pagination) Validate() error
type Session ¶
type Session interface { store.Session GetDatasetsForUserByID(userID string, filter *Filter, pagination *Pagination) ([]*upload.Upload, error) GetDatasetByID(datasetID string) (*upload.Upload, error) CreateDataset(dataset *upload.Upload) error UpdateDataset(dataset *upload.Upload) error DeleteDataset(dataset *upload.Upload) error FindDatasetDataDeduplicatorHashes(userID string, queryHashes []string) ([]string, error) CreateDatasetData(dataset *upload.Upload, datasetData []data.Datum) error ActivateDatasetData(dataset *upload.Upload) error DeleteOtherDatasetData(dataset *upload.Upload) error DestroyDataForUserByID(userID string) error }
Click to show internal directories.
Click to hide internal directories.