Discover Packages
github.com/Gellardo/giftlist
api
package
Version:
v0.0.0-...-f525512
Opens a new window with list of versions in this module.
Published: Mar 4, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
Setup the API request routing for list handling and the list storage.
type Item struct {
ID string `json:"id"`
Name string `json:"name,omitempty"`
Link string `json:"link,omitempty"`
Assigned bool `json:"assigned,omitempty"`
}
Item represents a single entry in a giftlist.
type List struct {
ID string `json:"id"`
Name string `json:"name,omitempty"`
Items []Item `json:"items,omitempty"`
}
List stores the information of a giftlist.
Storage describes the used interface for storing and retrieving lists for the API to use.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.