Documentation
¶
Index ¶
- type Collection
- type Collections
- type FullCollection
- type Service
- func (s *Service) Counts(userID *uuid.UUID) (Summaries, error)
- func (s *Service) Delete(userID *uuid.UUID, key string) error
- func (s *Service) List(userID *uuid.UUID) (Collections, error)
- func (s *Service) Load(userID *uuid.UUID, key string) (*Collection, error)
- func (s *Service) Save(userID *uuid.UUID, originalKey string, newKey string, title string, ...) error
- type Summaries
- type Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
Key string `json:"key"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Owner string `json:"owner,omitempty"`
Path string `json:"path,omitempty"`
RequestOrder []string `json:"requestOrder,omitempty"`
}
func (*Collection) Normalize ¶
func (c *Collection) Normalize(key string, p string) *Collection
func (*Collection) TitleWithFallback ¶
func (c *Collection) TitleWithFallback() string
type Collections ¶
type Collections []*Collection
type FullCollection ¶
type FullCollection struct {
Coll *Collection `json:"coll"`
Requests request.Requests `json:"reqs"`
Sess *session.Session `json:"sess"`
}
type Summary ¶
type Summary struct {
Coll *Collection `json:"coll"`
Count int `json:"count"`
}
Click to show internal directories.
Click to hide internal directories.