Versions in this module Expand all Collapse all v0 v0.1.0 Aug 11, 2026 Changes in this version + var ErrAuthenticationRequired = core.ErrAuthenticationRequired + var ErrMissingData = core.ErrMissingData + func IsPermissionError(err error) bool + func IsRiskControl(err error) bool + func RequiresLogin(err error) bool + func RequiresVIP(err error) bool + func SendOptionalPayload[T any](ctx context.Context, client *Client, request *http.Request, operation string) (*T, error) + func SendPayload[T any](ctx context.Context, client *Client, request *http.Request, operation string) (T, error) + type APIError = core.APIError + type Account = core.Account + type ActivityClient = activity.Client + type ArticleClient = article.Client + type AudioClient = audio.Client + type BangumiClient = bangumi.Client + type CheeseClient = cheese.Client + type Client struct + func NewClient(options ...Option) (*Client, error) + func (c *Client) Account() (Account, bool) + func (c *Client) Activity() ActivityClient + func (c *Client) Article() ArticleClient + func (c *Client) Audio() AudioClient + func (c *Client) Bangumi() BangumiClient + func (c *Client) CSRF() (string, error) + func (c *Client) Cheese() CheeseClient + func (c *Client) ClearAccount() + func (c *Client) ClientInfo() ClientInfoClient + func (c *Client) Comment() CommentClient + func (c *Client) CreativeCenter() CreativeCenterClient + func (c *Client) Danmaku() DanmakuClient + func (c *Client) Do(ctx context.Context, request *http.Request, operation string) (*Response, error) + func (c *Client) Dynamic() DynamicClient + func (c *Client) Electric() ElectricClient + func (c *Client) Fav() FavClient + func (c *Client) HasLoginCookies() bool + func (c *Client) HistoryToView() HistoryToViewClient + func (c *Client) Live() LiveClient + func (c *Client) Login() LoginClient + func (c *Client) Manga() MangaClient + func (c *Client) Message() MessageClient + func (c *Client) Misc() MiscClient + func (c *Client) Note() NoteClient + func (c *Client) Opus() OpusClient + func (c *Client) Search() SearchClient + func (c *Client) SetAccount(account Account) error + func (c *Client) SetCookie(cookieHeader string) error + func (c *Client) User() UserClient + func (c *Client) VIP() VIPClient + func (c *Client) Video() VideoClient + func (c *Client) VideoRanking() VideoRankingClient + func (c *Client) Wallet() WalletClient + func (c *Client) WebWidget() WebWidgetClient + type ClientInfoClient = clientinfo.Client + type CommentClient = comment.Client + type CreativeCenterClient = creativecenter.Client + type DanmakuClient = danmaku.Client + type DynamicClient = dynamic.Client + type ElectricClient = electric.Client + type Envelope = core.Envelope[T] + func DecodeEnvelope[T any](body []byte) (Envelope[T], error) + type FavClient = fav.Client + type HTTPError = core.HTTPError + type HistoryToViewClient = historytoview.Client + type LiveClient = live.Client + type LoginClient = login.Client + type MangaClient = manga.Client + type MessageClient = message.Client + type MiscClient = misc.Client + type NoteClient = note.Client + type Option = core.Option + func WithAccount(account Account) Option + func WithCookie(cookieHeader string) Option + func WithHTTPClient(client *http.Client) Option + func WithLogger(logger *slog.Logger) Option + func WithMaxResponseBody(limit int64) Option + func WithOrigin(origin string) Option + func WithReferer(referer string) Option + func WithTimeout(timeout time.Duration) Option + func WithUserAgent(userAgent string) Option + type OpusClient = opus.Client + type ParameterError = core.ParameterError + type Response = core.Response + type ResponseDecodeError = core.ResponseDecodeError + type ResponseTooLargeError = core.ResponseTooLargeError + type SearchClient = search.Client + type TransportError = core.TransportError + type UserClient = user.Client + type VIPClient = vip.Client + type VideoClient = video.Client + type VideoRankingClient = videoranking.Client + type WalletClient = wallet.Client + type WebWidgetClient = webwidget.Client