Documentation ¶
Index ¶
- type ArcAllow
- type ArcCMS
- type ArcFull
- type ArcMedia
- type ArcMsg
- type ArchDatabus
- type Archive
- type CidReq
- type CidResp
- type DatabusArc
- type DatabusVideo
- type DelVideos
- type EasyUp
- type LicSke
- type MarkArc
- type MarkVideo
- type ReqSetUp
- type SimpleArc
- type SimpleVideo
- type Upper
- type VideoCMS
- type VideoDiff
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArcAllow ¶
ArcAllow is the struct used to check whether the arc is allowed to enter TV database
func (*ArcAllow) FromArcFull ¶
FromArcFull takes info from arcFull structure ( db )
func (*ArcAllow) FromArcReply ¶
FromArcReply takes info from grpc result
func (*ArcAllow) FromArchive ¶
FromArchive takes info from DB
func (*ArcAllow) FromArcmdl ¶
FromArcmdl takes info from gorpc result
func (*ArcAllow) FromDatabus ¶
func (a *ArcAllow) FromDatabus(db *ArchDatabus)
FromDatabus takes info from databus result ( archive-notify T )
type ArcCMS ¶
type ArcCMS struct { // Media Info Title string AID int64 Content string Cover string TypeID int32 Pubtime time.Time Videos int // Auth Info Valid int Deleted int Result int }
ArcCMS represents the archive data structure in MC
type ArcMedia ¶
type ArcMedia struct { Title string AID int64 Cover string TypeID int32 Pubtime time.Time Videos int64 Deleted int }
ArcMedia is the archive media struct in MC
type ArcMsg ¶
type ArcMsg struct { Action string `json:"action"` Table string `json:"table"` Old *ArchDatabus `json:"old"` New *ArchDatabus `json:"new"` }
ArcMsg reprensents the archive Notify-T message structure
type ArchDatabus ¶
type ArchDatabus struct { Aid int64 `json:"aid"` Mid int64 `json:"mid"` TypeID int32 `json:"typeid"` Videos int64 `json:"videos"` Duration int `json:"duration"` Title string `json:"title"` Cover string `json:"cover"` Content string `json:"content"` Attribute int32 `json:"attribute"` Copyright int32 `json:"copyright"` State int32 `json:"state"` Access int `json:"access"` PubTime string `json:"pubtime"` }
ArchDatabus model ( we pick the fields that we need )
type Archive ¶
type Archive struct { ID int AID int64 MID int64 TypeID int32 Videos int64 Title string Cover string Content string Duration int64 Copyright int32 Pubtime time.Time Ctime time.Time Mtime time.Time State int32 Manual int Valid int Submit int Retry int Result int Deleted int }
Archive archive def. corresponding to our table structure
type CidReq ¶
type CidReq struct {
CID int64 `json:"cid"`
}
CidReq reprensents the structure for reporting cid
type DatabusArc ¶
DatabusArc is the struct of message for the modification of ugc_archive
type DatabusVideo ¶
DatabusVideo is the struct of message for the modification of ugc_Video
type LicSke ¶
type LicSke struct { Arc *SimpleArc Videos []*SimpleVideo }
LicSke represents the skeleton of a license audit message
type MarkArc ¶
type MarkArc struct { ID int `json:"id"` AID int64 `json:"aid"` MID int `json:"mid"` TypeID int32 `json:"typeid"` Videos int `json:"videos"` Title string `json:"title"` Cover string `json:"cover"` Content string `json:"content"` Duration int `json:"duration"` Copyright int `json:"copyright"` Pubtime string `json:"pubtime"` Ctime string `json:"ctime"` Mtime string `json:"mtime"` State int `json:"state"` Manual int `json:"manual"` Valid int `json:"valid"` Submit int `json:"submit"` Retry int `json:"retry"` Result int `json:"result"` Deleted int `json:"deleted"` InjectTime string `json:"inject_time"` Reason string `json:"reason"` }
MarkArc contains the main fields that we want to pick up from databus message
type MarkVideo ¶
type MarkVideo struct { Mark int `json:"mark"` Deleted int `json:"deleted"` CID int64 `json:"cid"` AID int64 `json:"aid"` EPTitle string `json:"eptitle"` IndexOrder int `json:"index_order"` Valid int `json:"valid"` Result int `json:"result"` Submit int `json:"submit"` Transcoded int `json:"transcoded"` Retry int64 `json:"retry"` }
MarkVideo contains the main fields that we want to pick up from databus message
func (*MarkVideo) ToAudit ¶
ToAudit distinguishes whether the CID need to be reported to the license owner
type SimpleArc ¶
type SimpleArc struct { AID int64 MID int64 TypeID int32 Videos int64 Title string Cover string Content string Duration int64 Pubtime string }
SimpleArc provides the fields for license owner sync
type SimpleVideo ¶
type SimpleVideo struct { ID int CID int64 IndexOrder int64 Eptitle string Duration int64 Description string }
SimpleVideo provides the fields for license owner sync
type Upper ¶
type Upper struct { MID int64 Toinit int Submit int // 1=need report OriName string // original name CMSName string // cms intervened name OriFace string // original face CMSFace string // cms intervened face Valid int // auth info: 1=online,0=hidden Deleted int }
Upper reprensents the uppers