Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterBilibiliHTTPServer(s *http.Server, srv BilibiliHTTPServer)
- func RegisterBilibiliServer(s grpc.ServiceRegistrar, srv BilibiliServer)
- type BilibiliClient
- type BilibiliHTTPClient
- type BilibiliHTTPClientImpl
- func (c *BilibiliHTTPClientImpl) GetDashPGCURL(ctx context.Context, in *GetDashPGCURLReq, opts ...http.CallOption) (*GetDashPGCURLResp, error)
- func (c *BilibiliHTTPClientImpl) GetDashVideoURL(ctx context.Context, in *GetDashVideoURLReq, opts ...http.CallOption) (*GetDashVideoURLResp, error)
- func (c *BilibiliHTTPClientImpl) GetPGCURL(ctx context.Context, in *GetPGCURLReq, opts ...http.CallOption) (*VideoURL, error)
- func (c *BilibiliHTTPClientImpl) GetSubtitles(ctx context.Context, in *GetSubtitlesReq, opts ...http.CallOption) (*GetSubtitlesResp, error)
- func (c *BilibiliHTTPClientImpl) GetVideoURL(ctx context.Context, in *GetVideoURLReq, opts ...http.CallOption) (*VideoURL, error)
- func (c *BilibiliHTTPClientImpl) LoginWithQRCode(ctx context.Context, in *LoginWithQRCodeReq, opts ...http.CallOption) (*LoginWithQRCodeResp, error)
- func (c *BilibiliHTTPClientImpl) LoginWithSMS(ctx context.Context, in *LoginWithSMSReq, opts ...http.CallOption) (*LoginWithSMSResp, error)
- func (c *BilibiliHTTPClientImpl) Match(ctx context.Context, in *MatchReq, opts ...http.CallOption) (*MatchResp, error)
- func (c *BilibiliHTTPClientImpl) NewCaptcha(ctx context.Context, in *Empty, opts ...http.CallOption) (*NewCaptchaResp, error)
- func (c *BilibiliHTTPClientImpl) NewQRCode(ctx context.Context, in *Empty, opts ...http.CallOption) (*NewQRCodeResp, error)
- func (c *BilibiliHTTPClientImpl) NewSMS(ctx context.Context, in *NewSMSReq, opts ...http.CallOption) (*NewSMSResp, error)
- func (c *BilibiliHTTPClientImpl) ParsePGCPage(ctx context.Context, in *ParsePGCPageReq, opts ...http.CallOption) (*VideoPageInfo, error)
- func (c *BilibiliHTTPClientImpl) ParseVideoPage(ctx context.Context, in *ParseVideoPageReq, opts ...http.CallOption) (*VideoPageInfo, error)
- func (c *BilibiliHTTPClientImpl) UserInfo(ctx context.Context, in *UserInfoReq, opts ...http.CallOption) (*UserInfoResp, error)
- type BilibiliHTTPServer
- type BilibiliServer
- type Empty
- type GetDashPGCURLReq
- func (*GetDashPGCURLReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetDashPGCURLReq) GetCid() uint64
- func (x *GetDashPGCURLReq) GetCookies() map[string]string
- func (x *GetDashPGCURLReq) GetEpid() uint64
- func (*GetDashPGCURLReq) ProtoMessage()
- func (x *GetDashPGCURLReq) ProtoReflect() protoreflect.Message
- func (x *GetDashPGCURLReq) Reset()
- func (x *GetDashPGCURLReq) String() string
- type GetDashPGCURLResp
- func (*GetDashPGCURLResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetDashPGCURLResp) GetHevcMpd() string
- func (x *GetDashPGCURLResp) GetMpd() string
- func (*GetDashPGCURLResp) ProtoMessage()
- func (x *GetDashPGCURLResp) ProtoReflect() protoreflect.Message
- func (x *GetDashPGCURLResp) Reset()
- func (x *GetDashPGCURLResp) String() string
- type GetDashVideoURLReq
- func (*GetDashVideoURLReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetDashVideoURLReq) GetAid() uint64
- func (x *GetDashVideoURLReq) GetBvid() string
- func (x *GetDashVideoURLReq) GetCid() uint64
- func (x *GetDashVideoURLReq) GetCookies() map[string]string
- func (*GetDashVideoURLReq) ProtoMessage()
- func (x *GetDashVideoURLReq) ProtoReflect() protoreflect.Message
- func (x *GetDashVideoURLReq) Reset()
- func (x *GetDashVideoURLReq) String() string
- type GetDashVideoURLResp
- func (*GetDashVideoURLResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetDashVideoURLResp) GetHevcMpd() string
- func (x *GetDashVideoURLResp) GetMpd() string
- func (*GetDashVideoURLResp) ProtoMessage()
- func (x *GetDashVideoURLResp) ProtoReflect() protoreflect.Message
- func (x *GetDashVideoURLResp) Reset()
- func (x *GetDashVideoURLResp) String() string
- type GetPGCURLReq
- func (*GetPGCURLReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetPGCURLReq) GetCid() uint64
- func (x *GetPGCURLReq) GetCookies() map[string]string
- func (x *GetPGCURLReq) GetEpid() uint64
- func (x *GetPGCURLReq) GetQuality() uint64
- func (*GetPGCURLReq) ProtoMessage()
- func (x *GetPGCURLReq) ProtoReflect() protoreflect.Message
- func (x *GetPGCURLReq) Reset()
- func (x *GetPGCURLReq) String() string
- type GetSubtitlesReq
- func (*GetSubtitlesReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetSubtitlesReq) GetAid() uint64
- func (x *GetSubtitlesReq) GetBvid() string
- func (x *GetSubtitlesReq) GetCid() uint64
- func (x *GetSubtitlesReq) GetCookies() map[string]string
- func (*GetSubtitlesReq) ProtoMessage()
- func (x *GetSubtitlesReq) ProtoReflect() protoreflect.Message
- func (x *GetSubtitlesReq) Reset()
- func (x *GetSubtitlesReq) String() string
- type GetSubtitlesResp
- func (*GetSubtitlesResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetSubtitlesResp) GetSubtitles() map[string]string
- func (*GetSubtitlesResp) ProtoMessage()
- func (x *GetSubtitlesResp) ProtoReflect() protoreflect.Message
- func (x *GetSubtitlesResp) Reset()
- func (x *GetSubtitlesResp) String() string
- type GetVideoURLReq
- func (*GetVideoURLReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetVideoURLReq) GetAid() uint64
- func (x *GetVideoURLReq) GetBvid() string
- func (x *GetVideoURLReq) GetCid() uint64
- func (x *GetVideoURLReq) GetCookies() map[string]string
- func (x *GetVideoURLReq) GetQuality() uint64
- func (*GetVideoURLReq) ProtoMessage()
- func (x *GetVideoURLReq) ProtoReflect() protoreflect.Message
- func (x *GetVideoURLReq) Reset()
- func (x *GetVideoURLReq) String() string
- type LoginWithQRCodeReq
- type LoginWithQRCodeResp
- func (*LoginWithQRCodeResp) Descriptor() ([]byte, []int)deprecated
- func (x *LoginWithQRCodeResp) GetCookies() map[string]string
- func (x *LoginWithQRCodeResp) GetStatus() QRCodeStatus
- func (*LoginWithQRCodeResp) ProtoMessage()
- func (x *LoginWithQRCodeResp) ProtoReflect() protoreflect.Message
- func (x *LoginWithQRCodeResp) Reset()
- func (x *LoginWithQRCodeResp) String() string
- type LoginWithSMSReq
- func (*LoginWithSMSReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginWithSMSReq) GetCaptchaKey() string
- func (x *LoginWithSMSReq) GetCode() string
- func (x *LoginWithSMSReq) GetPhone() string
- func (*LoginWithSMSReq) ProtoMessage()
- func (x *LoginWithSMSReq) ProtoReflect() protoreflect.Message
- func (x *LoginWithSMSReq) Reset()
- func (x *LoginWithSMSReq) String() string
- type LoginWithSMSResp
- func (*LoginWithSMSResp) Descriptor() ([]byte, []int)deprecated
- func (x *LoginWithSMSResp) GetCookies() map[string]string
- func (*LoginWithSMSResp) ProtoMessage()
- func (x *LoginWithSMSResp) ProtoReflect() protoreflect.Message
- func (x *LoginWithSMSResp) Reset()
- func (x *LoginWithSMSResp) String() string
- type MatchReq
- type MatchResp
- type NewCaptchaResp
- func (*NewCaptchaResp) Descriptor() ([]byte, []int)deprecated
- func (x *NewCaptchaResp) GetChallenge() string
- func (x *NewCaptchaResp) GetGt() string
- func (x *NewCaptchaResp) GetToken() string
- func (*NewCaptchaResp) ProtoMessage()
- func (x *NewCaptchaResp) ProtoReflect() protoreflect.Message
- func (x *NewCaptchaResp) Reset()
- func (x *NewCaptchaResp) String() string
- type NewQRCodeResp
- func (*NewQRCodeResp) Descriptor() ([]byte, []int)deprecated
- func (x *NewQRCodeResp) GetKey() string
- func (x *NewQRCodeResp) GetUrl() string
- func (*NewQRCodeResp) ProtoMessage()
- func (x *NewQRCodeResp) ProtoReflect() protoreflect.Message
- func (x *NewQRCodeResp) Reset()
- func (x *NewQRCodeResp) String() string
- type NewSMSReq
- func (*NewSMSReq) Descriptor() ([]byte, []int)deprecated
- func (x *NewSMSReq) GetChallenge() string
- func (x *NewSMSReq) GetPhone() string
- func (x *NewSMSReq) GetToken() string
- func (x *NewSMSReq) GetValidate() string
- func (*NewSMSReq) ProtoMessage()
- func (x *NewSMSReq) ProtoReflect() protoreflect.Message
- func (x *NewSMSReq) Reset()
- func (x *NewSMSReq) String() string
- type NewSMSResp
- type ParsePGCPageReq
- func (*ParsePGCPageReq) Descriptor() ([]byte, []int)deprecated
- func (x *ParsePGCPageReq) GetCookies() map[string]string
- func (x *ParsePGCPageReq) GetEpid() uint64
- func (x *ParsePGCPageReq) GetSsid() uint64
- func (*ParsePGCPageReq) ProtoMessage()
- func (x *ParsePGCPageReq) ProtoReflect() protoreflect.Message
- func (x *ParsePGCPageReq) Reset()
- func (x *ParsePGCPageReq) String() string
- type ParseVideoPageReq
- func (*ParseVideoPageReq) Descriptor() ([]byte, []int)deprecated
- func (x *ParseVideoPageReq) GetAid() uint64
- func (x *ParseVideoPageReq) GetBvid() string
- func (x *ParseVideoPageReq) GetCookies() map[string]string
- func (x *ParseVideoPageReq) GetSections() bool
- func (*ParseVideoPageReq) ProtoMessage()
- func (x *ParseVideoPageReq) ProtoReflect() protoreflect.Message
- func (x *ParseVideoPageReq) Reset()
- func (x *ParseVideoPageReq) String() string
- type QRCodeStatus
- func (QRCodeStatus) Descriptor() protoreflect.EnumDescriptor
- func (x QRCodeStatus) Enum() *QRCodeStatus
- func (QRCodeStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x QRCodeStatus) Number() protoreflect.EnumNumber
- func (x QRCodeStatus) String() string
- func (QRCodeStatus) Type() protoreflect.EnumType
- type UnimplementedBilibiliServer
- func (UnimplementedBilibiliServer) GetDashPGCURL(context.Context, *GetDashPGCURLReq) (*GetDashPGCURLResp, error)
- func (UnimplementedBilibiliServer) GetDashVideoURL(context.Context, *GetDashVideoURLReq) (*GetDashVideoURLResp, error)
- func (UnimplementedBilibiliServer) GetPGCURL(context.Context, *GetPGCURLReq) (*VideoURL, error)
- func (UnimplementedBilibiliServer) GetSubtitles(context.Context, *GetSubtitlesReq) (*GetSubtitlesResp, error)
- func (UnimplementedBilibiliServer) GetVideoURL(context.Context, *GetVideoURLReq) (*VideoURL, error)
- func (UnimplementedBilibiliServer) LoginWithQRCode(context.Context, *LoginWithQRCodeReq) (*LoginWithQRCodeResp, error)
- func (UnimplementedBilibiliServer) LoginWithSMS(context.Context, *LoginWithSMSReq) (*LoginWithSMSResp, error)
- func (UnimplementedBilibiliServer) Match(context.Context, *MatchReq) (*MatchResp, error)
- func (UnimplementedBilibiliServer) NewCaptcha(context.Context, *Empty) (*NewCaptchaResp, error)
- func (UnimplementedBilibiliServer) NewQRCode(context.Context, *Empty) (*NewQRCodeResp, error)
- func (UnimplementedBilibiliServer) NewSMS(context.Context, *NewSMSReq) (*NewSMSResp, error)
- func (UnimplementedBilibiliServer) ParsePGCPage(context.Context, *ParsePGCPageReq) (*VideoPageInfo, error)
- func (UnimplementedBilibiliServer) ParseVideoPage(context.Context, *ParseVideoPageReq) (*VideoPageInfo, error)
- func (UnimplementedBilibiliServer) UserInfo(context.Context, *UserInfoReq) (*UserInfoResp, error)
- type UnsafeBilibiliServer
- type UserInfoReq
- type UserInfoResp
- func (*UserInfoResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoResp) GetFace() string
- func (x *UserInfoResp) GetIsLogin() bool
- func (x *UserInfoResp) GetIsVip() bool
- func (x *UserInfoResp) GetUsername() string
- func (*UserInfoResp) ProtoMessage()
- func (x *UserInfoResp) ProtoReflect() protoreflect.Message
- func (x *UserInfoResp) Reset()
- func (x *UserInfoResp) String() string
- type VideoInfo
- func (*VideoInfo) Descriptor() ([]byte, []int)deprecated
- func (x *VideoInfo) GetBvid() string
- func (x *VideoInfo) GetCid() uint64
- func (x *VideoInfo) GetCoverImage() string
- func (x *VideoInfo) GetEpid() uint64
- func (x *VideoInfo) GetName() string
- func (*VideoInfo) ProtoMessage()
- func (x *VideoInfo) ProtoReflect() protoreflect.Message
- func (x *VideoInfo) Reset()
- func (x *VideoInfo) String() string
- type VideoPageInfo
- func (*VideoPageInfo) Descriptor() ([]byte, []int)deprecated
- func (x *VideoPageInfo) GetActors() string
- func (x *VideoPageInfo) GetTitle() string
- func (x *VideoPageInfo) GetVideoInfos() []*VideoInfo
- func (*VideoPageInfo) ProtoMessage()
- func (x *VideoPageInfo) ProtoReflect() protoreflect.Message
- func (x *VideoPageInfo) Reset()
- func (x *VideoPageInfo) String() string
- type VideoURL
- func (*VideoURL) Descriptor() ([]byte, []int)deprecated
- func (x *VideoURL) GetAcceptDescription() []string
- func (x *VideoURL) GetAcceptQuality() []uint64
- func (x *VideoURL) GetCurrentQuality() uint64
- func (x *VideoURL) GetUrl() string
- func (*VideoURL) ProtoMessage()
- func (x *VideoURL) ProtoReflect() protoreflect.Message
- func (x *VideoURL) Reset()
- func (x *VideoURL) String() string
Constants ¶
const ( Bilibili_NewQRCode_FullMethodName = "/api.bilibili.Bilibili/NewQRCode" Bilibili_LoginWithQRCode_FullMethodName = "/api.bilibili.Bilibili/LoginWithQRCode" Bilibili_NewCaptcha_FullMethodName = "/api.bilibili.Bilibili/NewCaptcha" Bilibili_NewSMS_FullMethodName = "/api.bilibili.Bilibili/NewSMS" Bilibili_LoginWithSMS_FullMethodName = "/api.bilibili.Bilibili/LoginWithSMS" Bilibili_ParseVideoPage_FullMethodName = "/api.bilibili.Bilibili/ParseVideoPage" Bilibili_GetVideoURL_FullMethodName = "/api.bilibili.Bilibili/GetVideoURL" Bilibili_GetDashVideoURL_FullMethodName = "/api.bilibili.Bilibili/GetDashVideoURL" Bilibili_GetSubtitles_FullMethodName = "/api.bilibili.Bilibili/GetSubtitles" Bilibili_ParsePGCPage_FullMethodName = "/api.bilibili.Bilibili/ParsePGCPage" Bilibili_GetPGCURL_FullMethodName = "/api.bilibili.Bilibili/GetPGCURL" Bilibili_GetDashPGCURL_FullMethodName = "/api.bilibili.Bilibili/GetDashPGCURL" Bilibili_UserInfo_FullMethodName = "/api.bilibili.Bilibili/UserInfo" Bilibili_Match_FullMethodName = "/api.bilibili.Bilibili/Match" )
const OperationBilibiliGetDashPGCURL = "/api.bilibili.Bilibili/GetDashPGCURL"
const OperationBilibiliGetDashVideoURL = "/api.bilibili.Bilibili/GetDashVideoURL"
const OperationBilibiliGetPGCURL = "/api.bilibili.Bilibili/GetPGCURL"
const OperationBilibiliGetSubtitles = "/api.bilibili.Bilibili/GetSubtitles"
const OperationBilibiliGetVideoURL = "/api.bilibili.Bilibili/GetVideoURL"
const OperationBilibiliLoginWithQRCode = "/api.bilibili.Bilibili/LoginWithQRCode"
const OperationBilibiliLoginWithSMS = "/api.bilibili.Bilibili/LoginWithSMS"
const OperationBilibiliMatch = "/api.bilibili.Bilibili/Match"
const OperationBilibiliNewCaptcha = "/api.bilibili.Bilibili/NewCaptcha"
const OperationBilibiliNewQRCode = "/api.bilibili.Bilibili/NewQRCode"
const OperationBilibiliNewSMS = "/api.bilibili.Bilibili/NewSMS"
const OperationBilibiliParsePGCPage = "/api.bilibili.Bilibili/ParsePGCPage"
const OperationBilibiliParseVideoPage = "/api.bilibili.Bilibili/ParseVideoPage"
const OperationBilibiliUserInfo = "/api.bilibili.Bilibili/UserInfo"
Variables ¶
var ( QRCodeStatus_name = map[int32]string{ 0: "UNKNOWN", 1: "EXPIRED", 2: "NOTSCANNED", 3: "SCANNED", 4: "SUCCESS", } QRCodeStatus_value = map[string]int32{ "UNKNOWN": 0, "EXPIRED": 1, "NOTSCANNED": 2, "SCANNED": 3, "SUCCESS": 4, } )
Enum value maps for QRCodeStatus.
var Bilibili_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.bilibili.Bilibili", HandlerType: (*BilibiliServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NewQRCode", Handler: _Bilibili_NewQRCode_Handler, }, { MethodName: "LoginWithQRCode", Handler: _Bilibili_LoginWithQRCode_Handler, }, { MethodName: "NewCaptcha", Handler: _Bilibili_NewCaptcha_Handler, }, { MethodName: "NewSMS", Handler: _Bilibili_NewSMS_Handler, }, { MethodName: "LoginWithSMS", Handler: _Bilibili_LoginWithSMS_Handler, }, { MethodName: "ParseVideoPage", Handler: _Bilibili_ParseVideoPage_Handler, }, { MethodName: "GetVideoURL", Handler: _Bilibili_GetVideoURL_Handler, }, { MethodName: "GetDashVideoURL", Handler: _Bilibili_GetDashVideoURL_Handler, }, { MethodName: "GetSubtitles", Handler: _Bilibili_GetSubtitles_Handler, }, { MethodName: "ParsePGCPage", Handler: _Bilibili_ParsePGCPage_Handler, }, { MethodName: "GetPGCURL", Handler: _Bilibili_GetPGCURL_Handler, }, { MethodName: "GetDashPGCURL", Handler: _Bilibili_GetDashPGCURL_Handler, }, { MethodName: "UserInfo", Handler: _Bilibili_UserInfo_Handler, }, { MethodName: "Match", Handler: _Bilibili_Match_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "bilibili/bilibili.proto", }
Bilibili_ServiceDesc is the grpc.ServiceDesc for Bilibili service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_bilibili_bilibili_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBilibiliHTTPServer ¶
func RegisterBilibiliHTTPServer(s *http.Server, srv BilibiliHTTPServer)
func RegisterBilibiliServer ¶
func RegisterBilibiliServer(s grpc.ServiceRegistrar, srv BilibiliServer)
Types ¶
type BilibiliClient ¶
type BilibiliClient interface { NewQRCode(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*NewQRCodeResp, error) LoginWithQRCode(ctx context.Context, in *LoginWithQRCodeReq, opts ...grpc.CallOption) (*LoginWithQRCodeResp, error) NewCaptcha(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*NewCaptchaResp, error) NewSMS(ctx context.Context, in *NewSMSReq, opts ...grpc.CallOption) (*NewSMSResp, error) LoginWithSMS(ctx context.Context, in *LoginWithSMSReq, opts ...grpc.CallOption) (*LoginWithSMSResp, error) ParseVideoPage(ctx context.Context, in *ParseVideoPageReq, opts ...grpc.CallOption) (*VideoPageInfo, error) GetVideoURL(ctx context.Context, in *GetVideoURLReq, opts ...grpc.CallOption) (*VideoURL, error) GetDashVideoURL(ctx context.Context, in *GetDashVideoURLReq, opts ...grpc.CallOption) (*GetDashVideoURLResp, error) GetSubtitles(ctx context.Context, in *GetSubtitlesReq, opts ...grpc.CallOption) (*GetSubtitlesResp, error) ParsePGCPage(ctx context.Context, in *ParsePGCPageReq, opts ...grpc.CallOption) (*VideoPageInfo, error) GetPGCURL(ctx context.Context, in *GetPGCURLReq, opts ...grpc.CallOption) (*VideoURL, error) GetDashPGCURL(ctx context.Context, in *GetDashPGCURLReq, opts ...grpc.CallOption) (*GetDashPGCURLResp, error) UserInfo(ctx context.Context, in *UserInfoReq, opts ...grpc.CallOption) (*UserInfoResp, error) Match(ctx context.Context, in *MatchReq, opts ...grpc.CallOption) (*MatchResp, error) }
BilibiliClient is the client API for Bilibili service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBilibiliClient ¶
func NewBilibiliClient(cc grpc.ClientConnInterface) BilibiliClient
type BilibiliHTTPClient ¶
type BilibiliHTTPClient interface { GetDashPGCURL(ctx context.Context, req *GetDashPGCURLReq, opts ...http.CallOption) (rsp *GetDashPGCURLResp, err error) GetDashVideoURL(ctx context.Context, req *GetDashVideoURLReq, opts ...http.CallOption) (rsp *GetDashVideoURLResp, err error) GetPGCURL(ctx context.Context, req *GetPGCURLReq, opts ...http.CallOption) (rsp *VideoURL, err error) GetSubtitles(ctx context.Context, req *GetSubtitlesReq, opts ...http.CallOption) (rsp *GetSubtitlesResp, err error) GetVideoURL(ctx context.Context, req *GetVideoURLReq, opts ...http.CallOption) (rsp *VideoURL, err error) LoginWithQRCode(ctx context.Context, req *LoginWithQRCodeReq, opts ...http.CallOption) (rsp *LoginWithQRCodeResp, err error) LoginWithSMS(ctx context.Context, req *LoginWithSMSReq, opts ...http.CallOption) (rsp *LoginWithSMSResp, err error) Match(ctx context.Context, req *MatchReq, opts ...http.CallOption) (rsp *MatchResp, err error) NewCaptcha(ctx context.Context, req *Empty, opts ...http.CallOption) (rsp *NewCaptchaResp, err error) NewQRCode(ctx context.Context, req *Empty, opts ...http.CallOption) (rsp *NewQRCodeResp, err error) NewSMS(ctx context.Context, req *NewSMSReq, opts ...http.CallOption) (rsp *NewSMSResp, err error) ParsePGCPage(ctx context.Context, req *ParsePGCPageReq, opts ...http.CallOption) (rsp *VideoPageInfo, err error) ParseVideoPage(ctx context.Context, req *ParseVideoPageReq, opts ...http.CallOption) (rsp *VideoPageInfo, err error) UserInfo(ctx context.Context, req *UserInfoReq, opts ...http.CallOption) (rsp *UserInfoResp, err error) }
func NewBilibiliHTTPClient ¶
func NewBilibiliHTTPClient(client *http.Client) BilibiliHTTPClient
type BilibiliHTTPClientImpl ¶
type BilibiliHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*BilibiliHTTPClientImpl) GetDashPGCURL ¶
func (c *BilibiliHTTPClientImpl) GetDashPGCURL(ctx context.Context, in *GetDashPGCURLReq, opts ...http.CallOption) (*GetDashPGCURLResp, error)
func (*BilibiliHTTPClientImpl) GetDashVideoURL ¶
func (c *BilibiliHTTPClientImpl) GetDashVideoURL(ctx context.Context, in *GetDashVideoURLReq, opts ...http.CallOption) (*GetDashVideoURLResp, error)
func (*BilibiliHTTPClientImpl) GetPGCURL ¶
func (c *BilibiliHTTPClientImpl) GetPGCURL(ctx context.Context, in *GetPGCURLReq, opts ...http.CallOption) (*VideoURL, error)
func (*BilibiliHTTPClientImpl) GetSubtitles ¶
func (c *BilibiliHTTPClientImpl) GetSubtitles(ctx context.Context, in *GetSubtitlesReq, opts ...http.CallOption) (*GetSubtitlesResp, error)
func (*BilibiliHTTPClientImpl) GetVideoURL ¶
func (c *BilibiliHTTPClientImpl) GetVideoURL(ctx context.Context, in *GetVideoURLReq, opts ...http.CallOption) (*VideoURL, error)
func (*BilibiliHTTPClientImpl) LoginWithQRCode ¶
func (c *BilibiliHTTPClientImpl) LoginWithQRCode(ctx context.Context, in *LoginWithQRCodeReq, opts ...http.CallOption) (*LoginWithQRCodeResp, error)
func (*BilibiliHTTPClientImpl) LoginWithSMS ¶
func (c *BilibiliHTTPClientImpl) LoginWithSMS(ctx context.Context, in *LoginWithSMSReq, opts ...http.CallOption) (*LoginWithSMSResp, error)
func (*BilibiliHTTPClientImpl) Match ¶
func (c *BilibiliHTTPClientImpl) Match(ctx context.Context, in *MatchReq, opts ...http.CallOption) (*MatchResp, error)
func (*BilibiliHTTPClientImpl) NewCaptcha ¶
func (c *BilibiliHTTPClientImpl) NewCaptcha(ctx context.Context, in *Empty, opts ...http.CallOption) (*NewCaptchaResp, error)
func (*BilibiliHTTPClientImpl) NewQRCode ¶
func (c *BilibiliHTTPClientImpl) NewQRCode(ctx context.Context, in *Empty, opts ...http.CallOption) (*NewQRCodeResp, error)
func (*BilibiliHTTPClientImpl) NewSMS ¶
func (c *BilibiliHTTPClientImpl) NewSMS(ctx context.Context, in *NewSMSReq, opts ...http.CallOption) (*NewSMSResp, error)
func (*BilibiliHTTPClientImpl) ParsePGCPage ¶
func (c *BilibiliHTTPClientImpl) ParsePGCPage(ctx context.Context, in *ParsePGCPageReq, opts ...http.CallOption) (*VideoPageInfo, error)
func (*BilibiliHTTPClientImpl) ParseVideoPage ¶
func (c *BilibiliHTTPClientImpl) ParseVideoPage(ctx context.Context, in *ParseVideoPageReq, opts ...http.CallOption) (*VideoPageInfo, error)
func (*BilibiliHTTPClientImpl) UserInfo ¶
func (c *BilibiliHTTPClientImpl) UserInfo(ctx context.Context, in *UserInfoReq, opts ...http.CallOption) (*UserInfoResp, error)
type BilibiliHTTPServer ¶
type BilibiliHTTPServer interface { GetDashPGCURL(context.Context, *GetDashPGCURLReq) (*GetDashPGCURLResp, error) GetDashVideoURL(context.Context, *GetDashVideoURLReq) (*GetDashVideoURLResp, error) GetPGCURL(context.Context, *GetPGCURLReq) (*VideoURL, error) GetSubtitles(context.Context, *GetSubtitlesReq) (*GetSubtitlesResp, error) GetVideoURL(context.Context, *GetVideoURLReq) (*VideoURL, error) LoginWithQRCode(context.Context, *LoginWithQRCodeReq) (*LoginWithQRCodeResp, error) LoginWithSMS(context.Context, *LoginWithSMSReq) (*LoginWithSMSResp, error) Match(context.Context, *MatchReq) (*MatchResp, error) NewCaptcha(context.Context, *Empty) (*NewCaptchaResp, error) NewQRCode(context.Context, *Empty) (*NewQRCodeResp, error) NewSMS(context.Context, *NewSMSReq) (*NewSMSResp, error) ParsePGCPage(context.Context, *ParsePGCPageReq) (*VideoPageInfo, error) ParseVideoPage(context.Context, *ParseVideoPageReq) (*VideoPageInfo, error) UserInfo(context.Context, *UserInfoReq) (*UserInfoResp, error) }
type BilibiliServer ¶
type BilibiliServer interface { NewQRCode(context.Context, *Empty) (*NewQRCodeResp, error) LoginWithQRCode(context.Context, *LoginWithQRCodeReq) (*LoginWithQRCodeResp, error) NewCaptcha(context.Context, *Empty) (*NewCaptchaResp, error) NewSMS(context.Context, *NewSMSReq) (*NewSMSResp, error) LoginWithSMS(context.Context, *LoginWithSMSReq) (*LoginWithSMSResp, error) ParseVideoPage(context.Context, *ParseVideoPageReq) (*VideoPageInfo, error) GetVideoURL(context.Context, *GetVideoURLReq) (*VideoURL, error) GetDashVideoURL(context.Context, *GetDashVideoURLReq) (*GetDashVideoURLResp, error) GetSubtitles(context.Context, *GetSubtitlesReq) (*GetSubtitlesResp, error) ParsePGCPage(context.Context, *ParsePGCPageReq) (*VideoPageInfo, error) GetPGCURL(context.Context, *GetPGCURLReq) (*VideoURL, error) GetDashPGCURL(context.Context, *GetDashPGCURLReq) (*GetDashPGCURLResp, error) UserInfo(context.Context, *UserInfoReq) (*UserInfoResp, error) Match(context.Context, *MatchReq) (*MatchResp, error) // contains filtered or unexported methods }
BilibiliServer is the server API for Bilibili service. All implementations must embed UnimplementedBilibiliServer for forward compatibility
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetDashPGCURLReq ¶
type GetDashPGCURLReq struct { Cookies map[string]string `` /* 155-byte string literal not displayed */ Epid uint64 `protobuf:"varint,2,opt,name=epid,proto3" json:"epid,omitempty"` Cid uint64 `protobuf:"varint,3,opt,name=cid,proto3" json:"cid,omitempty"` // contains filtered or unexported fields }
func (*GetDashPGCURLReq) Descriptor
deprecated
func (*GetDashPGCURLReq) Descriptor() ([]byte, []int)
Deprecated: Use GetDashPGCURLReq.ProtoReflect.Descriptor instead.
func (*GetDashPGCURLReq) GetCid ¶
func (x *GetDashPGCURLReq) GetCid() uint64
func (*GetDashPGCURLReq) GetCookies ¶
func (x *GetDashPGCURLReq) GetCookies() map[string]string
func (*GetDashPGCURLReq) GetEpid ¶
func (x *GetDashPGCURLReq) GetEpid() uint64
func (*GetDashPGCURLReq) ProtoMessage ¶
func (*GetDashPGCURLReq) ProtoMessage()
func (*GetDashPGCURLReq) ProtoReflect ¶
func (x *GetDashPGCURLReq) ProtoReflect() protoreflect.Message
func (*GetDashPGCURLReq) Reset ¶
func (x *GetDashPGCURLReq) Reset()
func (*GetDashPGCURLReq) String ¶
func (x *GetDashPGCURLReq) String() string
type GetDashPGCURLResp ¶
type GetDashPGCURLResp struct { Mpd string `protobuf:"bytes,1,opt,name=mpd,proto3" json:"mpd,omitempty"` HevcMpd string `protobuf:"bytes,2,opt,name=hevcMpd,proto3" json:"hevcMpd,omitempty"` // contains filtered or unexported fields }
func (*GetDashPGCURLResp) Descriptor
deprecated
func (*GetDashPGCURLResp) Descriptor() ([]byte, []int)
Deprecated: Use GetDashPGCURLResp.ProtoReflect.Descriptor instead.
func (*GetDashPGCURLResp) GetHevcMpd ¶ added in v0.2.0
func (x *GetDashPGCURLResp) GetHevcMpd() string
func (*GetDashPGCURLResp) GetMpd ¶
func (x *GetDashPGCURLResp) GetMpd() string
func (*GetDashPGCURLResp) ProtoMessage ¶
func (*GetDashPGCURLResp) ProtoMessage()
func (*GetDashPGCURLResp) ProtoReflect ¶
func (x *GetDashPGCURLResp) ProtoReflect() protoreflect.Message
func (*GetDashPGCURLResp) Reset ¶
func (x *GetDashPGCURLResp) Reset()
func (*GetDashPGCURLResp) String ¶
func (x *GetDashPGCURLResp) String() string
type GetDashVideoURLReq ¶
type GetDashVideoURLReq struct { Cookies map[string]string `` /* 155-byte string literal not displayed */ Aid uint64 `protobuf:"varint,2,opt,name=aid,proto3" json:"aid,omitempty"` Bvid string `protobuf:"bytes,3,opt,name=bvid,proto3" json:"bvid,omitempty"` Cid uint64 `protobuf:"varint,4,opt,name=cid,proto3" json:"cid,omitempty"` // contains filtered or unexported fields }
func (*GetDashVideoURLReq) Descriptor
deprecated
func (*GetDashVideoURLReq) Descriptor() ([]byte, []int)
Deprecated: Use GetDashVideoURLReq.ProtoReflect.Descriptor instead.
func (*GetDashVideoURLReq) GetAid ¶
func (x *GetDashVideoURLReq) GetAid() uint64
func (*GetDashVideoURLReq) GetBvid ¶
func (x *GetDashVideoURLReq) GetBvid() string
func (*GetDashVideoURLReq) GetCid ¶
func (x *GetDashVideoURLReq) GetCid() uint64
func (*GetDashVideoURLReq) GetCookies ¶
func (x *GetDashVideoURLReq) GetCookies() map[string]string
func (*GetDashVideoURLReq) ProtoMessage ¶
func (*GetDashVideoURLReq) ProtoMessage()
func (*GetDashVideoURLReq) ProtoReflect ¶
func (x *GetDashVideoURLReq) ProtoReflect() protoreflect.Message
func (*GetDashVideoURLReq) Reset ¶
func (x *GetDashVideoURLReq) Reset()
func (*GetDashVideoURLReq) String ¶
func (x *GetDashVideoURLReq) String() string
type GetDashVideoURLResp ¶
type GetDashVideoURLResp struct { Mpd string `protobuf:"bytes,1,opt,name=mpd,proto3" json:"mpd,omitempty"` HevcMpd string `protobuf:"bytes,2,opt,name=hevcMpd,proto3" json:"hevcMpd,omitempty"` // contains filtered or unexported fields }
func (*GetDashVideoURLResp) Descriptor
deprecated
func (*GetDashVideoURLResp) Descriptor() ([]byte, []int)
Deprecated: Use GetDashVideoURLResp.ProtoReflect.Descriptor instead.
func (*GetDashVideoURLResp) GetHevcMpd ¶ added in v0.2.0
func (x *GetDashVideoURLResp) GetHevcMpd() string
func (*GetDashVideoURLResp) GetMpd ¶
func (x *GetDashVideoURLResp) GetMpd() string
func (*GetDashVideoURLResp) ProtoMessage ¶
func (*GetDashVideoURLResp) ProtoMessage()
func (*GetDashVideoURLResp) ProtoReflect ¶
func (x *GetDashVideoURLResp) ProtoReflect() protoreflect.Message
func (*GetDashVideoURLResp) Reset ¶
func (x *GetDashVideoURLResp) Reset()
func (*GetDashVideoURLResp) String ¶
func (x *GetDashVideoURLResp) String() string
type GetPGCURLReq ¶
type GetPGCURLReq struct { Cookies map[string]string `` /* 155-byte string literal not displayed */ Epid uint64 `protobuf:"varint,2,opt,name=epid,proto3" json:"epid,omitempty"` Cid uint64 `protobuf:"varint,3,opt,name=cid,proto3" json:"cid,omitempty"` Quality uint64 `protobuf:"varint,4,opt,name=quality,proto3" json:"quality,omitempty"` // contains filtered or unexported fields }
func (*GetPGCURLReq) Descriptor
deprecated
func (*GetPGCURLReq) Descriptor() ([]byte, []int)
Deprecated: Use GetPGCURLReq.ProtoReflect.Descriptor instead.
func (*GetPGCURLReq) GetCid ¶
func (x *GetPGCURLReq) GetCid() uint64
func (*GetPGCURLReq) GetCookies ¶
func (x *GetPGCURLReq) GetCookies() map[string]string
func (*GetPGCURLReq) GetEpid ¶
func (x *GetPGCURLReq) GetEpid() uint64
func (*GetPGCURLReq) GetQuality ¶
func (x *GetPGCURLReq) GetQuality() uint64
func (*GetPGCURLReq) ProtoMessage ¶
func (*GetPGCURLReq) ProtoMessage()
func (*GetPGCURLReq) ProtoReflect ¶
func (x *GetPGCURLReq) ProtoReflect() protoreflect.Message
func (*GetPGCURLReq) Reset ¶
func (x *GetPGCURLReq) Reset()
func (*GetPGCURLReq) String ¶
func (x *GetPGCURLReq) String() string
type GetSubtitlesReq ¶
type GetSubtitlesReq struct { Cookies map[string]string `` /* 155-byte string literal not displayed */ Aid uint64 `protobuf:"varint,2,opt,name=aid,proto3" json:"aid,omitempty"` Bvid string `protobuf:"bytes,3,opt,name=bvid,proto3" json:"bvid,omitempty"` Cid uint64 `protobuf:"varint,4,opt,name=cid,proto3" json:"cid,omitempty"` // contains filtered or unexported fields }
func (*GetSubtitlesReq) Descriptor
deprecated
func (*GetSubtitlesReq) Descriptor() ([]byte, []int)
Deprecated: Use GetSubtitlesReq.ProtoReflect.Descriptor instead.
func (*GetSubtitlesReq) GetAid ¶
func (x *GetSubtitlesReq) GetAid() uint64
func (*GetSubtitlesReq) GetBvid ¶
func (x *GetSubtitlesReq) GetBvid() string
func (*GetSubtitlesReq) GetCid ¶
func (x *GetSubtitlesReq) GetCid() uint64
func (*GetSubtitlesReq) GetCookies ¶
func (x *GetSubtitlesReq) GetCookies() map[string]string
func (*GetSubtitlesReq) ProtoMessage ¶
func (*GetSubtitlesReq) ProtoMessage()
func (*GetSubtitlesReq) ProtoReflect ¶
func (x *GetSubtitlesReq) ProtoReflect() protoreflect.Message
func (*GetSubtitlesReq) Reset ¶
func (x *GetSubtitlesReq) Reset()
func (*GetSubtitlesReq) String ¶
func (x *GetSubtitlesReq) String() string
type GetSubtitlesResp ¶
type GetSubtitlesResp struct { Subtitles map[string]string `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetSubtitlesResp) Descriptor
deprecated
func (*GetSubtitlesResp) Descriptor() ([]byte, []int)
Deprecated: Use GetSubtitlesResp.ProtoReflect.Descriptor instead.
func (*GetSubtitlesResp) GetSubtitles ¶
func (x *GetSubtitlesResp) GetSubtitles() map[string]string
func (*GetSubtitlesResp) ProtoMessage ¶
func (*GetSubtitlesResp) ProtoMessage()
func (*GetSubtitlesResp) ProtoReflect ¶
func (x *GetSubtitlesResp) ProtoReflect() protoreflect.Message
func (*GetSubtitlesResp) Reset ¶
func (x *GetSubtitlesResp) Reset()
func (*GetSubtitlesResp) String ¶
func (x *GetSubtitlesResp) String() string
type GetVideoURLReq ¶
type GetVideoURLReq struct { Cookies map[string]string `` /* 155-byte string literal not displayed */ Aid uint64 `protobuf:"varint,2,opt,name=aid,proto3" json:"aid,omitempty"` Bvid string `protobuf:"bytes,3,opt,name=bvid,proto3" json:"bvid,omitempty"` Cid uint64 `protobuf:"varint,4,opt,name=cid,proto3" json:"cid,omitempty"` Quality uint64 `protobuf:"varint,5,opt,name=quality,proto3" json:"quality,omitempty"` // contains filtered or unexported fields }
func (*GetVideoURLReq) Descriptor
deprecated
func (*GetVideoURLReq) Descriptor() ([]byte, []int)
Deprecated: Use GetVideoURLReq.ProtoReflect.Descriptor instead.
func (*GetVideoURLReq) GetAid ¶
func (x *GetVideoURLReq) GetAid() uint64
func (*GetVideoURLReq) GetBvid ¶
func (x *GetVideoURLReq) GetBvid() string
func (*GetVideoURLReq) GetCid ¶
func (x *GetVideoURLReq) GetCid() uint64
func (*GetVideoURLReq) GetCookies ¶
func (x *GetVideoURLReq) GetCookies() map[string]string
func (*GetVideoURLReq) GetQuality ¶
func (x *GetVideoURLReq) GetQuality() uint64
func (*GetVideoURLReq) ProtoMessage ¶
func (*GetVideoURLReq) ProtoMessage()
func (*GetVideoURLReq) ProtoReflect ¶
func (x *GetVideoURLReq) ProtoReflect() protoreflect.Message
func (*GetVideoURLReq) Reset ¶
func (x *GetVideoURLReq) Reset()
func (*GetVideoURLReq) String ¶
func (x *GetVideoURLReq) String() string
type LoginWithQRCodeReq ¶
type LoginWithQRCodeReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*LoginWithQRCodeReq) Descriptor
deprecated
func (*LoginWithQRCodeReq) Descriptor() ([]byte, []int)
Deprecated: Use LoginWithQRCodeReq.ProtoReflect.Descriptor instead.
func (*LoginWithQRCodeReq) GetKey ¶
func (x *LoginWithQRCodeReq) GetKey() string
func (*LoginWithQRCodeReq) ProtoMessage ¶
func (*LoginWithQRCodeReq) ProtoMessage()
func (*LoginWithQRCodeReq) ProtoReflect ¶
func (x *LoginWithQRCodeReq) ProtoReflect() protoreflect.Message
func (*LoginWithQRCodeReq) Reset ¶
func (x *LoginWithQRCodeReq) Reset()
func (*LoginWithQRCodeReq) String ¶
func (x *LoginWithQRCodeReq) String() string
type LoginWithQRCodeResp ¶
type LoginWithQRCodeResp struct { Status QRCodeStatus `protobuf:"varint,1,opt,name=status,proto3,enum=api.bilibili.QRCodeStatus" json:"status,omitempty"` Cookies map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LoginWithQRCodeResp) Descriptor
deprecated
func (*LoginWithQRCodeResp) Descriptor() ([]byte, []int)
Deprecated: Use LoginWithQRCodeResp.ProtoReflect.Descriptor instead.
func (*LoginWithQRCodeResp) GetCookies ¶
func (x *LoginWithQRCodeResp) GetCookies() map[string]string
func (*LoginWithQRCodeResp) GetStatus ¶
func (x *LoginWithQRCodeResp) GetStatus() QRCodeStatus
func (*LoginWithQRCodeResp) ProtoMessage ¶
func (*LoginWithQRCodeResp) ProtoMessage()
func (*LoginWithQRCodeResp) ProtoReflect ¶
func (x *LoginWithQRCodeResp) ProtoReflect() protoreflect.Message
func (*LoginWithQRCodeResp) Reset ¶
func (x *LoginWithQRCodeResp) Reset()
func (*LoginWithQRCodeResp) String ¶
func (x *LoginWithQRCodeResp) String() string
type LoginWithSMSReq ¶
type LoginWithSMSReq struct { Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` CaptchaKey string `protobuf:"bytes,3,opt,name=captchaKey,proto3" json:"captchaKey,omitempty"` // contains filtered or unexported fields }
func (*LoginWithSMSReq) Descriptor
deprecated
func (*LoginWithSMSReq) Descriptor() ([]byte, []int)
Deprecated: Use LoginWithSMSReq.ProtoReflect.Descriptor instead.
func (*LoginWithSMSReq) GetCaptchaKey ¶
func (x *LoginWithSMSReq) GetCaptchaKey() string
func (*LoginWithSMSReq) GetCode ¶
func (x *LoginWithSMSReq) GetCode() string
func (*LoginWithSMSReq) GetPhone ¶
func (x *LoginWithSMSReq) GetPhone() string
func (*LoginWithSMSReq) ProtoMessage ¶
func (*LoginWithSMSReq) ProtoMessage()
func (*LoginWithSMSReq) ProtoReflect ¶
func (x *LoginWithSMSReq) ProtoReflect() protoreflect.Message
func (*LoginWithSMSReq) Reset ¶
func (x *LoginWithSMSReq) Reset()
func (*LoginWithSMSReq) String ¶
func (x *LoginWithSMSReq) String() string
type LoginWithSMSResp ¶
type LoginWithSMSResp struct { Cookies map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LoginWithSMSResp) Descriptor
deprecated
func (*LoginWithSMSResp) Descriptor() ([]byte, []int)
Deprecated: Use LoginWithSMSResp.ProtoReflect.Descriptor instead.
func (*LoginWithSMSResp) GetCookies ¶
func (x *LoginWithSMSResp) GetCookies() map[string]string
func (*LoginWithSMSResp) ProtoMessage ¶
func (*LoginWithSMSResp) ProtoMessage()
func (*LoginWithSMSResp) ProtoReflect ¶
func (x *LoginWithSMSResp) ProtoReflect() protoreflect.Message
func (*LoginWithSMSResp) Reset ¶
func (x *LoginWithSMSResp) Reset()
func (*LoginWithSMSResp) String ¶
func (x *LoginWithSMSResp) String() string
type MatchReq ¶
type MatchReq struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*MatchReq) Descriptor
deprecated
func (*MatchReq) ProtoMessage ¶
func (*MatchReq) ProtoMessage()
func (*MatchReq) ProtoReflect ¶
func (x *MatchReq) ProtoReflect() protoreflect.Message
type MatchResp ¶
type MatchResp struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*MatchResp) Descriptor
deprecated
func (*MatchResp) ProtoMessage ¶
func (*MatchResp) ProtoMessage()
func (*MatchResp) ProtoReflect ¶
func (x *MatchResp) ProtoReflect() protoreflect.Message
type NewCaptchaResp ¶
type NewCaptchaResp struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Gt string `protobuf:"bytes,2,opt,name=gt,proto3" json:"gt,omitempty"` Challenge string `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"` // contains filtered or unexported fields }
func (*NewCaptchaResp) Descriptor
deprecated
func (*NewCaptchaResp) Descriptor() ([]byte, []int)
Deprecated: Use NewCaptchaResp.ProtoReflect.Descriptor instead.
func (*NewCaptchaResp) GetChallenge ¶
func (x *NewCaptchaResp) GetChallenge() string
func (*NewCaptchaResp) GetGt ¶
func (x *NewCaptchaResp) GetGt() string
func (*NewCaptchaResp) GetToken ¶
func (x *NewCaptchaResp) GetToken() string
func (*NewCaptchaResp) ProtoMessage ¶
func (*NewCaptchaResp) ProtoMessage()
func (*NewCaptchaResp) ProtoReflect ¶
func (x *NewCaptchaResp) ProtoReflect() protoreflect.Message
func (*NewCaptchaResp) Reset ¶
func (x *NewCaptchaResp) Reset()
func (*NewCaptchaResp) String ¶
func (x *NewCaptchaResp) String() string
type NewQRCodeResp ¶
type NewQRCodeResp struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*NewQRCodeResp) Descriptor
deprecated
func (*NewQRCodeResp) Descriptor() ([]byte, []int)
Deprecated: Use NewQRCodeResp.ProtoReflect.Descriptor instead.
func (*NewQRCodeResp) GetKey ¶
func (x *NewQRCodeResp) GetKey() string
func (*NewQRCodeResp) GetUrl ¶
func (x *NewQRCodeResp) GetUrl() string
func (*NewQRCodeResp) ProtoMessage ¶
func (*NewQRCodeResp) ProtoMessage()
func (*NewQRCodeResp) ProtoReflect ¶
func (x *NewQRCodeResp) ProtoReflect() protoreflect.Message
func (*NewQRCodeResp) Reset ¶
func (x *NewQRCodeResp) Reset()
func (*NewQRCodeResp) String ¶
func (x *NewQRCodeResp) String() string
type NewSMSReq ¶
type NewSMSReq struct { Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` Challenge string `protobuf:"bytes,3,opt,name=challenge,proto3" json:"challenge,omitempty"` Validate string `protobuf:"bytes,4,opt,name=validate,proto3" json:"validate,omitempty"` // contains filtered or unexported fields }
func (*NewSMSReq) Descriptor
deprecated
func (*NewSMSReq) GetChallenge ¶
func (*NewSMSReq) GetValidate ¶
func (*NewSMSReq) ProtoMessage ¶
func (*NewSMSReq) ProtoMessage()
func (*NewSMSReq) ProtoReflect ¶
func (x *NewSMSReq) ProtoReflect() protoreflect.Message
type NewSMSResp ¶
type NewSMSResp struct { CaptchaKey string `protobuf:"bytes,1,opt,name=captchaKey,proto3" json:"captchaKey,omitempty"` // contains filtered or unexported fields }
func (*NewSMSResp) Descriptor
deprecated
func (*NewSMSResp) Descriptor() ([]byte, []int)
Deprecated: Use NewSMSResp.ProtoReflect.Descriptor instead.
func (*NewSMSResp) GetCaptchaKey ¶
func (x *NewSMSResp) GetCaptchaKey() string
func (*NewSMSResp) ProtoMessage ¶
func (*NewSMSResp) ProtoMessage()
func (*NewSMSResp) ProtoReflect ¶
func (x *NewSMSResp) ProtoReflect() protoreflect.Message
func (*NewSMSResp) Reset ¶
func (x *NewSMSResp) Reset()
func (*NewSMSResp) String ¶
func (x *NewSMSResp) String() string
type ParsePGCPageReq ¶
type ParsePGCPageReq struct { Cookies map[string]string `` /* 155-byte string literal not displayed */ Ssid uint64 `protobuf:"varint,2,opt,name=ssid,proto3" json:"ssid,omitempty"` Epid uint64 `protobuf:"varint,3,opt,name=epid,proto3" json:"epid,omitempty"` // contains filtered or unexported fields }
func (*ParsePGCPageReq) Descriptor
deprecated
func (*ParsePGCPageReq) Descriptor() ([]byte, []int)
Deprecated: Use ParsePGCPageReq.ProtoReflect.Descriptor instead.
func (*ParsePGCPageReq) GetCookies ¶
func (x *ParsePGCPageReq) GetCookies() map[string]string
func (*ParsePGCPageReq) GetEpid ¶
func (x *ParsePGCPageReq) GetEpid() uint64
func (*ParsePGCPageReq) GetSsid ¶
func (x *ParsePGCPageReq) GetSsid() uint64
func (*ParsePGCPageReq) ProtoMessage ¶
func (*ParsePGCPageReq) ProtoMessage()
func (*ParsePGCPageReq) ProtoReflect ¶
func (x *ParsePGCPageReq) ProtoReflect() protoreflect.Message
func (*ParsePGCPageReq) Reset ¶
func (x *ParsePGCPageReq) Reset()
func (*ParsePGCPageReq) String ¶
func (x *ParsePGCPageReq) String() string
type ParseVideoPageReq ¶
type ParseVideoPageReq struct { Cookies map[string]string `` /* 155-byte string literal not displayed */ Aid uint64 `protobuf:"varint,2,opt,name=aid,proto3" json:"aid,omitempty"` Bvid string `protobuf:"bytes,3,opt,name=bvid,proto3" json:"bvid,omitempty"` Sections bool `protobuf:"varint,4,opt,name=sections,proto3" json:"sections,omitempty"` // contains filtered or unexported fields }
func (*ParseVideoPageReq) Descriptor
deprecated
func (*ParseVideoPageReq) Descriptor() ([]byte, []int)
Deprecated: Use ParseVideoPageReq.ProtoReflect.Descriptor instead.
func (*ParseVideoPageReq) GetAid ¶
func (x *ParseVideoPageReq) GetAid() uint64
func (*ParseVideoPageReq) GetBvid ¶
func (x *ParseVideoPageReq) GetBvid() string
func (*ParseVideoPageReq) GetCookies ¶
func (x *ParseVideoPageReq) GetCookies() map[string]string
func (*ParseVideoPageReq) GetSections ¶
func (x *ParseVideoPageReq) GetSections() bool
func (*ParseVideoPageReq) ProtoMessage ¶
func (*ParseVideoPageReq) ProtoMessage()
func (*ParseVideoPageReq) ProtoReflect ¶
func (x *ParseVideoPageReq) ProtoReflect() protoreflect.Message
func (*ParseVideoPageReq) Reset ¶
func (x *ParseVideoPageReq) Reset()
func (*ParseVideoPageReq) String ¶
func (x *ParseVideoPageReq) String() string
type QRCodeStatus ¶
type QRCodeStatus int32
const ( QRCodeStatus_UNKNOWN QRCodeStatus = 0 QRCodeStatus_EXPIRED QRCodeStatus = 1 QRCodeStatus_NOTSCANNED QRCodeStatus = 2 QRCodeStatus_SCANNED QRCodeStatus = 3 QRCodeStatus_SUCCESS QRCodeStatus = 4 )
func (QRCodeStatus) Descriptor ¶
func (QRCodeStatus) Descriptor() protoreflect.EnumDescriptor
func (QRCodeStatus) Enum ¶
func (x QRCodeStatus) Enum() *QRCodeStatus
func (QRCodeStatus) EnumDescriptor
deprecated
func (QRCodeStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use QRCodeStatus.Descriptor instead.
func (QRCodeStatus) Number ¶
func (x QRCodeStatus) Number() protoreflect.EnumNumber
func (QRCodeStatus) String ¶
func (x QRCodeStatus) String() string
func (QRCodeStatus) Type ¶
func (QRCodeStatus) Type() protoreflect.EnumType
type UnimplementedBilibiliServer ¶
type UnimplementedBilibiliServer struct { }
UnimplementedBilibiliServer must be embedded to have forward compatible implementations.
func (UnimplementedBilibiliServer) GetDashPGCURL ¶
func (UnimplementedBilibiliServer) GetDashPGCURL(context.Context, *GetDashPGCURLReq) (*GetDashPGCURLResp, error)
func (UnimplementedBilibiliServer) GetDashVideoURL ¶
func (UnimplementedBilibiliServer) GetDashVideoURL(context.Context, *GetDashVideoURLReq) (*GetDashVideoURLResp, error)
func (UnimplementedBilibiliServer) GetPGCURL ¶
func (UnimplementedBilibiliServer) GetPGCURL(context.Context, *GetPGCURLReq) (*VideoURL, error)
func (UnimplementedBilibiliServer) GetSubtitles ¶
func (UnimplementedBilibiliServer) GetSubtitles(context.Context, *GetSubtitlesReq) (*GetSubtitlesResp, error)
func (UnimplementedBilibiliServer) GetVideoURL ¶
func (UnimplementedBilibiliServer) GetVideoURL(context.Context, *GetVideoURLReq) (*VideoURL, error)
func (UnimplementedBilibiliServer) LoginWithQRCode ¶
func (UnimplementedBilibiliServer) LoginWithQRCode(context.Context, *LoginWithQRCodeReq) (*LoginWithQRCodeResp, error)
func (UnimplementedBilibiliServer) LoginWithSMS ¶
func (UnimplementedBilibiliServer) LoginWithSMS(context.Context, *LoginWithSMSReq) (*LoginWithSMSResp, error)
func (UnimplementedBilibiliServer) NewCaptcha ¶
func (UnimplementedBilibiliServer) NewCaptcha(context.Context, *Empty) (*NewCaptchaResp, error)
func (UnimplementedBilibiliServer) NewQRCode ¶
func (UnimplementedBilibiliServer) NewQRCode(context.Context, *Empty) (*NewQRCodeResp, error)
func (UnimplementedBilibiliServer) NewSMS ¶
func (UnimplementedBilibiliServer) NewSMS(context.Context, *NewSMSReq) (*NewSMSResp, error)
func (UnimplementedBilibiliServer) ParsePGCPage ¶
func (UnimplementedBilibiliServer) ParsePGCPage(context.Context, *ParsePGCPageReq) (*VideoPageInfo, error)
func (UnimplementedBilibiliServer) ParseVideoPage ¶
func (UnimplementedBilibiliServer) ParseVideoPage(context.Context, *ParseVideoPageReq) (*VideoPageInfo, error)
func (UnimplementedBilibiliServer) UserInfo ¶
func (UnimplementedBilibiliServer) UserInfo(context.Context, *UserInfoReq) (*UserInfoResp, error)
type UnsafeBilibiliServer ¶
type UnsafeBilibiliServer interface {
// contains filtered or unexported methods
}
UnsafeBilibiliServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BilibiliServer will result in compilation errors.
type UserInfoReq ¶
type UserInfoReq struct { Cookies map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UserInfoReq) Descriptor
deprecated
func (*UserInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoReq.ProtoReflect.Descriptor instead.
func (*UserInfoReq) GetCookies ¶
func (x *UserInfoReq) GetCookies() map[string]string
func (*UserInfoReq) ProtoMessage ¶
func (*UserInfoReq) ProtoMessage()
func (*UserInfoReq) ProtoReflect ¶
func (x *UserInfoReq) ProtoReflect() protoreflect.Message
func (*UserInfoReq) Reset ¶
func (x *UserInfoReq) Reset()
func (*UserInfoReq) String ¶
func (x *UserInfoReq) String() string
type UserInfoResp ¶
type UserInfoResp struct { IsLogin bool `protobuf:"varint,1,opt,name=isLogin,proto3" json:"isLogin,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Face string `protobuf:"bytes,3,opt,name=face,proto3" json:"face,omitempty"` IsVip bool `protobuf:"varint,4,opt,name=isVip,proto3" json:"isVip,omitempty"` // contains filtered or unexported fields }
func (*UserInfoResp) Descriptor
deprecated
func (*UserInfoResp) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoResp.ProtoReflect.Descriptor instead.
func (*UserInfoResp) GetFace ¶
func (x *UserInfoResp) GetFace() string
func (*UserInfoResp) GetIsLogin ¶
func (x *UserInfoResp) GetIsLogin() bool
func (*UserInfoResp) GetIsVip ¶
func (x *UserInfoResp) GetIsVip() bool
func (*UserInfoResp) GetUsername ¶
func (x *UserInfoResp) GetUsername() string
func (*UserInfoResp) ProtoMessage ¶
func (*UserInfoResp) ProtoMessage()
func (*UserInfoResp) ProtoReflect ¶
func (x *UserInfoResp) ProtoReflect() protoreflect.Message
func (*UserInfoResp) Reset ¶
func (x *UserInfoResp) Reset()
func (*UserInfoResp) String ¶
func (x *UserInfoResp) String() string
type VideoInfo ¶
type VideoInfo struct { Bvid string `protobuf:"bytes,2,opt,name=bvid,proto3" json:"bvid,omitempty"` Cid uint64 `protobuf:"varint,3,opt,name=cid,proto3" json:"cid,omitempty"` Epid uint64 `protobuf:"varint,4,opt,name=epid,proto3" json:"epid,omitempty"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` CoverImage string `protobuf:"bytes,6,opt,name=coverImage,proto3" json:"coverImage,omitempty"` // contains filtered or unexported fields }
func (*VideoInfo) Descriptor
deprecated
func (*VideoInfo) GetCoverImage ¶
func (*VideoInfo) ProtoMessage ¶
func (*VideoInfo) ProtoMessage()
func (*VideoInfo) ProtoReflect ¶
func (x *VideoInfo) ProtoReflect() protoreflect.Message
type VideoPageInfo ¶
type VideoPageInfo struct { Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Actors string `protobuf:"bytes,3,opt,name=actors,proto3" json:"actors,omitempty"` VideoInfos []*VideoInfo `protobuf:"bytes,4,rep,name=videoInfos,proto3" json:"videoInfos,omitempty"` // contains filtered or unexported fields }
func (*VideoPageInfo) Descriptor
deprecated
func (*VideoPageInfo) Descriptor() ([]byte, []int)
Deprecated: Use VideoPageInfo.ProtoReflect.Descriptor instead.
func (*VideoPageInfo) GetActors ¶
func (x *VideoPageInfo) GetActors() string
func (*VideoPageInfo) GetTitle ¶
func (x *VideoPageInfo) GetTitle() string
func (*VideoPageInfo) GetVideoInfos ¶
func (x *VideoPageInfo) GetVideoInfos() []*VideoInfo
func (*VideoPageInfo) ProtoMessage ¶
func (*VideoPageInfo) ProtoMessage()
func (*VideoPageInfo) ProtoReflect ¶
func (x *VideoPageInfo) ProtoReflect() protoreflect.Message
func (*VideoPageInfo) Reset ¶
func (x *VideoPageInfo) Reset()
func (*VideoPageInfo) String ¶
func (x *VideoPageInfo) String() string
type VideoURL ¶
type VideoURL struct { AcceptDescription []string `protobuf:"bytes,1,rep,name=acceptDescription,proto3" json:"acceptDescription,omitempty"` AcceptQuality []uint64 `protobuf:"varint,2,rep,packed,name=acceptQuality,proto3" json:"acceptQuality,omitempty"` CurrentQuality uint64 `protobuf:"varint,3,opt,name=currentQuality,proto3" json:"currentQuality,omitempty"` Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*VideoURL) Descriptor
deprecated
func (*VideoURL) GetAcceptDescription ¶
func (*VideoURL) GetAcceptQuality ¶
func (*VideoURL) GetCurrentQuality ¶
func (*VideoURL) ProtoMessage ¶
func (*VideoURL) ProtoMessage()
func (*VideoURL) ProtoReflect ¶
func (x *VideoURL) ProtoReflect() protoreflect.Message