model

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

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

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

func FeedType

func FeedType(app bool) int

FeedType return feed type

Types

type Arcs

type Arcs []*archive.AidPubTime

Arcs AidPubTime slice

func (Arcs) Len

func (as Arcs) Len() int

func (Arcs) Less

func (as Arcs) Less(i, j int) bool

func (Arcs) Swap

func (as Arcs) Swap(i, j int)

type ArgAidMid

type ArgAidMid struct {
	Aid    int64
	Mid    int64
	RealIP string
}

type ArgArc

type ArgArc struct {
	Aid     int64
	Mid     int64
	PubDate int64
	RealIP  string
}

type ArgChangeUpper

type ArgChangeUpper struct {
	Aid    int64
	OldMid int64
	NewMid int64
	RealIP string
}

type ArgFeed

type ArgFeed struct {
	Mid    int64
	Pn     int
	Ps     int
	RealIP string
}

type ArgFold

type ArgFold struct {
	Aid    int64
	Mid    int64
	RealIP string
}

type ArgMid

type ArgMid struct {
	Mid    int64
	RealIP string
}

type ArgUnreadCount

type ArgUnreadCount struct {
	Mid            int64
	WithoutBangumi bool
	RealIP         string
}

type ArticleFeeds

type ArticleFeeds []*artmdl.Meta

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) Descriptor() ([]byte, []int)

func (*Bangumi) Marshal

func (m *Bangumi) Marshal() (dAtA []byte, err error)

func (*Bangumi) MarshalTo

func (m *Bangumi) MarshalTo(dAtA []byte) (int, error)

func (*Bangumi) ProtoMessage

func (*Bangumi) ProtoMessage()

func (*Bangumi) Reset

func (m *Bangumi) Reset()

func (*Bangumi) Size

func (m *Bangumi) Size() (n int)

func (*Bangumi) String

func (m *Bangumi) String() string

func (*Bangumi) Unmarshal

func (m *Bangumi) Unmarshal(dAtA []byte) error

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 Feeds

type Feeds []*Feed

func (Feeds) Len

func (as Feeds) Len() int

func (Feeds) Less

func (as Feeds) Less(i, j int) bool

func (Feeds) Swap

func (as Feeds) Swap(i, j int)

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) Descriptor() ([]byte, []int)

func (*NewEp) Marshal

func (m *NewEp) Marshal() (dAtA []byte, err error)

func (*NewEp) MarshalTo

func (m *NewEp) MarshalTo(dAtA []byte) (int, error)

func (*NewEp) ProtoMessage

func (*NewEp) ProtoMessage()

func (*NewEp) Reset

func (m *NewEp) Reset()

func (*NewEp) Size

func (m *NewEp) Size() (n int)

func (*NewEp) String

func (m *NewEp) String() string

func (*NewEp) Unmarshal

func (m *NewEp) Unmarshal(dAtA []byte) error

type Pull

type Pull struct {
	SeasonID int64 `json:"season_id"`
	Ts       int64 `json:"ts"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL