Documentation
¶
Overview ¶
DO NOT EDIT THIS: This file was generated by the Pyrin Golang Generator
THIS FILE IS GENERATED BY PYRIN GOGEN CODE GENERATOR
Index ¶
- func Request[D any](data RequestData) (*D, error)
- func RequestForm[D any](data RequestData, boundary string, body Reader) (*D, error)
- func Sprintf(format string, a ...any) string
- type ApiError
- type ApiResponse
- type Bookmark
- type ChangePasswordBody
- type Chapter
- type ChapterUserData
- type Client
- func (c *Client) ChangePassword(body ChangePasswordBody, options Options) (*any, error)
- func (c *Client) ChangeSerieCover(id string, body Reader, options Options) (*any, error)
- func (c *Client) CreateSerie(body CreateSerieBody, options Options) (*CreateSerie, error)
- func (c *Client) DeleteChapter(id string, options Options) (*any, error)
- func (c *Client) DeleteSerie(id string, options Options) (*any, error)
- func (c *Client) EditSerie(id string, body EditSerieBody, options Options) (*any, error)
- func (c *Client) GetChapterById(id string, options Options) (*GetChapterById, error)
- func (c *Client) GetChapters(options Options) (*GetChapters, error)
- func (c *Client) GetMe(options Options) (*GetMe, error)
- func (c *Client) GetSerieById(id string, options Options) (*GetSerieById, error)
- func (c *Client) GetSerieChapters(id string, options Options) (*GetSerieChapters, error)
- func (c *Client) GetSeries(options Options) (*GetSeries, error)
- func (c *Client) GetSystemInfo(options Options) (*GetSystemInfo, error)
- func (c *Client) MarkChapters(body PostUserMarkChaptersBody, options Options) (*any, error)
- func (c *Client) SetToken(token string)
- func (c *Client) Signin(body SigninBody, options Options) (*Signin, error)
- func (c *Client) Signup(body SignupBody, options Options) (*Signup, error)
- func (c *Client) UnmarkChapters(body PostUserUnmarkChaptersBody, options Options) (*any, error)
- func (c *Client) UpdateBookmark(body PostUserUpdateBookmarkBody, options Options) (*any, error)
- func (c *Client) UploadChapter(body Reader, options Options) (*any, error)
- type CreateSerie
- type CreateSerieBody
- type EditSerieBody
- type GetChapterById
- type GetChapters
- type GetMe
- type GetSerieById
- type GetSerieChapters
- type GetSeries
- type GetSystemInfo
- type Images
- type Options
- type PostUserMarkChaptersBody
- type PostUserUnmarkChaptersBody
- type PostUserUpdateBookmarkBody
- type Reader
- type RequestData
- type Serie
- type SerieUserData
- type Signin
- type SigninBody
- type Signup
- type SignupBody
- type UploadChapterBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Request ¶
func Request[D any](data RequestData) (*D, error)
func RequestForm ¶
func RequestForm[D any](data RequestData, boundary string, body Reader) (*D, error)
Types ¶
type ApiError ¶
type ApiResponse ¶
type ChangePasswordBody ¶
type ChapterUserData ¶
type ChapterUserData struct {
IsMarked bool `json:"isMarked"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ChangePassword ¶
func (c *Client) ChangePassword(body ChangePasswordBody, options Options) (*any, error)
func (*Client) ChangeSerieCover ¶
func (*Client) CreateSerie ¶
func (c *Client) CreateSerie(body CreateSerieBody, options Options) (*CreateSerie, error)
func (*Client) DeleteChapter ¶
func (*Client) GetChapterById ¶
func (c *Client) GetChapterById(id string, options Options) (*GetChapterById, error)
func (*Client) GetChapters ¶
func (c *Client) GetChapters(options Options) (*GetChapters, error)
func (*Client) GetSerieById ¶
func (c *Client) GetSerieById(id string, options Options) (*GetSerieById, error)
func (*Client) GetSerieChapters ¶
func (c *Client) GetSerieChapters(id string, options Options) (*GetSerieChapters, error)
func (*Client) GetSystemInfo ¶
func (c *Client) GetSystemInfo(options Options) (*GetSystemInfo, error)
func (*Client) MarkChapters ¶
func (c *Client) MarkChapters(body PostUserMarkChaptersBody, options Options) (*any, error)
func (*Client) UnmarkChapters ¶
func (c *Client) UnmarkChapters(body PostUserUnmarkChaptersBody, options Options) (*any, error)
func (*Client) UpdateBookmark ¶
func (c *Client) UpdateBookmark(body PostUserUpdateBookmarkBody, options Options) (*any, error)
type CreateSerie ¶
type CreateSerie struct {
SerieId string `json:"serieId"`
}
type CreateSerieBody ¶
type CreateSerieBody struct {
Name string `json:"name"`
}
type EditSerieBody ¶
type GetChapterById ¶
type GetChapterById struct {
Id string `json:"id"`
Name string `json:"name"`
SerieId string `json:"serieId"`
Pages []string `json:"pages"`
CoverArt Images `json:"coverArt"`
User *ChapterUserData `json:"user,omitempty"`
NextChapter *string `json:"nextChapter,omitempty"`
PrevChapter *string `json:"prevChapter,omitempty"`
}
type GetChapters ¶
type GetChapters struct {
Chapters []Chapter `json:"chapters"`
}
type GetSerieById ¶
type GetSerieChapters ¶
type GetSerieChapters struct {
Chapters []Chapter `json:"chapters"`
}
type GetSystemInfo ¶
type GetSystemInfo struct {
Version string `json:"version"`
}
type PostUserMarkChaptersBody ¶
type PostUserMarkChaptersBody struct {
Chapters []string `json:"chapters"`
}
type PostUserUnmarkChaptersBody ¶
type PostUserUnmarkChaptersBody struct {
Chapters []string `json:"chapters"`
}
type SerieUserData ¶
type SerieUserData struct {
Bookmark *Bookmark `json:"bookmark,omitempty"`
}
type SigninBody ¶
type SignupBody ¶
type UploadChapterBody ¶
Click to show internal directories.
Click to hide internal directories.