Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDoesNotExist = errors.New("the item does not exist") ErrNoRows = errors.New("no items found") ErrDuplicateUsername = errors.New("username already exists") ErrNoAuthHeader = errors.New("no authentication headers") ErrInvalidCreds = errors.New("invalid credentials") ErrAPIKeyExpired = errors.New("api key expired") )
Functions ¶
func ValidateFilters ¶
Types ¶
type Book ¶
type Book struct { ID int64 `json:"id" db:"id"` Title string `json:"title" db:"title"` Author []string `json:"author"` ISBN string `json:"isbn" db:"isbn"` NumOfPages int `json:"num_of_pages" db:"numofpages"` Rating int `json:"rating" db:"rating"` State string `json:"state" db:"state,type:state"` Description NullString `json:"description,omitempty"` Notes NullString `json:"notes,omitempty"` Review NullString `json:"review,omitempty"` Series NullString `json:"series,omitempty"` Genre []string `json:"genre,omitempty"` Tag []string `json:"tag,omitempty"` DateCompleted sql.NullTime `json:"-" db:"datecompleted"` DateAdded sql.NullTime `json:"-" db:"dateadded"` DateUpdated sql.NullTime `json:"-" db:"dateupdated"` }
type BookFilters ¶
type CategoryService ¶
type Genre ¶
type NullString ¶
type NullString struct {
sql.NullString
}
func (NullString) MarshalJSON ¶
func (n NullString) MarshalJSON() ([]byte, error)
func (NullString) Split ¶
func (n NullString) Split() []string
func (NullString) UnmarshalJSON ¶
func (n NullString) UnmarshalJSON(data []byte) error
type Series ¶
type Tag ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.