Versions in this module Expand all Collapse all v0 v0.2.0 Apr 23, 2022 Changes in this version + var APILiveEndpoint = "https://api.live.bilibili.com" + type NoLogger struct + func (l NoLogger) Printf(format string, v ...interface{}) + func (l NoLogger) Println(v ...interface{}) v0.1.0 Apr 3, 2022 Changes in this version + const APIEndpoint + const DefaultUA + func ErrorMmsg(code int) string + func IsHttpNOK(err error, code int) bool + type APIResponse struct + Code int + Data *json.RawMessage + Message string + TTL int + type Base struct + APIEndpoint string + Client *http.Client + Log BaseLogger + UserAgent string + func (b *Base) GetJson(path string, opt interface{}, result interface{}) error + func (b *Base) GetPb(path string, opt interface{}, result protoreflect.ProtoMessage) error + func (b *Base) Init() error + func (b *Base) MakeRequest(method, path string, opt interface{}, body []byte) (*http.Response, error) + func (b *Base) Post(path string, values url.Values, body []byte, result interface{}) error + type BaseLogger interface + Printf func(format string, v ...interface{}) + Println func(v ...interface{}) + type HttpNOK struct + Body []byte + Status string + StatusCode int + func GetHttpNOK(err error) *HttpNOK + func NewHttpNOK(resp *http.Response) *HttpNOK + func (h *HttpNOK) Error() string