Documentation ¶
Overview ¶
Package model is a generated protocol buffer package.
It is generated from these files:
feed.proto
It has these top-level messages:
NewEp Bangumi
Index ¶
- Constants
- Variables
- func FeedType(app bool) int
- type Arcs
- type ArgAidMid
- type ArgArc
- type ArgChangeUpper
- type ArgFeed
- type ArgFold
- type ArgMid
- type ArgUnreadCount
- type ArticleFeeds
- type Bangumi
- func (*Bangumi) Descriptor() ([]byte, []int)
- func (m *Bangumi) Marshal() (dAtA []byte, err error)
- func (m *Bangumi) MarshalTo(dAtA []byte) (int, error)
- func (*Bangumi) ProtoMessage()
- func (m *Bangumi) Reset()
- func (m *Bangumi) Size() (n int)
- func (m *Bangumi) String() string
- func (m *Bangumi) Unmarshal(dAtA []byte) error
- type Feed
- type Feeds
- type NewEp
- func (*NewEp) Descriptor() ([]byte, []int)
- func (m *NewEp) Marshal() (dAtA []byte, err error)
- func (m *NewEp) MarshalTo(dAtA []byte) (int, error)
- func (*NewEp) ProtoMessage()
- func (m *NewEp) Reset()
- func (m *NewEp) Size() (n int)
- func (m *NewEp) String() string
- func (m *NewEp) Unmarshal(dAtA []byte) error
- type Pull
Constants ¶
View Source
const ( ArchiveType = 0 BangumiType = 1 TypeApp = iota TypeWeb TypeArt )
feed type
Variables ¶
View Source
var ( ErrInvalidLengthFeed = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFeed = fmt.Errorf("proto: integer overflow") )
Functions ¶
Types ¶
type ArgChangeUpper ¶
type ArgUnreadCount ¶
type ArticleFeeds ¶
func (ArticleFeeds) Len ¶
func (as ArticleFeeds) Len() int
func (ArticleFeeds) Less ¶
func (as ArticleFeeds) Less(i, j int) bool
func (ArticleFeeds) Swap ¶
func (as ArticleFeeds) Swap(i, j int)
type Bangumi ¶
type Bangumi struct { BgmType int32 `protobuf:"varint,1,opt,name=BgmType,proto3" json:"bgm_type"` Cover string `protobuf:"bytes,2,opt,name=Cover,proto3" json:"cover"` IsFinish int32 `protobuf:"varint,3,opt,name=IsFinish,proto3" json:"is_finish"` NewEp NewEp `protobuf:"bytes,4,opt,name=NewEp" json:"new_ep"` SeasonID int64 `protobuf:"varint,5,opt,name=SeasonID,proto3" json:"season_id"` Title string `protobuf:"bytes,6,opt,name=Title,proto3" json:"title"` TotalCount int64 `protobuf:"varint,7,opt,name=TotalCount,proto3" json:"total_count"` Ts int64 `protobuf:"varint,8,opt,name=Ts,proto3" json:"ts"` }
func (*Bangumi) Descriptor ¶
func (*Bangumi) ProtoMessage ¶
func (*Bangumi) ProtoMessage()
type Feed ¶
type Feed struct { Type int64 `json:"type"` // Data is *api.Arc or *Bangumi Archive *api.Arc `json:"archive"` Bangumi *Bangumi `json:"bangumi"` // ID is aid or SeasonID ID int64 `json:"id"` PubDate time.Time `json:"pubdate"` Fold []*api.Arc `json:"fold"` }
Feed struct of Feed
type NewEp ¶
type NewEp struct { Cover string `protobuf:"bytes,1,opt,name=Cover,proto3" json:"cover"` Dm int64 `protobuf:"varint,2,opt,name=Dm,proto3" json:"dm"` EpisodeID int64 `protobuf:"varint,3,opt,name=EpisodeID,proto3" json:"episode_id"` Index string `protobuf:"bytes,4,opt,name=Index,proto3" json:"index"` IndexTitle string `protobuf:"bytes,5,opt,name=IndexTitle,proto3" json:"index_title"` Play int64 `protobuf:"varint,6,opt,name=Play,proto3" json:"play"` }
func (*NewEp) Descriptor ¶
func (*NewEp) ProtoMessage ¶
func (*NewEp) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.