Documentation
¶
Overview ¶
Package api is a generated protocol buffer package.
use {app_id}.{version} as package name
It is generated from these files:
app/service/main/archive/api/api.proto
It has these top-level messages:
NoArgRequest NoReply DescriptionRequest DescriptionReply MaxAidReply ArcRequest ArcReply ArcsRequest ArcsReply ViewRequest StatRequest StatReply StatsRequest StatsReply ViewReply ViewsRequest ViewsReply TypesReply ClickRequest ClickReply PageRequest PageReply RecommendRequest RecommendReply VideoRequest VideoReply Tp AidVideos Arc StaffInfo Dimension Rights Author Stat Click Page VideoFileInfo VideoFormatFileInfo DashItem ResponseDash BvcVideoItem BvcResponseMsg ArcCacheRequest ArcFieldCacheRequest UpVideoCacheRequest DelVideoCacheRequest SetStatRequest
Index ¶
- Constants
- Variables
- func RegisterArchiveServer(s *grpc.Server, srv ArchiveServer)
- type AidVideos
- func (*AidVideos) Descriptor() ([]byte, []int)
- func (m *AidVideos) GetAid() int64
- func (m *AidVideos) GetPages() []*Page
- func (m *AidVideos) Marshal() (dAtA []byte, err error)
- func (m *AidVideos) MarshalTo(dAtA []byte) (int, error)
- func (*AidVideos) ProtoMessage()
- func (m *AidVideos) Reset()
- func (m *AidVideos) Size() (n int)
- func (m *AidVideos) String() string
- func (m *AidVideos) Unmarshal(dAtA []byte) error
- type Arc
- func (a *Arc) AttrVal(bit uint) int32
- func (*Arc) Descriptor() ([]byte, []int)
- func (a *Arc) Fill()
- func (a *Arc) FillDimension(d string)
- func (a *Arc) FillStat()
- func (m *Arc) GetAccess() int32
- func (m *Arc) GetAid() int64
- func (m *Arc) GetAttribute() int32
- func (m *Arc) GetAuthor() Author
- func (m *Arc) GetCopyright() int32
- func (m *Arc) GetCtime() go_common_library_time.Time
- func (m *Arc) GetDesc() string
- func (m *Arc) GetDimension() Dimension
- func (m *Arc) GetDuration() int64
- func (m *Arc) GetDynamic() string
- func (m *Arc) GetFirstCid() int64
- func (m *Arc) GetForward() int64
- func (m *Arc) GetMissionID() int64
- func (m *Arc) GetOrderID() int64
- func (m *Arc) GetPic() string
- func (m *Arc) GetPubDate() go_common_library_time.Time
- func (m *Arc) GetRedirectURL() string
- func (m *Arc) GetReportResult() string
- func (m *Arc) GetRights() Rights
- func (m *Arc) GetStaffInfo() []*StaffInfo
- func (m *Arc) GetStat() Stat
- func (m *Arc) GetState() int32
- func (m *Arc) GetTag() string
- func (m *Arc) GetTags() []string
- func (m *Arc) GetTitle() string
- func (m *Arc) GetTypeID() int32
- func (m *Arc) GetTypeName() string
- func (m *Arc) GetVideos() int64
- func (a *Arc) IsNormal() bool
- func (m *Arc) Marshal() (dAtA []byte, err error)
- func (m *Arc) MarshalTo(dAtA []byte) (int, error)
- func (*Arc) ProtoMessage()
- func (m *Arc) Reset()
- func (m *Arc) Size() (n int)
- func (m *Arc) String() string
- func (m *Arc) Unmarshal(dAtA []byte) error
- type ArcCacheRequest
- func (*ArcCacheRequest) Descriptor() ([]byte, []int)
- func (m *ArcCacheRequest) GetAid() int64
- func (m *ArcCacheRequest) GetOldMid() int64
- func (m *ArcCacheRequest) GetTp() string
- func (m *ArcCacheRequest) Marshal() (dAtA []byte, err error)
- func (m *ArcCacheRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ArcCacheRequest) ProtoMessage()
- func (m *ArcCacheRequest) Reset()
- func (m *ArcCacheRequest) Size() (n int)
- func (m *ArcCacheRequest) String() string
- func (m *ArcCacheRequest) Unmarshal(dAtA []byte) error
- type ArcFieldCacheRequest
- func (*ArcFieldCacheRequest) Descriptor() ([]byte, []int)
- func (m *ArcFieldCacheRequest) GetAid() int64
- func (m *ArcFieldCacheRequest) GetOldTypeID() int32
- func (m *ArcFieldCacheRequest) GetTypeID() int32
- func (m *ArcFieldCacheRequest) Marshal() (dAtA []byte, err error)
- func (m *ArcFieldCacheRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ArcFieldCacheRequest) ProtoMessage()
- func (m *ArcFieldCacheRequest) Reset()
- func (m *ArcFieldCacheRequest) Size() (n int)
- func (m *ArcFieldCacheRequest) String() string
- func (m *ArcFieldCacheRequest) Unmarshal(dAtA []byte) error
- type ArcReply
- func (*ArcReply) Descriptor() ([]byte, []int)
- func (m *ArcReply) GetArc() *Arc
- func (m *ArcReply) Marshal() (dAtA []byte, err error)
- func (m *ArcReply) MarshalTo(dAtA []byte) (int, error)
- func (*ArcReply) ProtoMessage()
- func (m *ArcReply) Reset()
- func (m *ArcReply) Size() (n int)
- func (m *ArcReply) String() string
- func (m *ArcReply) Unmarshal(dAtA []byte) error
- type ArcRequest
- func (*ArcRequest) Descriptor() ([]byte, []int)
- func (m *ArcRequest) GetAid() int64
- func (m *ArcRequest) Marshal() (dAtA []byte, err error)
- func (m *ArcRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ArcRequest) ProtoMessage()
- func (m *ArcRequest) Reset()
- func (m *ArcRequest) Size() (n int)
- func (m *ArcRequest) String() string
- func (m *ArcRequest) Unmarshal(dAtA []byte) error
- type ArchiveClient
- type ArchiveServer
- type ArcsReply
- func (*ArcsReply) Descriptor() ([]byte, []int)
- func (m *ArcsReply) GetArcs() map[int64]*Arc
- func (m *ArcsReply) Marshal() (dAtA []byte, err error)
- func (m *ArcsReply) MarshalTo(dAtA []byte) (int, error)
- func (*ArcsReply) ProtoMessage()
- func (m *ArcsReply) Reset()
- func (m *ArcsReply) Size() (n int)
- func (m *ArcsReply) String() string
- func (m *ArcsReply) Unmarshal(dAtA []byte) error
- type ArcsRequest
- func (*ArcsRequest) Descriptor() ([]byte, []int)
- func (m *ArcsRequest) GetAids() []int64
- func (m *ArcsRequest) Marshal() (dAtA []byte, err error)
- func (m *ArcsRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ArcsRequest) ProtoMessage()
- func (m *ArcsRequest) Reset()
- func (m *ArcsRequest) Size() (n int)
- func (m *ArcsRequest) String() string
- func (m *ArcsRequest) Unmarshal(dAtA []byte) error
- type Author
- func (*Author) Descriptor() ([]byte, []int)
- func (m *Author) GetFace() string
- func (m *Author) GetMid() int64
- func (m *Author) GetName() string
- func (m *Author) Marshal() (dAtA []byte, err error)
- func (m *Author) MarshalTo(dAtA []byte) (int, error)
- func (*Author) ProtoMessage()
- func (m *Author) Reset()
- func (m *Author) Size() (n int)
- func (m *Author) String() string
- func (m *Author) Unmarshal(dAtA []byte) error
- type BvcResponseMsg
- func (*BvcResponseMsg) Descriptor() ([]byte, []int)
- func (m *BvcResponseMsg) GetCode() int64
- func (m *BvcResponseMsg) GetData() map[uint32]*BvcVideoItem
- func (m *BvcResponseMsg) Marshal() (dAtA []byte, err error)
- func (m *BvcResponseMsg) MarshalTo(dAtA []byte) (int, error)
- func (*BvcResponseMsg) ProtoMessage()
- func (m *BvcResponseMsg) Reset()
- func (m *BvcResponseMsg) Size() (n int)
- func (m *BvcResponseMsg) String() string
- func (m *BvcResponseMsg) Unmarshal(dAtA []byte) error
- type BvcVideoItem
- func (*BvcVideoItem) Descriptor() ([]byte, []int)
- func (m *BvcVideoItem) GetCid() int64
- func (m *BvcVideoItem) GetDash() *ResponseDash
- func (m *BvcVideoItem) GetExpireTime() int64
- func (m *BvcVideoItem) GetFileInfo() map[uint32]*VideoFormatFileInfo
- func (m *BvcVideoItem) GetFnval() int
- func (m *BvcVideoItem) GetFnver() int
- func (m *BvcVideoItem) GetQuality() int
- func (m *BvcVideoItem) GetSupportDescription() []string
- func (m *BvcVideoItem) GetSupportFormats() []string
- func (m *BvcVideoItem) GetSupportQuality() []int
- func (m *BvcVideoItem) GetUrl() string
- func (m *BvcVideoItem) GetVideoCodecid() uint32
- func (m *BvcVideoItem) GetVideoProject() bool
- func (m *BvcVideoItem) Marshal() (dAtA []byte, err error)
- func (m *BvcVideoItem) MarshalTo(dAtA []byte) (int, error)
- func (*BvcVideoItem) ProtoMessage()
- func (m *BvcVideoItem) Reset()
- func (m *BvcVideoItem) Size() (n int)
- func (m *BvcVideoItem) String() string
- func (m *BvcVideoItem) Unmarshal(dAtA []byte) error
- type Click
- func (*Click) Descriptor() ([]byte, []int)
- func (m *Click) GetAid() int64
- func (m *Click) GetAndroid() int32
- func (m *Click) GetH5() int32
- func (m *Click) GetIos() int32
- func (m *Click) GetOutter() int32
- func (m *Click) GetWeb() int32
- func (m *Click) Marshal() (dAtA []byte, err error)
- func (m *Click) MarshalTo(dAtA []byte) (int, error)
- func (*Click) ProtoMessage()
- func (m *Click) Reset()
- func (m *Click) Size() (n int)
- func (m *Click) String() string
- func (m *Click) Unmarshal(dAtA []byte) error
- type ClickReply
- func (*ClickReply) Descriptor() ([]byte, []int)
- func (m *ClickReply) GetClick() *Click
- func (m *ClickReply) Marshal() (dAtA []byte, err error)
- func (m *ClickReply) MarshalTo(dAtA []byte) (int, error)
- func (*ClickReply) ProtoMessage()
- func (m *ClickReply) Reset()
- func (m *ClickReply) Size() (n int)
- func (m *ClickReply) String() string
- func (m *ClickReply) Unmarshal(dAtA []byte) error
- type ClickRequest
- func (*ClickRequest) Descriptor() ([]byte, []int)
- func (m *ClickRequest) GetAid() int64
- func (m *ClickRequest) Marshal() (dAtA []byte, err error)
- func (m *ClickRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ClickRequest) ProtoMessage()
- func (m *ClickRequest) Reset()
- func (m *ClickRequest) Size() (n int)
- func (m *ClickRequest) String() string
- func (m *ClickRequest) Unmarshal(dAtA []byte) error
- type DashItem
- func (*DashItem) Descriptor() ([]byte, []int)
- func (m *DashItem) GetBandwidth() int64
- func (m *DashItem) GetBaseUrl() string
- func (m *DashItem) GetCodecid() int64
- func (m *DashItem) GetId() int64
- func (m *DashItem) Marshal() (dAtA []byte, err error)
- func (m *DashItem) MarshalTo(dAtA []byte) (int, error)
- func (*DashItem) ProtoMessage()
- func (m *DashItem) Reset()
- func (m *DashItem) Size() (n int)
- func (m *DashItem) String() string
- func (m *DashItem) Unmarshal(dAtA []byte) error
- type DelVideoCacheRequest
- func (*DelVideoCacheRequest) Descriptor() ([]byte, []int)
- func (m *DelVideoCacheRequest) GetAid() int64
- func (m *DelVideoCacheRequest) GetCid() int64
- func (m *DelVideoCacheRequest) Marshal() (dAtA []byte, err error)
- func (m *DelVideoCacheRequest) MarshalTo(dAtA []byte) (int, error)
- func (*DelVideoCacheRequest) ProtoMessage()
- func (m *DelVideoCacheRequest) Reset()
- func (m *DelVideoCacheRequest) Size() (n int)
- func (m *DelVideoCacheRequest) String() string
- func (m *DelVideoCacheRequest) Unmarshal(dAtA []byte) error
- type DescriptionReply
- func (*DescriptionReply) Descriptor() ([]byte, []int)
- func (m *DescriptionReply) GetDesc() string
- func (m *DescriptionReply) Marshal() (dAtA []byte, err error)
- func (m *DescriptionReply) MarshalTo(dAtA []byte) (int, error)
- func (*DescriptionReply) ProtoMessage()
- func (m *DescriptionReply) Reset()
- func (m *DescriptionReply) Size() (n int)
- func (m *DescriptionReply) String() string
- func (m *DescriptionReply) Unmarshal(dAtA []byte) error
- type DescriptionRequest
- func (*DescriptionRequest) Descriptor() ([]byte, []int)
- func (m *DescriptionRequest) GetAid() int64
- func (m *DescriptionRequest) Marshal() (dAtA []byte, err error)
- func (m *DescriptionRequest) MarshalTo(dAtA []byte) (int, error)
- func (*DescriptionRequest) ProtoMessage()
- func (m *DescriptionRequest) Reset()
- func (m *DescriptionRequest) Size() (n int)
- func (m *DescriptionRequest) String() string
- func (m *DescriptionRequest) Unmarshal(dAtA []byte) error
- type Dimension
- func (*Dimension) Descriptor() ([]byte, []int)
- func (m *Dimension) GetHeight() int64
- func (m *Dimension) GetRotate() int64
- func (m *Dimension) GetWidth() int64
- func (m *Dimension) Marshal() (dAtA []byte, err error)
- func (m *Dimension) MarshalTo(dAtA []byte) (int, error)
- func (*Dimension) ProtoMessage()
- func (m *Dimension) Reset()
- func (m *Dimension) Size() (n int)
- func (m *Dimension) String() string
- func (m *Dimension) Unmarshal(dAtA []byte) error
- type MaxAidReply
- func (*MaxAidReply) Descriptor() ([]byte, []int)
- func (m *MaxAidReply) GetAid() int64
- func (m *MaxAidReply) Marshal() (dAtA []byte, err error)
- func (m *MaxAidReply) MarshalTo(dAtA []byte) (int, error)
- func (*MaxAidReply) ProtoMessage()
- func (m *MaxAidReply) Reset()
- func (m *MaxAidReply) Size() (n int)
- func (m *MaxAidReply) String() string
- func (m *MaxAidReply) Unmarshal(dAtA []byte) error
- type NoArgRequest
- func (*NoArgRequest) Descriptor() ([]byte, []int)
- func (m *NoArgRequest) Marshal() (dAtA []byte, err error)
- func (m *NoArgRequest) MarshalTo(dAtA []byte) (int, error)
- func (*NoArgRequest) ProtoMessage()
- func (m *NoArgRequest) Reset()
- func (m *NoArgRequest) Size() (n int)
- func (m *NoArgRequest) String() string
- func (m *NoArgRequest) Unmarshal(dAtA []byte) error
- type NoReply
- func (*NoReply) Descriptor() ([]byte, []int)
- func (m *NoReply) Marshal() (dAtA []byte, err error)
- func (m *NoReply) MarshalTo(dAtA []byte) (int, error)
- func (*NoReply) ProtoMessage()
- func (m *NoReply) Reset()
- func (m *NoReply) Size() (n int)
- func (m *NoReply) String() string
- func (m *NoReply) Unmarshal(dAtA []byte) error
- type Page
- func (*Page) Descriptor() ([]byte, []int)
- func (v *Page) FillDimension(d string)
- func (m *Page) GetCid() int64
- func (m *Page) GetDesc() string
- func (m *Page) GetDimension() Dimension
- func (m *Page) GetDuration() int64
- func (m *Page) GetFrom() string
- func (m *Page) GetPage() int32
- func (m *Page) GetPart() string
- func (m *Page) GetVid() string
- func (m *Page) GetWebLink() string
- func (m *Page) Marshal() (dAtA []byte, err error)
- func (m *Page) MarshalTo(dAtA []byte) (int, error)
- func (*Page) ProtoMessage()
- func (m *Page) Reset()
- func (m *Page) Size() (n int)
- func (m *Page) String() string
- func (m *Page) Unmarshal(dAtA []byte) error
- type PageReply
- func (*PageReply) Descriptor() ([]byte, []int)
- func (m *PageReply) GetPages() []*Page
- func (m *PageReply) Marshal() (dAtA []byte, err error)
- func (m *PageReply) MarshalTo(dAtA []byte) (int, error)
- func (*PageReply) ProtoMessage()
- func (m *PageReply) Reset()
- func (m *PageReply) Size() (n int)
- func (m *PageReply) String() string
- func (m *PageReply) Unmarshal(dAtA []byte) error
- type PageRequest
- func (*PageRequest) Descriptor() ([]byte, []int)
- func (m *PageRequest) GetAid() int64
- func (m *PageRequest) Marshal() (dAtA []byte, err error)
- func (m *PageRequest) MarshalTo(dAtA []byte) (int, error)
- func (*PageRequest) ProtoMessage()
- func (m *PageRequest) Reset()
- func (m *PageRequest) Size() (n int)
- func (m *PageRequest) String() string
- func (m *PageRequest) Unmarshal(dAtA []byte) error
- type PlayerFileInfo
- type PlayerInfo
- type RecommendReply
- func (*RecommendReply) Descriptor() ([]byte, []int)
- func (m *RecommendReply) GetArcs() []*Arc
- func (m *RecommendReply) Marshal() (dAtA []byte, err error)
- func (m *RecommendReply) MarshalTo(dAtA []byte) (int, error)
- func (*RecommendReply) ProtoMessage()
- func (m *RecommendReply) Reset()
- func (m *RecommendReply) Size() (n int)
- func (m *RecommendReply) String() string
- func (m *RecommendReply) Unmarshal(dAtA []byte) error
- type RecommendRequest
- func (*RecommendRequest) Descriptor() ([]byte, []int)
- func (m *RecommendRequest) GetAid() int64
- func (m *RecommendRequest) Marshal() (dAtA []byte, err error)
- func (m *RecommendRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RecommendRequest) ProtoMessage()
- func (m *RecommendRequest) Reset()
- func (m *RecommendRequest) Size() (n int)
- func (m *RecommendRequest) String() string
- func (m *RecommendRequest) Unmarshal(dAtA []byte) error
- type RegionArc
- type ResponseDash
- func (*ResponseDash) Descriptor() ([]byte, []int)
- func (m *ResponseDash) GetAudio() []*DashItem
- func (m *ResponseDash) GetVideo() []*DashItem
- func (m *ResponseDash) Marshal() (dAtA []byte, err error)
- func (m *ResponseDash) MarshalTo(dAtA []byte) (int, error)
- func (*ResponseDash) ProtoMessage()
- func (m *ResponseDash) Reset()
- func (m *ResponseDash) Size() (n int)
- func (m *ResponseDash) String() string
- func (m *ResponseDash) Unmarshal(dAtA []byte) error
- type Rights
- func (*Rights) Descriptor() ([]byte, []int)
- func (m *Rights) GetAutoplay() int32
- func (m *Rights) GetBp() int32
- func (m *Rights) GetDownload() int32
- func (m *Rights) GetElec() int32
- func (m *Rights) GetHD5() int32
- func (m *Rights) GetIsCooperation() int32
- func (m *Rights) GetMovie() int32
- func (m *Rights) GetNoReprint() int32
- func (m *Rights) GetPay() int32
- func (m *Rights) GetUGCPay() int32
- func (m *Rights) Marshal() (dAtA []byte, err error)
- func (m *Rights) MarshalTo(dAtA []byte) (int, error)
- func (*Rights) ProtoMessage()
- func (m *Rights) Reset()
- func (m *Rights) Size() (n int)
- func (m *Rights) String() string
- func (m *Rights) Unmarshal(dAtA []byte) error
- type SetStatRequest
- func (*SetStatRequest) Descriptor() ([]byte, []int)
- func (m *SetStatRequest) GetStat() *Stat
- func (m *SetStatRequest) Marshal() (dAtA []byte, err error)
- func (m *SetStatRequest) MarshalTo(dAtA []byte) (int, error)
- func (*SetStatRequest) ProtoMessage()
- func (m *SetStatRequest) Reset()
- func (m *SetStatRequest) Size() (n int)
- func (m *SetStatRequest) String() string
- func (m *SetStatRequest) Unmarshal(dAtA []byte) error
- type StaffInfo
- func (*StaffInfo) Descriptor() ([]byte, []int)
- func (m *StaffInfo) GetMid() int64
- func (m *StaffInfo) GetTitle() string
- func (m *StaffInfo) Marshal() (dAtA []byte, err error)
- func (m *StaffInfo) MarshalTo(dAtA []byte) (int, error)
- func (*StaffInfo) ProtoMessage()
- func (m *StaffInfo) Reset()
- func (m *StaffInfo) Size() (n int)
- func (m *StaffInfo) String() string
- func (m *StaffInfo) Unmarshal(dAtA []byte) error
- type Stat
- func (*Stat) Descriptor() ([]byte, []int)
- func (m *Stat) GetAid() int64
- func (m *Stat) GetCoin() int32
- func (m *Stat) GetDanmaku() int32
- func (m *Stat) GetDisLike() int32
- func (m *Stat) GetFav() int32
- func (m *Stat) GetHisRank() int32
- func (m *Stat) GetLike() int32
- func (m *Stat) GetNowRank() int32
- func (m *Stat) GetReply() int32
- func (m *Stat) GetShare() int32
- func (m *Stat) GetView() int32
- func (m *Stat) Marshal() (dAtA []byte, err error)
- func (m *Stat) MarshalTo(dAtA []byte) (int, error)
- func (*Stat) ProtoMessage()
- func (m *Stat) Reset()
- func (m *Stat) Size() (n int)
- func (m *Stat) String() string
- func (m *Stat) Unmarshal(dAtA []byte) error
- type StatReply
- func (*StatReply) Descriptor() ([]byte, []int)
- func (m *StatReply) GetStat() *Stat
- func (m *StatReply) Marshal() (dAtA []byte, err error)
- func (m *StatReply) MarshalTo(dAtA []byte) (int, error)
- func (*StatReply) ProtoMessage()
- func (m *StatReply) Reset()
- func (m *StatReply) Size() (n int)
- func (m *StatReply) String() string
- func (m *StatReply) Unmarshal(dAtA []byte) error
- type StatRequest
- func (*StatRequest) Descriptor() ([]byte, []int)
- func (m *StatRequest) GetAid() int64
- func (m *StatRequest) Marshal() (dAtA []byte, err error)
- func (m *StatRequest) MarshalTo(dAtA []byte) (int, error)
- func (*StatRequest) ProtoMessage()
- func (m *StatRequest) Reset()
- func (m *StatRequest) Size() (n int)
- func (m *StatRequest) String() string
- func (m *StatRequest) Unmarshal(dAtA []byte) error
- type StatsReply
- func (*StatsReply) Descriptor() ([]byte, []int)
- func (m *StatsReply) GetStats() map[int64]*Stat
- func (m *StatsReply) Marshal() (dAtA []byte, err error)
- func (m *StatsReply) MarshalTo(dAtA []byte) (int, error)
- func (*StatsReply) ProtoMessage()
- func (m *StatsReply) Reset()
- func (m *StatsReply) Size() (n int)
- func (m *StatsReply) String() string
- func (m *StatsReply) Unmarshal(dAtA []byte) error
- type StatsRequest
- func (*StatsRequest) Descriptor() ([]byte, []int)
- func (m *StatsRequest) GetAids() []int64
- func (m *StatsRequest) Marshal() (dAtA []byte, err error)
- func (m *StatsRequest) MarshalTo(dAtA []byte) (int, error)
- func (*StatsRequest) ProtoMessage()
- func (m *StatsRequest) Reset()
- func (m *StatsRequest) Size() (n int)
- func (m *StatsRequest) String() string
- func (m *StatsRequest) Unmarshal(dAtA []byte) error
- type Tp
- func (*Tp) Descriptor() ([]byte, []int)
- func (m *Tp) GetID() int32
- func (m *Tp) GetName() string
- func (m *Tp) GetPid() int32
- func (m *Tp) Marshal() (dAtA []byte, err error)
- func (m *Tp) MarshalTo(dAtA []byte) (int, error)
- func (*Tp) ProtoMessage()
- func (m *Tp) Reset()
- func (m *Tp) Size() (n int)
- func (m *Tp) String() string
- func (m *Tp) Unmarshal(dAtA []byte) error
- type TypesReply
- func (*TypesReply) Descriptor() ([]byte, []int)
- func (m *TypesReply) GetTypes() map[int32]*Tp
- func (m *TypesReply) Marshal() (dAtA []byte, err error)
- func (m *TypesReply) MarshalTo(dAtA []byte) (int, error)
- func (*TypesReply) ProtoMessage()
- func (m *TypesReply) Reset()
- func (m *TypesReply) Size() (n int)
- func (m *TypesReply) String() string
- func (m *TypesReply) Unmarshal(dAtA []byte) error
- type UpVideoCacheRequest
- func (*UpVideoCacheRequest) Descriptor() ([]byte, []int)
- func (m *UpVideoCacheRequest) GetAid() int64
- func (m *UpVideoCacheRequest) GetCid() int64
- func (m *UpVideoCacheRequest) Marshal() (dAtA []byte, err error)
- func (m *UpVideoCacheRequest) MarshalTo(dAtA []byte) (int, error)
- func (*UpVideoCacheRequest) ProtoMessage()
- func (m *UpVideoCacheRequest) Reset()
- func (m *UpVideoCacheRequest) Size() (n int)
- func (m *UpVideoCacheRequest) String() string
- func (m *UpVideoCacheRequest) Unmarshal(dAtA []byte) error
- type VideoFileInfo
- func (*VideoFileInfo) Descriptor() ([]byte, []int)
- func (m *VideoFileInfo) GetAhead() string
- func (m *VideoFileInfo) GetFilesize() int64
- func (m *VideoFileInfo) GetTimelength() int64
- func (m *VideoFileInfo) GetVhead() string
- func (m *VideoFileInfo) Marshal() (dAtA []byte, err error)
- func (m *VideoFileInfo) MarshalTo(dAtA []byte) (int, error)
- func (*VideoFileInfo) ProtoMessage()
- func (m *VideoFileInfo) Reset()
- func (m *VideoFileInfo) Size() (n int)
- func (m *VideoFileInfo) String() string
- func (m *VideoFileInfo) Unmarshal(dAtA []byte) error
- type VideoFormatFileInfo
- func (*VideoFormatFileInfo) Descriptor() ([]byte, []int)
- func (m *VideoFormatFileInfo) GetInfos() []*VideoFileInfo
- func (m *VideoFormatFileInfo) Marshal() (dAtA []byte, err error)
- func (m *VideoFormatFileInfo) MarshalTo(dAtA []byte) (int, error)
- func (*VideoFormatFileInfo) ProtoMessage()
- func (m *VideoFormatFileInfo) Reset()
- func (m *VideoFormatFileInfo) Size() (n int)
- func (m *VideoFormatFileInfo) String() string
- func (m *VideoFormatFileInfo) Unmarshal(dAtA []byte) error
- type VideoReply
- func (*VideoReply) Descriptor() ([]byte, []int)
- func (m *VideoReply) GetPage() *Page
- func (m *VideoReply) Marshal() (dAtA []byte, err error)
- func (m *VideoReply) MarshalTo(dAtA []byte) (int, error)
- func (*VideoReply) ProtoMessage()
- func (m *VideoReply) Reset()
- func (m *VideoReply) Size() (n int)
- func (m *VideoReply) String() string
- func (m *VideoReply) Unmarshal(dAtA []byte) error
- type VideoRequest
- func (*VideoRequest) Descriptor() ([]byte, []int)
- func (m *VideoRequest) GetAid() int64
- func (m *VideoRequest) GetCid() int64
- func (m *VideoRequest) Marshal() (dAtA []byte, err error)
- func (m *VideoRequest) MarshalTo(dAtA []byte) (int, error)
- func (*VideoRequest) ProtoMessage()
- func (m *VideoRequest) Reset()
- func (m *VideoRequest) Size() (n int)
- func (m *VideoRequest) String() string
- func (m *VideoRequest) Unmarshal(dAtA []byte) error
- type ViewReply
- func (*ViewReply) Descriptor() ([]byte, []int)
- func (m *ViewReply) GetPages() []*Page
- func (m *ViewReply) Marshal() (dAtA []byte, err error)
- func (m *ViewReply) MarshalTo(dAtA []byte) (int, error)
- func (*ViewReply) ProtoMessage()
- func (m *ViewReply) Reset()
- func (m *ViewReply) Size() (n int)
- func (m *ViewReply) String() string
- func (m *ViewReply) Unmarshal(dAtA []byte) error
- type ViewRequest
- func (*ViewRequest) Descriptor() ([]byte, []int)
- func (m *ViewRequest) GetAid() int64
- func (m *ViewRequest) Marshal() (dAtA []byte, err error)
- func (m *ViewRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ViewRequest) ProtoMessage()
- func (m *ViewRequest) Reset()
- func (m *ViewRequest) Size() (n int)
- func (m *ViewRequest) String() string
- func (m *ViewRequest) Unmarshal(dAtA []byte) error
- type ViewsReply
- func (*ViewsReply) Descriptor() ([]byte, []int)
- func (m *ViewsReply) GetViews() map[int64]*ViewReply
- func (m *ViewsReply) Marshal() (dAtA []byte, err error)
- func (m *ViewsReply) MarshalTo(dAtA []byte) (int, error)
- func (*ViewsReply) ProtoMessage()
- func (m *ViewsReply) Reset()
- func (m *ViewsReply) Size() (n int)
- func (m *ViewsReply) String() string
- func (m *ViewsReply) Unmarshal(dAtA []byte) error
- type ViewsRequest
- func (*ViewsRequest) Descriptor() ([]byte, []int)
- func (m *ViewsRequest) GetAids() []int64
- func (m *ViewsRequest) Marshal() (dAtA []byte, err error)
- func (m *ViewsRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ViewsRequest) ProtoMessage()
- func (m *ViewsRequest) Reset()
- func (m *ViewsRequest) Size() (n int)
- func (m *ViewsRequest) String() string
- func (m *ViewsRequest) Unmarshal(dAtA []byte) error
Constants ¶
View Source
const ( // open state StateOpen = 0 StateOrange = 1 AccessMember = int32(10000) // forbid state StateForbidWait = -1 StateForbidRecicle = -2 StateForbidPolice = -3 StateForbidLock = -4 StateForbidFixed = -6 StateForbidLater = -7 StateForbidAdminDelay = -10 StateForbidXcodeFail = -16 StateForbidSubmit = -30 StateForbidUserDelay = -40 StateForbidUpDelete = -100 // copyright CopyrightUnknow = int8(0) CopyrightOriginal = int8(1) CopyrightCopy = int8(2) // attribute yes and no AttrYes = int32(1) AttrNo = int32(0) // attribute bit AttrBitNoRank = uint(0) AttrBitNoDynamic = uint(1) AttrBitNoWeb = uint(2) AttrBitNoMobile = uint(3) // AttrBitNoSearch = uint(4) AttrBitOverseaLock = uint(5) AttrBitNoRecommend = uint(6) AttrBitNoReprint = uint(7) AttrBitHasHD5 = uint(8) AttrBitIsPGC = uint(9) AttrBitAllowBp = uint(10) AttrBitIsBangumi = uint(11) AttrBitIsPorder = uint(12) AttrBitLimitArea = uint(13) AttrBitAllowTag = uint(14) // AttrBitIsFromArcApi = uint(15) AttrBitJumpUrl = uint(16) AttrBitIsMovie = uint(17) AttrBitBadgepay = uint(18) AttrBitUGCPay = uint(22) AttrBitHasBGM = uint(23) AttrBitIsCooperation = uint(24) AttrBitHasViewpoint = uint(25) AttrBitHasArgument = uint(26) )
各属性地址见 http://syncsvn.bilibili.co/platform/doc/blob/master/archive/field/state.md all const
View Source
const AppID = "archive.service"
AppID .
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterArchiveServer ¶
func RegisterArchiveServer(s *grpc.Server, srv ArchiveServer)
Types ¶
type AidVideos ¶
type AidVideos struct { Aid int64 `protobuf:"varint,1,opt,name=Aid,proto3" json:"aid"` // 分P信息 Pages []*Page `protobuf:"bytes,2,rep,name=Pages" json:"pages"` }
func (*AidVideos) Descriptor ¶
func (*AidVideos) ProtoMessage ¶
func (*AidVideos) ProtoMessage()
type Arc ¶
type Arc struct { Aid int64 `protobuf:"varint,1,opt,name=Aid,proto3" json:"aid"` // 稿件一共有多少分P Videos int64 `protobuf:"varint,2,opt,name=Videos,proto3" json:"videos"` // 分区ID TypeID int32 `protobuf:"varint,3,opt,name=TypeID,proto3" json:"tid"` // 分区名 TypeName string `protobuf:"bytes,4,opt,name=TypeName,proto3" json:"tname"` // 是否转载 1=原创 2=转载 0=历史上可能遗留的脏数据 Copyright int32 `protobuf:"varint,5,opt,name=Copyright,proto3" json:"copyright"` // 稿件封面图地址,绝对地址 如 http://i0.hdslb.com/bfs/xxx.jpg Pic string `protobuf:"bytes,6,opt,name=Pic,proto3" json:"pic"` // 稿件标题 Title string `protobuf:"bytes,7,opt,name=Title,proto3" json:"title"` // 稿件发布时间 对外展示的标准时间 时间戳格式 PubDate go_common_library_time.Time `protobuf:"varint,8,opt,name=PubDate,proto3,casttype=go-common/library/time.Time" json:"pubdate"` // 用户提交稿件的时间 一般不对外展示 时间戳格式 Ctime go_common_library_time.Time `protobuf:"varint,9,opt,name=Ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"` // 稿件简介 Desc string `protobuf:"bytes,10,opt,name=Desc,proto3" json:"desc"` // 稿件状态,>=0为前台用户可见状态,其他值详见 http://info.bilibili.co/pages/viewpage.action?pageId=3686597#id-%E7%A8%BF%E4%BB%B6%E5%AD%97%E6%AE%B5%E6%9E%9A%E4%B8%BE%E5%80%BC%E5%B1%9E%E6%80%A7%E8%AF%B4%E6%98%8E-%E7%A8%BF%E4%BB%B6%E7%8A%B6%E6%80%81state&access State int32 `protobuf:"varint,11,opt,name=State,proto3" json:"state"` // 稿件访问属性 0=全员可见 10000=登录用户可见(极少) Access int32 `protobuf:"varint,12,opt,name=Access,proto3" json:"access,omitempty"` // 稿件属性 详见State字段的文档 Attribute int32 `protobuf:"varint,13,opt,name=Attribute,proto3" json:"attribute,omitempty"` // 废弃字段 Tag string `protobuf:"bytes,14,opt,name=Tag,proto3" json:"-"` // 废弃字段 Tags []string `protobuf:"bytes,15,rep,name=Tags" json:"tags,omitempty"` // 稿件总时长(所有分P加起来的) 单位=秒 Duration int64 `protobuf:"varint,16,opt,name=Duration,proto3" json:"duration"` // 稿件绑定的活动id MissionID int64 `protobuf:"varint,17,opt,name=MissionID,proto3" json:"mission_id,omitempty"` // 稿件绑定的商单id OrderID int64 `protobuf:"varint,18,opt,name=OrderID,proto3" json:"order_id,omitempty"` // 稿件后台设置的强制跳转地址,如果该值不为空,则必须调转到它对应的页面上 RedirectURL string `protobuf:"bytes,19,opt,name=RedirectURL,proto3" json:"redirect_url,omitempty"` Forward int64 `protobuf:"varint,20,opt,name=Forward,proto3" json:"forward,omitempty"` // 见Rights字段说明 Rights Rights `protobuf:"bytes,21,opt,name=Rights" json:"rights"` // 稿件作者信息,详见Author字段说明 Author Author `protobuf:"bytes,22,opt,name=Author" json:"owner"` // 稿件计数信息,详见Stat字段说明 Stat Stat `protobuf:"bytes,23,opt,name=Stat" json:"stat"` ReportResult string `protobuf:"bytes,24,opt,name=ReportResult,proto3" json:"report_result,omitempty"` // 发布稿件时Up主设置的动态描述(仅在动态展示) Dynamic string `protobuf:"bytes,25,opt,name=Dynamic,proto3" json:"dynamic"` // 稿件第一P的cid,供秒开使用 FirstCid int64 `protobuf:"varint,26,opt,name=FirstCid,proto3" json:"cid,omitempty"` // 稿件第一P的分辨率,详见Dimession字段说明 Dimension Dimension `protobuf:"bytes,27,opt,name=Dimension" json:"dimension,omitempty"` // 联合投稿信息,内部使用,详见StaffInfo说明 StaffInfo []*StaffInfo `protobuf:"bytes,28,rep,name=StaffInfo" json:"-"` }
func (*Arc) Descriptor ¶
func (*Arc) GetAttribute ¶
func (*Arc) GetCopyright ¶
func (*Arc) GetCtime ¶
func (m *Arc) GetCtime() go_common_library_time.Time
func (*Arc) GetDimension ¶
func (*Arc) GetDuration ¶
func (*Arc) GetDynamic ¶
func (*Arc) GetFirstCid ¶
func (*Arc) GetForward ¶
func (*Arc) GetMissionID ¶
func (*Arc) GetOrderID ¶
func (*Arc) GetPubDate ¶
func (m *Arc) GetPubDate() go_common_library_time.Time
func (*Arc) GetRedirectURL ¶
func (*Arc) GetReportResult ¶
func (*Arc) GetStaffInfo ¶
func (*Arc) GetTypeName ¶
func (*Arc) ProtoMessage ¶
func (*Arc) ProtoMessage()
type ArcCacheRequest ¶
type ArcCacheRequest struct { Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"` Tp string `protobuf:"bytes,2,opt,name=tp,proto3" json:"tp,omitempty"` OldMid int64 `protobuf:"varint,3,opt,name=OldMid,proto3" json:"OldMid,omitempty"` }
内部方法 请勿使用--------------------------------------------------------------------------------------------
func (*ArcCacheRequest) Descriptor ¶
func (*ArcCacheRequest) Descriptor() ([]byte, []int)
func (*ArcCacheRequest) GetAid ¶
func (m *ArcCacheRequest) GetAid() int64
func (*ArcCacheRequest) GetOldMid ¶
func (m *ArcCacheRequest) GetOldMid() int64
func (*ArcCacheRequest) GetTp ¶
func (m *ArcCacheRequest) GetTp() string
func (*ArcCacheRequest) Marshal ¶
func (m *ArcCacheRequest) Marshal() (dAtA []byte, err error)
func (*ArcCacheRequest) ProtoMessage ¶
func (*ArcCacheRequest) ProtoMessage()
func (*ArcCacheRequest) Reset ¶
func (m *ArcCacheRequest) Reset()
func (*ArcCacheRequest) Size ¶
func (m *ArcCacheRequest) Size() (n int)
func (*ArcCacheRequest) String ¶
func (m *ArcCacheRequest) String() string
func (*ArcCacheRequest) Unmarshal ¶
func (m *ArcCacheRequest) Unmarshal(dAtA []byte) error
type ArcFieldCacheRequest ¶
type ArcFieldCacheRequest struct { Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"` TypeID int32 `protobuf:"varint,2,opt,name=typeID,proto3" json:"typeID,omitempty"` OldTypeID int32 `protobuf:"varint,3,opt,name=oldTypeID,proto3" json:"oldTypeID,omitempty"` }
func (*ArcFieldCacheRequest) Descriptor ¶
func (*ArcFieldCacheRequest) Descriptor() ([]byte, []int)
func (*ArcFieldCacheRequest) GetAid ¶
func (m *ArcFieldCacheRequest) GetAid() int64
func (*ArcFieldCacheRequest) GetOldTypeID ¶
func (m *ArcFieldCacheRequest) GetOldTypeID() int32
func (*ArcFieldCacheRequest) GetTypeID ¶
func (m *ArcFieldCacheRequest) GetTypeID() int32
func (*ArcFieldCacheRequest) Marshal ¶
func (m *ArcFieldCacheRequest) Marshal() (dAtA []byte, err error)
func (*ArcFieldCacheRequest) MarshalTo ¶
func (m *ArcFieldCacheRequest) MarshalTo(dAtA []byte) (int, error)
func (*ArcFieldCacheRequest) ProtoMessage ¶
func (*ArcFieldCacheRequest) ProtoMessage()
func (*ArcFieldCacheRequest) Reset ¶
func (m *ArcFieldCacheRequest) Reset()
func (*ArcFieldCacheRequest) Size ¶
func (m *ArcFieldCacheRequest) Size() (n int)
func (*ArcFieldCacheRequest) String ¶
func (m *ArcFieldCacheRequest) String() string
func (*ArcFieldCacheRequest) Unmarshal ¶
func (m *ArcFieldCacheRequest) Unmarshal(dAtA []byte) error
type ArcReply ¶
type ArcReply struct {
Arc *Arc `protobuf:"bytes,1,opt,name=arc" json:"arc,omitempty"`
}
func (*ArcReply) Descriptor ¶
func (*ArcReply) ProtoMessage ¶
func (*ArcReply) ProtoMessage()
type ArcRequest ¶
type ArcRequest struct {
Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
}
func (*ArcRequest) Descriptor ¶
func (*ArcRequest) Descriptor() ([]byte, []int)
func (*ArcRequest) GetAid ¶
func (m *ArcRequest) GetAid() int64
func (*ArcRequest) Marshal ¶
func (m *ArcRequest) Marshal() (dAtA []byte, err error)
func (*ArcRequest) ProtoMessage ¶
func (*ArcRequest) ProtoMessage()
func (*ArcRequest) Reset ¶
func (m *ArcRequest) Reset()
func (*ArcRequest) Size ¶
func (m *ArcRequest) Size() (n int)
func (*ArcRequest) String ¶
func (m *ArcRequest) String() string
func (*ArcRequest) Unmarshal ¶
func (m *ArcRequest) Unmarshal(dAtA []byte) error
type ArchiveClient ¶
type ArchiveClient interface { // Types 获取所有分区列表 Types(ctx context.Context, in *NoArgRequest, opts ...grpc.CallOption) (*TypesReply, error) // 获取单个稿件信息 Arc(ctx context.Context, in *ArcRequest, opts ...grpc.CallOption) (*ArcReply, error) // 批量获取稿件信息 Arcs(ctx context.Context, in *ArcsRequest, opts ...grpc.CallOption) (*ArcsReply, error) // 获取单个稿件计数信息 Stat(ctx context.Context, in *StatRequest, opts ...grpc.CallOption) (*StatReply, error) // 批量获取稿件计数信息 Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsReply, error) // 获取单个稿件+分P信息 View(ctx context.Context, in *ViewRequest, opts ...grpc.CallOption) (*ViewReply, error) // 批量获取稿件+分P信息 Views(ctx context.Context, in *ViewsRequest, opts ...grpc.CallOption) (*ViewsReply, error) // 获取稿件在各平台的点击数 Click(ctx context.Context, in *ClickRequest, opts ...grpc.CallOption) (*ClickReply, error) // 获取稿件的所有分P信息 Page(ctx context.Context, in *PageRequest, opts ...grpc.CallOption) (*PageReply, error) // 获取Up主绑定的相关推荐 *几乎废弃 Recommend(ctx context.Context, in *RecommendRequest, opts ...grpc.CallOption) (*RecommendReply, error) // 获取aid&cid对应的视频信息 Video(ctx context.Context, in *VideoRequest, opts ...grpc.CallOption) (*VideoReply, error) // 获取当前最大的aid,各子业务防刷、防脏数据时使用 MaxAid(ctx context.Context, in *NoArgRequest, opts ...grpc.CallOption) (*MaxAidReply, error) // 获取稿件的长简介信息 Description(ctx context.Context, in *DescriptionRequest, opts ...grpc.CallOption) (*DescriptionReply, error) // 内部方法,管理稿件服务缓存,请勿使用----------------------------------------------------------------------- ArcFieldCache(ctx context.Context, in *ArcFieldCacheRequest, opts ...grpc.CallOption) (*NoReply, error) ArcCache(ctx context.Context, in *ArcCacheRequest, opts ...grpc.CallOption) (*NoReply, error) UpVideoCache(ctx context.Context, in *UpVideoCacheRequest, opts ...grpc.CallOption) (*NoReply, error) DelVideoCache(ctx context.Context, in *DelVideoCacheRequest, opts ...grpc.CallOption) (*NoReply, error) SetStat(ctx context.Context, in *SetStatRequest, opts ...grpc.CallOption) (*NoReply, error) }
func NewArchiveClient ¶
func NewArchiveClient(cc *grpc.ClientConn) ArchiveClient
func NewClient ¶
func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (ArchiveClient, error)
NewClient new grpc client
type ArchiveServer ¶
type ArchiveServer interface { // Types 获取所有分区列表 Types(context.Context, *NoArgRequest) (*TypesReply, error) // 获取单个稿件信息 Arc(context.Context, *ArcRequest) (*ArcReply, error) // 批量获取稿件信息 Arcs(context.Context, *ArcsRequest) (*ArcsReply, error) // 获取单个稿件计数信息 Stat(context.Context, *StatRequest) (*StatReply, error) // 批量获取稿件计数信息 Stats(context.Context, *StatsRequest) (*StatsReply, error) // 获取单个稿件+分P信息 View(context.Context, *ViewRequest) (*ViewReply, error) // 批量获取稿件+分P信息 Views(context.Context, *ViewsRequest) (*ViewsReply, error) // 获取稿件在各平台的点击数 Click(context.Context, *ClickRequest) (*ClickReply, error) // 获取稿件的所有分P信息 Page(context.Context, *PageRequest) (*PageReply, error) // 获取Up主绑定的相关推荐 *几乎废弃 Recommend(context.Context, *RecommendRequest) (*RecommendReply, error) // 获取aid&cid对应的视频信息 Video(context.Context, *VideoRequest) (*VideoReply, error) // 获取当前最大的aid,各子业务防刷、防脏数据时使用 MaxAid(context.Context, *NoArgRequest) (*MaxAidReply, error) // 获取稿件的长简介信息 Description(context.Context, *DescriptionRequest) (*DescriptionReply, error) // 内部方法,管理稿件服务缓存,请勿使用----------------------------------------------------------------------- ArcFieldCache(context.Context, *ArcFieldCacheRequest) (*NoReply, error) ArcCache(context.Context, *ArcCacheRequest) (*NoReply, error) UpVideoCache(context.Context, *UpVideoCacheRequest) (*NoReply, error) DelVideoCache(context.Context, *DelVideoCacheRequest) (*NoReply, error) SetStat(context.Context, *SetStatRequest) (*NoReply, error) }
type ArcsReply ¶
func (*ArcsReply) Descriptor ¶
func (*ArcsReply) ProtoMessage ¶
func (*ArcsReply) ProtoMessage()
type ArcsRequest ¶
type ArcsRequest struct {
Aids []int64 `protobuf:"varint,1,rep,packed,name=aids" json:"aids,omitempty"`
}
func (*ArcsRequest) Descriptor ¶
func (*ArcsRequest) Descriptor() ([]byte, []int)
func (*ArcsRequest) GetAids ¶
func (m *ArcsRequest) GetAids() []int64
func (*ArcsRequest) Marshal ¶
func (m *ArcsRequest) Marshal() (dAtA []byte, err error)
func (*ArcsRequest) ProtoMessage ¶
func (*ArcsRequest) ProtoMessage()
func (*ArcsRequest) Reset ¶
func (m *ArcsRequest) Reset()
func (*ArcsRequest) Size ¶
func (m *ArcsRequest) Size() (n int)
func (*ArcsRequest) String ¶
func (m *ArcsRequest) String() string
func (*ArcsRequest) Unmarshal ¶
func (m *ArcsRequest) Unmarshal(dAtA []byte) error
type Author ¶
type Author struct { // Up主mid Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"` // Up主名称 Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"name"` // Up主头像地址 绝对地址 Face string `protobuf:"bytes,3,opt,name=Face,proto3" json:"face"` }
Author 稿件作者信息
func (*Author) Descriptor ¶
func (*Author) ProtoMessage ¶
func (*Author) ProtoMessage()
type BvcResponseMsg ¶
type BvcResponseMsg struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3,casttype=int64" json:"code"` Data map[uint32]*BvcVideoItem `` /* 126-byte string literal not displayed */ }
func (*BvcResponseMsg) Descriptor ¶
func (*BvcResponseMsg) Descriptor() ([]byte, []int)
func (*BvcResponseMsg) GetCode ¶
func (m *BvcResponseMsg) GetCode() int64
func (*BvcResponseMsg) GetData ¶
func (m *BvcResponseMsg) GetData() map[uint32]*BvcVideoItem
func (*BvcResponseMsg) Marshal ¶
func (m *BvcResponseMsg) Marshal() (dAtA []byte, err error)
func (*BvcResponseMsg) ProtoMessage ¶
func (*BvcResponseMsg) ProtoMessage()
func (*BvcResponseMsg) Reset ¶
func (m *BvcResponseMsg) Reset()
func (*BvcResponseMsg) Size ¶
func (m *BvcResponseMsg) Size() (n int)
func (*BvcResponseMsg) String ¶
func (m *BvcResponseMsg) String() string
func (*BvcResponseMsg) Unmarshal ¶
func (m *BvcResponseMsg) Unmarshal(dAtA []byte) error
type BvcVideoItem ¶
type BvcVideoItem struct { ExpireTime int64 `protobuf:"varint,1,opt,name=expire_time,json=expireTime,proto3,casttype=int64" json:"expire_time"` Cid int64 `protobuf:"varint,2,opt,name=cid,proto3,casttype=int64" json:"cid"` SupportQuality []int `protobuf:"varint,3,rep,packed,name=support_quality,json=supportQuality,casttype=int" json:"support_quality"` SupportFormats []string `protobuf:"bytes,4,rep,name=support_formats,json=supportFormats" json:"support_formats"` SupportDescription []string `protobuf:"bytes,5,rep,name=support_description,json=supportDescription" json:"support_description"` Quality int `protobuf:"varint,6,opt,name=quality,proto3,casttype=int" json:"quality"` Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url"` FileInfo map[uint32]*VideoFormatFileInfo `` /* 150-byte string literal not displayed */ VideoCodecid uint32 `protobuf:"varint,9,opt,name=video_codecid,json=videoCodecid,proto3" json:"video_codecid"` VideoProject bool `protobuf:"varint,10,opt,name=video_project,json=videoProject,proto3" json:"video_project"` Fnver int `protobuf:"varint,11,opt,name=fnver,proto3,casttype=int" json:"fnver"` Fnval int `protobuf:"varint,12,opt,name=fnval,proto3,casttype=int" json:"fnval"` Dash *ResponseDash `protobuf:"bytes,13,opt,name=dash" json:"dash"` }
func (*BvcVideoItem) Descriptor ¶
func (*BvcVideoItem) Descriptor() ([]byte, []int)
func (*BvcVideoItem) GetCid ¶
func (m *BvcVideoItem) GetCid() int64
func (*BvcVideoItem) GetDash ¶
func (m *BvcVideoItem) GetDash() *ResponseDash
func (*BvcVideoItem) GetExpireTime ¶
func (m *BvcVideoItem) GetExpireTime() int64
func (*BvcVideoItem) GetFileInfo ¶
func (m *BvcVideoItem) GetFileInfo() map[uint32]*VideoFormatFileInfo
func (*BvcVideoItem) GetFnval ¶
func (m *BvcVideoItem) GetFnval() int
func (*BvcVideoItem) GetFnver ¶
func (m *BvcVideoItem) GetFnver() int
func (*BvcVideoItem) GetQuality ¶
func (m *BvcVideoItem) GetQuality() int
func (*BvcVideoItem) GetSupportDescription ¶
func (m *BvcVideoItem) GetSupportDescription() []string
func (*BvcVideoItem) GetSupportFormats ¶
func (m *BvcVideoItem) GetSupportFormats() []string
func (*BvcVideoItem) GetSupportQuality ¶
func (m *BvcVideoItem) GetSupportQuality() []int
func (*BvcVideoItem) GetUrl ¶
func (m *BvcVideoItem) GetUrl() string
func (*BvcVideoItem) GetVideoCodecid ¶
func (m *BvcVideoItem) GetVideoCodecid() uint32
func (*BvcVideoItem) GetVideoProject ¶
func (m *BvcVideoItem) GetVideoProject() bool
func (*BvcVideoItem) Marshal ¶
func (m *BvcVideoItem) Marshal() (dAtA []byte, err error)
func (*BvcVideoItem) ProtoMessage ¶
func (*BvcVideoItem) ProtoMessage()
func (*BvcVideoItem) Reset ¶
func (m *BvcVideoItem) Reset()
func (*BvcVideoItem) Size ¶
func (m *BvcVideoItem) Size() (n int)
func (*BvcVideoItem) String ¶
func (m *BvcVideoItem) String() string
func (*BvcVideoItem) Unmarshal ¶
func (m *BvcVideoItem) Unmarshal(dAtA []byte) error
type Click ¶
type Click struct { Aid int64 `protobuf:"varint,1,opt,name=Aid,proto3" json:"aid"` // web端播放数 Web int32 `protobuf:"varint,2,opt,name=Web,proto3" json:"web"` // iOS端播放数 Ios int32 `protobuf:"varint,3,opt,name=Ios,proto3" json:"ios"` // android端播放数 Android int32 `protobuf:"varint,4,opt,name=Android,proto3" json:"android"` // h5端播放数 H5 int32 `protobuf:"varint,5,opt,name=H5,proto3" json:"h5"` // 站外播放数 Outter int32 `protobuf:"varint,6,opt,name=Outter,proto3" json:"outter"` }
Click 点击数详情,老版本播放器使用
func (*Click) Descriptor ¶
func (*Click) GetAndroid ¶
func (*Click) ProtoMessage ¶
func (*Click) ProtoMessage()
type ClickReply ¶
type ClickReply struct {
Click *Click `protobuf:"bytes,1,opt,name=click" json:"click,omitempty"`
}
func (*ClickReply) Descriptor ¶
func (*ClickReply) Descriptor() ([]byte, []int)
func (*ClickReply) GetClick ¶
func (m *ClickReply) GetClick() *Click
func (*ClickReply) Marshal ¶
func (m *ClickReply) Marshal() (dAtA []byte, err error)
func (*ClickReply) ProtoMessage ¶
func (*ClickReply) ProtoMessage()
func (*ClickReply) Reset ¶
func (m *ClickReply) Reset()
func (*ClickReply) Size ¶
func (m *ClickReply) Size() (n int)
func (*ClickReply) String ¶
func (m *ClickReply) String() string
func (*ClickReply) Unmarshal ¶
func (m *ClickReply) Unmarshal(dAtA []byte) error
type ClickRequest ¶
type ClickRequest struct {
Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
}
func (*ClickRequest) Descriptor ¶
func (*ClickRequest) Descriptor() ([]byte, []int)
func (*ClickRequest) GetAid ¶
func (m *ClickRequest) GetAid() int64
func (*ClickRequest) Marshal ¶
func (m *ClickRequest) Marshal() (dAtA []byte, err error)
func (*ClickRequest) ProtoMessage ¶
func (*ClickRequest) ProtoMessage()
func (*ClickRequest) Reset ¶
func (m *ClickRequest) Reset()
func (*ClickRequest) Size ¶
func (m *ClickRequest) Size() (n int)
func (*ClickRequest) String ¶
func (m *ClickRequest) String() string
func (*ClickRequest) Unmarshal ¶
func (m *ClickRequest) Unmarshal(dAtA []byte) error
type DashItem ¶
type DashItem struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3,casttype=int64" json:"id"` BaseUrl string `protobuf:"bytes,2,opt,name=baseUrl,proto3" json:"base_url"` Bandwidth int64 `protobuf:"varint,3,opt,name=bandwidth,proto3,casttype=int64" json:"bandwidth"` Codecid int64 `protobuf:"varint,4,opt,name=codecid,proto3,casttype=int64" json:"codecid"` }
func (*DashItem) Descriptor ¶
func (*DashItem) GetBandwidth ¶
func (*DashItem) GetBaseUrl ¶
func (*DashItem) GetCodecid ¶
func (*DashItem) ProtoMessage ¶
func (*DashItem) ProtoMessage()
type DelVideoCacheRequest ¶
type DelVideoCacheRequest struct { Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"` Cid int64 `protobuf:"varint,2,opt,name=cid,proto3" json:"cid,omitempty"` }
func (*DelVideoCacheRequest) Descriptor ¶
func (*DelVideoCacheRequest) Descriptor() ([]byte, []int)
func (*DelVideoCacheRequest) GetAid ¶
func (m *DelVideoCacheRequest) GetAid() int64
func (*DelVideoCacheRequest) GetCid ¶
func (m *DelVideoCacheRequest) GetCid() int64
func (*DelVideoCacheRequest) Marshal ¶
func (m *DelVideoCacheRequest) Marshal() (dAtA []byte, err error)
func (*DelVideoCacheRequest) MarshalTo ¶
func (m *DelVideoCacheRequest) MarshalTo(dAtA []byte) (int, error)
func (*DelVideoCacheRequest) ProtoMessage ¶
func (*DelVideoCacheRequest) ProtoMessage()
func (*DelVideoCacheRequest) Reset ¶
func (m *DelVideoCacheRequest) Reset()
func (*DelVideoCacheRequest) Size ¶
func (m *DelVideoCacheRequest) Size() (n int)
func (*DelVideoCacheRequest) String ¶
func (m *DelVideoCacheRequest) String() string
func (*DelVideoCacheRequest) Unmarshal ¶
func (m *DelVideoCacheRequest) Unmarshal(dAtA []byte) error
type DescriptionReply ¶
type DescriptionReply struct {
Desc string `protobuf:"bytes,1,opt,name=desc,proto3" json:"desc,omitempty"`
}
func (*DescriptionReply) Descriptor ¶
func (*DescriptionReply) Descriptor() ([]byte, []int)
func (*DescriptionReply) GetDesc ¶
func (m *DescriptionReply) GetDesc() string
func (*DescriptionReply) Marshal ¶
func (m *DescriptionReply) Marshal() (dAtA []byte, err error)
func (*DescriptionReply) ProtoMessage ¶
func (*DescriptionReply) ProtoMessage()
func (*DescriptionReply) Reset ¶
func (m *DescriptionReply) Reset()
func (*DescriptionReply) Size ¶
func (m *DescriptionReply) Size() (n int)
func (*DescriptionReply) String ¶
func (m *DescriptionReply) String() string
func (*DescriptionReply) Unmarshal ¶
func (m *DescriptionReply) Unmarshal(dAtA []byte) error
type DescriptionRequest ¶
type DescriptionRequest struct {
Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
}
func (*DescriptionRequest) Descriptor ¶
func (*DescriptionRequest) Descriptor() ([]byte, []int)
func (*DescriptionRequest) GetAid ¶
func (m *DescriptionRequest) GetAid() int64
func (*DescriptionRequest) Marshal ¶
func (m *DescriptionRequest) Marshal() (dAtA []byte, err error)
func (*DescriptionRequest) MarshalTo ¶
func (m *DescriptionRequest) MarshalTo(dAtA []byte) (int, error)
func (*DescriptionRequest) ProtoMessage ¶
func (*DescriptionRequest) ProtoMessage()
func (*DescriptionRequest) Reset ¶
func (m *DescriptionRequest) Reset()
func (*DescriptionRequest) Size ¶
func (m *DescriptionRequest) Size() (n int)
func (*DescriptionRequest) String ¶
func (m *DescriptionRequest) String() string
func (*DescriptionRequest) Unmarshal ¶
func (m *DescriptionRequest) Unmarshal(dAtA []byte) error
type Dimension ¶
type Dimension struct { // 宽 如 1920 Width int64 `protobuf:"varint,1,opt,name=Width,proto3" json:"width"` // 高 如 1080 Height int64 `protobuf:"varint,2,opt,name=Height,proto3" json:"height"` // 是否竖屏 0=否 1=是 Rotate int64 `protobuf:"varint,3,opt,name=Rotate,proto3" json:"rotate"` }
Dimension 视频分辨率
func (*Dimension) Descriptor ¶
func (*Dimension) ProtoMessage ¶
func (*Dimension) ProtoMessage()
type MaxAidReply ¶
type MaxAidReply struct {
Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
}
func (*MaxAidReply) Descriptor ¶
func (*MaxAidReply) Descriptor() ([]byte, []int)
func (*MaxAidReply) GetAid ¶
func (m *MaxAidReply) GetAid() int64
func (*MaxAidReply) Marshal ¶
func (m *MaxAidReply) Marshal() (dAtA []byte, err error)
func (*MaxAidReply) ProtoMessage ¶
func (*MaxAidReply) ProtoMessage()
func (*MaxAidReply) Reset ¶
func (m *MaxAidReply) Reset()
func (*MaxAidReply) Size ¶
func (m *MaxAidReply) Size() (n int)
func (*MaxAidReply) String ¶
func (m *MaxAidReply) String() string
func (*MaxAidReply) Unmarshal ¶
func (m *MaxAidReply) Unmarshal(dAtA []byte) error
type NoArgRequest ¶
type NoArgRequest struct { }
NoArgReq
func (*NoArgRequest) Descriptor ¶
func (*NoArgRequest) Descriptor() ([]byte, []int)
func (*NoArgRequest) Marshal ¶
func (m *NoArgRequest) Marshal() (dAtA []byte, err error)
func (*NoArgRequest) ProtoMessage ¶
func (*NoArgRequest) ProtoMessage()
func (*NoArgRequest) Reset ¶
func (m *NoArgRequest) Reset()
func (*NoArgRequest) Size ¶
func (m *NoArgRequest) Size() (n int)
func (*NoArgRequest) String ¶
func (m *NoArgRequest) String() string
func (*NoArgRequest) Unmarshal ¶
func (m *NoArgRequest) Unmarshal(dAtA []byte) error
type NoReply ¶
type NoReply struct { }
NoReply
func (*NoReply) Descriptor ¶
func (*NoReply) ProtoMessage ¶
func (*NoReply) ProtoMessage()
type Page ¶
type Page struct { // 视频的cid Cid int64 `protobuf:"varint,1,opt,name=Cid,proto3" json:"cid"` // 视频的序号顺序,从小到大 Page int32 `protobuf:"varint,2,opt,name=Page,proto3" json:"page"` // 视频的来源,99%为vupload=B站自己的,少部分为腾讯(qq)、湖南tv(hunan) From string `protobuf:"bytes,3,opt,name=From,proto3" json:"from"` // 视频的标题 Part string `protobuf:"bytes,4,opt,name=Part,proto3" json:"part"` // 视频的时长 单位=秒 Duration int64 `protobuf:"varint,5,opt,name=Duration,proto3" json:"duration"` // 站外视频才有vid属性 Vid string `protobuf:"bytes,6,opt,name=Vid,proto3" json:"vid"` // 视频的简介,多P视频才可填写简介 Desc string `protobuf:"bytes,7,opt,name=Desc,proto3" json:"description,omitempty"` // 站外视频跳转地址 WebLink string `protobuf:"bytes,8,opt,name=WebLink,proto3" json:"weblink"` // 视频分辨率信息 Dimension Dimension `protobuf:"bytes,9,opt,name=Dimension" json:"dimension"` }
Page 分P信息
func (*Page) Descriptor ¶
func (*Page) GetDimension ¶
func (*Page) GetDuration ¶
func (*Page) GetWebLink ¶
func (*Page) ProtoMessage ¶
func (*Page) ProtoMessage()
type PageReply ¶
type PageReply struct {
Pages []*Page `protobuf:"bytes,1,rep,name=pages" json:"pages,omitempty"`
}
func (*PageReply) Descriptor ¶
func (*PageReply) ProtoMessage ¶
func (*PageReply) ProtoMessage()
type PageRequest ¶
type PageRequest struct {
Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
}
func (*PageRequest) Descriptor ¶
func (*PageRequest) Descriptor() ([]byte, []int)
func (*PageRequest) GetAid ¶
func (m *PageRequest) GetAid() int64
func (*PageRequest) Marshal ¶
func (m *PageRequest) Marshal() (dAtA []byte, err error)
func (*PageRequest) ProtoMessage ¶
func (*PageRequest) ProtoMessage()
func (*PageRequest) Reset ¶
func (m *PageRequest) Reset()
func (*PageRequest) Size ¶
func (m *PageRequest) Size() (n int)
func (*PageRequest) String ¶
func (m *PageRequest) String() string
func (*PageRequest) Unmarshal ¶
func (m *PageRequest) Unmarshal(dAtA []byte) error
type PlayerFileInfo ¶
type PlayerFileInfo struct { TimeLength int64 `json:"timelength"` FileSize int64 `json:"filesize"` Ahead string `json:"ahead,omitempty"` Vhead string `json:"vhead,omitempty"` URL string `json:"url,omitempty"` Order int64 `json:"order,omitempty"` }
PlayerFileInfo is
type PlayerInfo ¶
type PlayerInfo struct { Cid int64 `json:"cid"` ExpireTime int64 `json:"expire_time,omitempty"` FileInfo map[int][]*PlayerFileInfo `json:"file_info"` SupportQuality []int `json:"support_quality"` SupportFormats []string `json:"support_formats"` SupportDescription []string `json:"support_description"` Quality int `json:"quality"` URL string `json:"url,omitempty"` VideoCodecid uint32 `json:"video_codecid"` VideoProject bool `json:"video_project"` Fnver int `json:"fnver"` Fnval int `json:"fnval"` Dash *ResponseDash `json:"dash,omitempty"` }
PlayerInfo player info
type RecommendReply ¶
type RecommendReply struct {
Arcs []*Arc `protobuf:"bytes,1,rep,name=arcs" json:"arcs,omitempty"`
}
func (*RecommendReply) Descriptor ¶
func (*RecommendReply) Descriptor() ([]byte, []int)
func (*RecommendReply) GetArcs ¶
func (m *RecommendReply) GetArcs() []*Arc
func (*RecommendReply) Marshal ¶
func (m *RecommendReply) Marshal() (dAtA []byte, err error)
func (*RecommendReply) ProtoMessage ¶
func (*RecommendReply) ProtoMessage()
func (*RecommendReply) Reset ¶
func (m *RecommendReply) Reset()
func (*RecommendReply) Size ¶
func (m *RecommendReply) Size() (n int)
func (*RecommendReply) String ¶
func (m *RecommendReply) String() string
func (*RecommendReply) Unmarshal ¶
func (m *RecommendReply) Unmarshal(dAtA []byte) error
type RecommendRequest ¶
type RecommendRequest struct {
Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
}
func (*RecommendRequest) Descriptor ¶
func (*RecommendRequest) Descriptor() ([]byte, []int)
func (*RecommendRequest) GetAid ¶
func (m *RecommendRequest) GetAid() int64
func (*RecommendRequest) Marshal ¶
func (m *RecommendRequest) Marshal() (dAtA []byte, err error)
func (*RecommendRequest) ProtoMessage ¶
func (*RecommendRequest) ProtoMessage()
func (*RecommendRequest) Reset ¶
func (m *RecommendRequest) Reset()
func (*RecommendRequest) Size ¶
func (m *RecommendRequest) Size() (n int)
func (*RecommendRequest) String ¶
func (m *RecommendRequest) String() string
func (*RecommendRequest) Unmarshal ¶
func (m *RecommendRequest) Unmarshal(dAtA []byte) error
type ResponseDash ¶
type ResponseDash struct { Video []*DashItem `protobuf:"bytes,1,rep,name=video" json:"video"` Audio []*DashItem `protobuf:"bytes,2,rep,name=audio" json:"audio"` }
func (*ResponseDash) Descriptor ¶
func (*ResponseDash) Descriptor() ([]byte, []int)
func (*ResponseDash) GetAudio ¶
func (m *ResponseDash) GetAudio() []*DashItem
func (*ResponseDash) GetVideo ¶
func (m *ResponseDash) GetVideo() []*DashItem
func (*ResponseDash) Marshal ¶
func (m *ResponseDash) Marshal() (dAtA []byte, err error)
func (*ResponseDash) ProtoMessage ¶
func (*ResponseDash) ProtoMessage()
func (*ResponseDash) Reset ¶
func (m *ResponseDash) Reset()
func (*ResponseDash) Size ¶
func (m *ResponseDash) Size() (n int)
func (*ResponseDash) String ¶
func (m *ResponseDash) String() string
func (*ResponseDash) Unmarshal ¶
func (m *ResponseDash) Unmarshal(dAtA []byte) error
type Rights ¶
type Rights struct { // 老版是否付费 Bp int32 `protobuf:"varint,1,opt,name=Bp,proto3" json:"bp"` // 是否支持充电 (不可直接使用,网关层请求业务方后才有值) Elec int32 `protobuf:"varint,2,opt,name=Elec,proto3" json:"elec"` // 是否下载(不可直接使用,网关层请求业务方后才有值) Download int32 `protobuf:"varint,3,opt,name=Download,proto3" json:"download"` // 是否电影 Movie int32 `protobuf:"varint,4,opt,name=Movie,proto3" json:"movie"` // 是否PGC付费 Pay int32 `protobuf:"varint,5,opt,name=Pay,proto3" json:"pay"` // 无用 HD5 int32 `protobuf:"varint,6,opt,name=HD5,proto3" json:"hd5"` // 是否允许转发 NoReprint int32 `protobuf:"varint,7,opt,name=NoReprint,proto3" json:"no_reprint"` // 是否可以自动播放 Autoplay int32 `protobuf:"varint,8,opt,name=Autoplay,proto3" json:"autoplay"` // 是否UGC付费 UGCPay int32 `protobuf:"varint,9,opt,name=UGCPay,proto3" json:"ugc_pay"` // 是否联合投稿 IsCooperation int32 `protobuf:"varint,10,opt,name=IsCooperation,proto3" json:"is_cooperation"` }
Rights 稿件各常用属性 0=否 1=是
func (*Rights) Descriptor ¶
func (*Rights) GetAutoplay ¶
func (*Rights) GetDownload ¶
func (*Rights) GetIsCooperation ¶
func (*Rights) GetNoReprint ¶
func (*Rights) ProtoMessage ¶
func (*Rights) ProtoMessage()
type SetStatRequest ¶
type SetStatRequest struct {
Stat *Stat `protobuf:"bytes,1,opt,name=stat" json:"stat,omitempty"`
}
func (*SetStatRequest) Descriptor ¶
func (*SetStatRequest) Descriptor() ([]byte, []int)
func (*SetStatRequest) GetStat ¶
func (m *SetStatRequest) GetStat() *Stat
func (*SetStatRequest) Marshal ¶
func (m *SetStatRequest) Marshal() (dAtA []byte, err error)
func (*SetStatRequest) ProtoMessage ¶
func (*SetStatRequest) ProtoMessage()
func (*SetStatRequest) Reset ¶
func (m *SetStatRequest) Reset()
func (*SetStatRequest) Size ¶
func (m *SetStatRequest) Size() (n int)
func (*SetStatRequest) String ¶
func (m *SetStatRequest) String() string
func (*SetStatRequest) Unmarshal ¶
func (m *SetStatRequest) Unmarshal(dAtA []byte) error
type StaffInfo ¶
type StaffInfo struct { // 联合投稿的成员Up主id Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"` // 联合投稿的成员角色(如 声优、字幕) Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"title"` }
func (*StaffInfo) Descriptor ¶
func (*StaffInfo) ProtoMessage ¶
func (*StaffInfo) ProtoMessage()
type Stat ¶
type Stat struct { Aid int64 `protobuf:"varint,1,opt,name=Aid,proto3" json:"aid"` // 播放数 View int32 `protobuf:"varint,2,opt,name=View,proto3" json:"view"` // 弹幕数 Danmaku int32 `protobuf:"varint,3,opt,name=Danmaku,proto3" json:"danmaku"` // 评论数 Reply int32 `protobuf:"varint,4,opt,name=Reply,proto3" json:"reply"` // 收藏数 Fav int32 `protobuf:"varint,5,opt,name=Fav,proto3" json:"favorite"` // 投币数 Coin int32 `protobuf:"varint,6,opt,name=Coin,proto3" json:"coin"` Share int32 `protobuf:"varint,7,opt,name=Share,proto3" json:"share"` // 当前排名 NowRank int32 `protobuf:"varint,8,opt,name=NowRank,proto3" json:"now_rank"` // 历史最高排名 HisRank int32 `protobuf:"varint,9,opt,name=HisRank,proto3" json:"his_rank"` // 点赞数 Like int32 `protobuf:"varint,10,opt,name=Like,proto3" json:"like"` // 点踩数 已取消前台展示,现在均返回0 DisLike int32 `protobuf:"varint,11,opt,name=DisLike,proto3" json:"dislike"` }
Stat 稿件的所有计数信息
func (*Stat) Descriptor ¶
func (*Stat) GetDanmaku ¶
func (*Stat) GetDisLike ¶
func (*Stat) GetHisRank ¶
func (*Stat) GetNowRank ¶
func (*Stat) ProtoMessage ¶
func (*Stat) ProtoMessage()
type StatReply ¶
type StatReply struct {
Stat *Stat `protobuf:"bytes,1,opt,name=Stat" json:"Stat,omitempty"`
}
func (*StatReply) Descriptor ¶
func (*StatReply) ProtoMessage ¶
func (*StatReply) ProtoMessage()
type StatRequest ¶
type StatRequest struct {
Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
}
func (*StatRequest) Descriptor ¶
func (*StatRequest) Descriptor() ([]byte, []int)
func (*StatRequest) GetAid ¶
func (m *StatRequest) GetAid() int64
func (*StatRequest) Marshal ¶
func (m *StatRequest) Marshal() (dAtA []byte, err error)
func (*StatRequest) ProtoMessage ¶
func (*StatRequest) ProtoMessage()
func (*StatRequest) Reset ¶
func (m *StatRequest) Reset()
func (*StatRequest) Size ¶
func (m *StatRequest) Size() (n int)
func (*StatRequest) String ¶
func (m *StatRequest) String() string
func (*StatRequest) Unmarshal ¶
func (m *StatRequest) Unmarshal(dAtA []byte) error
type StatsReply ¶
func (*StatsReply) Descriptor ¶
func (*StatsReply) Descriptor() ([]byte, []int)
func (*StatsReply) GetStats ¶
func (m *StatsReply) GetStats() map[int64]*Stat
func (*StatsReply) Marshal ¶
func (m *StatsReply) Marshal() (dAtA []byte, err error)
func (*StatsReply) ProtoMessage ¶
func (*StatsReply) ProtoMessage()
func (*StatsReply) Reset ¶
func (m *StatsReply) Reset()
func (*StatsReply) Size ¶
func (m *StatsReply) Size() (n int)
func (*StatsReply) String ¶
func (m *StatsReply) String() string
func (*StatsReply) Unmarshal ¶
func (m *StatsReply) Unmarshal(dAtA []byte) error
type StatsRequest ¶
type StatsRequest struct {
Aids []int64 `protobuf:"varint,1,rep,packed,name=aids" json:"aids,omitempty"`
}
func (*StatsRequest) Descriptor ¶
func (*StatsRequest) Descriptor() ([]byte, []int)
func (*StatsRequest) GetAids ¶
func (m *StatsRequest) GetAids() []int64
func (*StatsRequest) Marshal ¶
func (m *StatsRequest) Marshal() (dAtA []byte, err error)
func (*StatsRequest) ProtoMessage ¶
func (*StatsRequest) ProtoMessage()
func (*StatsRequest) Reset ¶
func (m *StatsRequest) Reset()
func (*StatsRequest) Size ¶
func (m *StatsRequest) Size() (n int)
func (*StatsRequest) String ¶
func (m *StatsRequest) String() string
func (*StatsRequest) Unmarshal ¶
func (m *StatsRequest) Unmarshal(dAtA []byte) error
type Tp ¶
type Tp struct { // 分区id ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"id"` // 该分区的父级id Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid"` // 该分区对应的名称 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name"` }
func (*Tp) Descriptor ¶
func (*Tp) ProtoMessage ¶
func (*Tp) ProtoMessage()
type TypesReply ¶
func (*TypesReply) Descriptor ¶
func (*TypesReply) Descriptor() ([]byte, []int)
func (*TypesReply) GetTypes ¶
func (m *TypesReply) GetTypes() map[int32]*Tp
func (*TypesReply) Marshal ¶
func (m *TypesReply) Marshal() (dAtA []byte, err error)
func (*TypesReply) ProtoMessage ¶
func (*TypesReply) ProtoMessage()
func (*TypesReply) Reset ¶
func (m *TypesReply) Reset()
func (*TypesReply) Size ¶
func (m *TypesReply) Size() (n int)
func (*TypesReply) String ¶
func (m *TypesReply) String() string
func (*TypesReply) Unmarshal ¶
func (m *TypesReply) Unmarshal(dAtA []byte) error
type UpVideoCacheRequest ¶
type UpVideoCacheRequest struct { Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"` Cid int64 `protobuf:"varint,2,opt,name=cid,proto3" json:"cid,omitempty"` }
func (*UpVideoCacheRequest) Descriptor ¶
func (*UpVideoCacheRequest) Descriptor() ([]byte, []int)
func (*UpVideoCacheRequest) GetAid ¶
func (m *UpVideoCacheRequest) GetAid() int64
func (*UpVideoCacheRequest) GetCid ¶
func (m *UpVideoCacheRequest) GetCid() int64
func (*UpVideoCacheRequest) Marshal ¶
func (m *UpVideoCacheRequest) Marshal() (dAtA []byte, err error)
func (*UpVideoCacheRequest) MarshalTo ¶
func (m *UpVideoCacheRequest) MarshalTo(dAtA []byte) (int, error)
func (*UpVideoCacheRequest) ProtoMessage ¶
func (*UpVideoCacheRequest) ProtoMessage()
func (*UpVideoCacheRequest) Reset ¶
func (m *UpVideoCacheRequest) Reset()
func (*UpVideoCacheRequest) Size ¶
func (m *UpVideoCacheRequest) Size() (n int)
func (*UpVideoCacheRequest) String ¶
func (m *UpVideoCacheRequest) String() string
func (*UpVideoCacheRequest) Unmarshal ¶
func (m *UpVideoCacheRequest) Unmarshal(dAtA []byte) error
type VideoFileInfo ¶
type VideoFileInfo struct { Filesize int64 `protobuf:"varint,1,opt,name=filesize,proto3,casttype=int64" json:"filesize"` Timelength int64 `protobuf:"varint,2,opt,name=timelength,proto3,casttype=int64" json:"timelength"` Ahead string `protobuf:"bytes,3,opt,name=ahead,proto3" json:"ahead"` Vhead string `protobuf:"bytes,4,opt,name=vhead,proto3" json:"vhead"` }
!!!Note: only response message defined, since we put pb into http response body
func (*VideoFileInfo) Descriptor ¶
func (*VideoFileInfo) Descriptor() ([]byte, []int)
func (*VideoFileInfo) GetAhead ¶
func (m *VideoFileInfo) GetAhead() string
func (*VideoFileInfo) GetFilesize ¶
func (m *VideoFileInfo) GetFilesize() int64
func (*VideoFileInfo) GetTimelength ¶
func (m *VideoFileInfo) GetTimelength() int64
func (*VideoFileInfo) GetVhead ¶
func (m *VideoFileInfo) GetVhead() string
func (*VideoFileInfo) Marshal ¶
func (m *VideoFileInfo) Marshal() (dAtA []byte, err error)
func (*VideoFileInfo) ProtoMessage ¶
func (*VideoFileInfo) ProtoMessage()
func (*VideoFileInfo) Reset ¶
func (m *VideoFileInfo) Reset()
func (*VideoFileInfo) Size ¶
func (m *VideoFileInfo) Size() (n int)
func (*VideoFileInfo) String ¶
func (m *VideoFileInfo) String() string
func (*VideoFileInfo) Unmarshal ¶
func (m *VideoFileInfo) Unmarshal(dAtA []byte) error
type VideoFormatFileInfo ¶
type VideoFormatFileInfo struct {
Infos []*VideoFileInfo `protobuf:"bytes,1,rep,name=infos" json:"infos"`
}
func (*VideoFormatFileInfo) Descriptor ¶
func (*VideoFormatFileInfo) Descriptor() ([]byte, []int)
func (*VideoFormatFileInfo) GetInfos ¶
func (m *VideoFormatFileInfo) GetInfos() []*VideoFileInfo
func (*VideoFormatFileInfo) Marshal ¶
func (m *VideoFormatFileInfo) Marshal() (dAtA []byte, err error)
func (*VideoFormatFileInfo) MarshalTo ¶
func (m *VideoFormatFileInfo) MarshalTo(dAtA []byte) (int, error)
func (*VideoFormatFileInfo) ProtoMessage ¶
func (*VideoFormatFileInfo) ProtoMessage()
func (*VideoFormatFileInfo) Reset ¶
func (m *VideoFormatFileInfo) Reset()
func (*VideoFormatFileInfo) Size ¶
func (m *VideoFormatFileInfo) Size() (n int)
func (*VideoFormatFileInfo) String ¶
func (m *VideoFormatFileInfo) String() string
func (*VideoFormatFileInfo) Unmarshal ¶
func (m *VideoFormatFileInfo) Unmarshal(dAtA []byte) error
type VideoReply ¶
type VideoReply struct {
Page *Page `protobuf:"bytes,1,opt,name=page" json:"page,omitempty"`
}
func (*VideoReply) Descriptor ¶
func (*VideoReply) Descriptor() ([]byte, []int)
func (*VideoReply) GetPage ¶
func (m *VideoReply) GetPage() *Page
func (*VideoReply) Marshal ¶
func (m *VideoReply) Marshal() (dAtA []byte, err error)
func (*VideoReply) ProtoMessage ¶
func (*VideoReply) ProtoMessage()
func (*VideoReply) Reset ¶
func (m *VideoReply) Reset()
func (*VideoReply) Size ¶
func (m *VideoReply) Size() (n int)
func (*VideoReply) String ¶
func (m *VideoReply) String() string
func (*VideoReply) Unmarshal ¶
func (m *VideoReply) Unmarshal(dAtA []byte) error
type VideoRequest ¶
type VideoRequest struct { Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"` Cid int64 `protobuf:"varint,2,opt,name=cid,proto3" json:"cid,omitempty"` }
func (*VideoRequest) Descriptor ¶
func (*VideoRequest) Descriptor() ([]byte, []int)
func (*VideoRequest) GetAid ¶
func (m *VideoRequest) GetAid() int64
func (*VideoRequest) GetCid ¶
func (m *VideoRequest) GetCid() int64
func (*VideoRequest) Marshal ¶
func (m *VideoRequest) Marshal() (dAtA []byte, err error)
func (*VideoRequest) ProtoMessage ¶
func (*VideoRequest) ProtoMessage()
func (*VideoRequest) Reset ¶
func (m *VideoRequest) Reset()
func (*VideoRequest) Size ¶
func (m *VideoRequest) Size() (n int)
func (*VideoRequest) String ¶
func (m *VideoRequest) String() string
func (*VideoRequest) Unmarshal ¶
func (m *VideoRequest) Unmarshal(dAtA []byte) error
type ViewReply ¶
type ViewReply struct { *Arc `protobuf:"bytes,1,opt,name=arc,embedded=arc" json:""` Pages []*Page `protobuf:"bytes,2,rep,name=pages" json:"pages,omitempty"` }
func (*ViewReply) Descriptor ¶
func (*ViewReply) ProtoMessage ¶
func (*ViewReply) ProtoMessage()
type ViewRequest ¶
type ViewRequest struct {
Aid int64 `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
}
func (*ViewRequest) Descriptor ¶
func (*ViewRequest) Descriptor() ([]byte, []int)
func (*ViewRequest) GetAid ¶
func (m *ViewRequest) GetAid() int64
func (*ViewRequest) Marshal ¶
func (m *ViewRequest) Marshal() (dAtA []byte, err error)
func (*ViewRequest) ProtoMessage ¶
func (*ViewRequest) ProtoMessage()
func (*ViewRequest) Reset ¶
func (m *ViewRequest) Reset()
func (*ViewRequest) Size ¶
func (m *ViewRequest) Size() (n int)
func (*ViewRequest) String ¶
func (m *ViewRequest) String() string
func (*ViewRequest) Unmarshal ¶
func (m *ViewRequest) Unmarshal(dAtA []byte) error
type ViewsReply ¶
type ViewsReply struct {
Views map[int64]*ViewReply `` /* 138-byte string literal not displayed */
}
func (*ViewsReply) Descriptor ¶
func (*ViewsReply) Descriptor() ([]byte, []int)
func (*ViewsReply) GetViews ¶
func (m *ViewsReply) GetViews() map[int64]*ViewReply
func (*ViewsReply) Marshal ¶
func (m *ViewsReply) Marshal() (dAtA []byte, err error)
func (*ViewsReply) ProtoMessage ¶
func (*ViewsReply) ProtoMessage()
func (*ViewsReply) Reset ¶
func (m *ViewsReply) Reset()
func (*ViewsReply) Size ¶
func (m *ViewsReply) Size() (n int)
func (*ViewsReply) String ¶
func (m *ViewsReply) String() string
func (*ViewsReply) Unmarshal ¶
func (m *ViewsReply) Unmarshal(dAtA []byte) error
type ViewsRequest ¶
type ViewsRequest struct {
Aids []int64 `protobuf:"varint,1,rep,packed,name=aids" json:"aids,omitempty"`
}
func (*ViewsRequest) Descriptor ¶
func (*ViewsRequest) Descriptor() ([]byte, []int)
func (*ViewsRequest) GetAids ¶
func (m *ViewsRequest) GetAids() []int64
func (*ViewsRequest) Marshal ¶
func (m *ViewsRequest) Marshal() (dAtA []byte, err error)
func (*ViewsRequest) ProtoMessage ¶
func (*ViewsRequest) ProtoMessage()
func (*ViewsRequest) Reset ¶
func (m *ViewsRequest) Reset()
func (*ViewsRequest) Size ¶
func (m *ViewsRequest) Size() (n int)
func (*ViewsRequest) String ¶
func (m *ViewsRequest) String() string
func (*ViewsRequest) Unmarshal ¶
func (m *ViewsRequest) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.