presenter

package
v0.0.0-...-5f2b7d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	ISBN            string `json:"isbn,omitempty"`
	Title           string `json:"title,omitempty"`
	Author          string `json:"author,omitempty"`
	ImageURL        string `json:"imageURL,omitempty"`
	SmallImageURL   string `json:"smallImageURL,omitempty"`
	Publisher       string `json:"publisher,omitempty"`
	Description     string `json:"description,omitempty"`
	PageCount       int64  `json:"pageCount,omitempty"`
	Categories      string `json:"categories,omitempty"`
	Language        string `json:"language,omitempty"`
	PublicationYear int64  `json:"publicationYear,omitempty"`
	UserID          string `json:"userId,omitempty"`
	Status          int64  `json:"status,omitempty"`
	Source          string `json:"source,omitempty"`
}

Book defines book object

type Error

type Error struct {
	ReqId  string `json:"requestID"`
	ErrMsg string `json:"message"`
}

Error defines an error object

func ErrResp

func ErrResp(reqID string, err error) *Error

ErrResp wraps the requestID and error into a single Error object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL