Documentation
¶
Index ¶
- type Profile
- type Shelf
- type ShelfDAO
- type ShelfDB
- type Shelves
- type Work
- type WorkDAO
- func (dao *WorkDAO) AddWork(work Work) (Work, error)
- func (dao *WorkDAO) DeleteWork(id int64) error
- func (dao *WorkDAO) GetWork(id int64) (Work, error)
- func (dao *WorkDAO) ListWorks() (Works, error)
- func (dao *WorkDAO) ListWorksByShelf(shelfID int64) (Works, error)
- func (dao *WorkDAO) UpdateWork(work Work) (Work, error)
- type WorkDB
- type Works
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shelf ¶
type Shelf struct { Key *datastore.Key `json:"-" datastore:"-"` Id int64 `json:"id" datastore:"-"` Title string `json:"title"` Works Works `json:"works" datastore:"-"` }
func (*Shelf) MarshalJSON ¶
type Work ¶
type Work struct { Key *datastore.Key `json:"-" datastore:"-"` Id int64 `json:"id" datastore:"-"` Title string `json:"title"` Author string `json:"author"` Position int64 `json:"position"` ShelfId int64 `json:"shelf_id" datastore:"-"` ShelfKey *datastore.Key `json:"-"` }
func (Work) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.