Documentation
¶
Index ¶
- Constants
- Variables
- func Error(code int, error_msg string)
- func NewExtension() *ext
- type Chapter
- type Comic
- type Extension
- type GetComicByHandleResponse
- type GetPageByHandleResponse
- type GetPagesByChapterHandleResponse
- type Response
- type SearchComic
- type SearchComicByTitleResponse
- type Source
- type SourceInfo
- type Status
Constants ¶
View Source
const DATAVERSION = "1.0"
View Source
const ExtErrorCode = 500
View Source
const NoMsg = ""
View Source
const NoParam = ""
View Source
const SuccessCode = 200
Variables ¶
View Source
var Success = Status{Code: SuccessCode}
Functions ¶
Types ¶
type Comic ¶
type Comic struct { Title string `json:"title"` Id string `json:"id"` Url string `json:"url"` ComicType string `json:"comictype"` ReleaseStatus string `json:"releasestatus"` Summary string `json:"summary"` Cover string `json:"cover"` Authors []string `json:"authors"` Artists []string `json:"artists"` Altnames []string `json:"altnames"` Genres []string `json:"genres"` Year string `json:"year"` Chapters []Chapter `json:"chapters"` }
type Extension ¶
type Extension struct { Name string `json:"name"` Id string `json:"id"` Author string `json:"author"` Source string `json:"source"` Sources []SourceInfo `json:"sources"` Logo string `json:"logo"` Executable string `json:"executable"` UpdatesUrl string `json:"updatesurl"` Updater string `json:"updater"` Version string `json:"version"` }
type GetComicByHandleResponse ¶ added in v0.0.9
type GetComicByHandleResponse struct { Data Comic `json:"data"` Status Status `json:"status"` DataVersion string `json:"dataversion"` }
func GetComicByHandleRes ¶ added in v0.1.6
func GetComicByHandleRes(result Comic) GetComicByHandleResponse
type GetPageByHandleResponse ¶ added in v0.0.9
type GetPageByHandleResponse struct { Data string `json:"data"` Status Status `json:"status"` DataVersion string `json:"dataversion"` }
func GetPageByHandleRes ¶ added in v0.1.6
func GetPageByHandleRes(result string) GetPageByHandleResponse
type GetPagesByChapterHandleResponse ¶ added in v0.0.9
type GetPagesByChapterHandleResponse struct { Data []string `json:"data"` Status Status `json:"status"` DataVersion string `json:"dataversion"` }
func GetPagesByChapterHandleRes ¶ added in v0.1.6
func GetPagesByChapterHandleRes(result []string) GetPagesByChapterHandleResponse
type SearchComic ¶
type SearchComicByTitleResponse ¶ added in v0.0.9
type SearchComicByTitleResponse struct { Data []SearchComic `json:"data"` Status Status `json:"status"` DataVersion string `json:"dataversion"` }
func SearchComicByTitleRes ¶ added in v0.1.6
func SearchComicByTitleRes(result []SearchComic) SearchComicByTitleResponse
type SourceInfo ¶ added in v0.1.7
Click to show internal directories.
Click to hide internal directories.