gob_vs_json_struct

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AidCache

type AidCache struct {
	Aid      uint32 `json:"aid"`       // 广告位
	TimeLen  uint32 `json:"time_len"`  // 视频时长
	AdBreak1 uint32 `json:"ad_break1"` // 中插点位1
	AdBreak2 uint32 `json:"ad_break2"` // 中插点位2
	AdBreak3 uint32 `json:"ad_break3"` // 中插点位3
	AdBreak4 uint32 `json:"ad_break4"` // 中插点位4
	AdBreak5 uint32 `json:"ad_break5"` // 中插点位5
	AdFlag   int    `json:"ad_flag"`   // 华纳 HBO标志
	TypeId   uint32 `json:"type_id"`   // 大分类id
	ColumnId int    `json:"column_id"` // 栏目id

	IvbBreaks []uint32   `json:"ivb_breaks"` // IVB中插
	UploadQQ  uint32     `json:"upload_qq"`  // 上传者qq号
	WatchBuys []WatchBuy `json:"watch_buys"` // 边看边买中插
	ImgTag    []uint32   `json:"img_tag"`    // 角标广告中插点

	CidStatus    uint32 `json:"cid_status"`     // 专辑的付费类型
	NoAdStatus   uint32 `json:"no_ad_status"`   // 媒资信息中配置的免广告逻辑
	VcomDealFlag uint32 `json:"vcom_deal_flag"` // 商业化免广告标记
	PayStatus    uint32 `json:"pay_status"`     // 视频付费类型
	ResourceType int32  `json:"resource_type"`  // 视频资源类型 1-NBA视频
}

func NewAidCache

func NewAidCache() *AidCache

func (AidCache) MarshalEasyJSON

func (v AidCache) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AidCache) MarshalJSON

func (v AidCache) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AidCache) UnmarshalEasyJSON

func (v *AidCache) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AidCache) UnmarshalJSON

func (v *AidCache) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type WatchBuy

type WatchBuy struct {
	Time    int `json:"time"`
	Product int `json:"product"`
	Anchor  int `json:"anchor"`
	PosX    int `json:"pos_x"`
	PoxY    int `json:"pos_y"`
}

func (WatchBuy) MarshalEasyJSON

func (v WatchBuy) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (WatchBuy) MarshalJSON

func (v WatchBuy) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*WatchBuy) UnmarshalEasyJSON

func (v *WatchBuy) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WatchBuy) UnmarshalJSON

func (v *WatchBuy) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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