archive

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: 4 Imported by: 0

Documentation

Overview

Package archive is a generated protocol buffer package.

It is generated from these files:

model.proto

It has these top-level messages:

Info

Index

Constants

View Source
const (
	StateOpen       = int32(0)
	AttrNo          = int32(0)
	AttrYes         = int32(1)
	AttrBitBadgepay = uint(18)
	AttrBitUGCPay   = uint(22)
	AttrBitIsPGC    = uint(9)
)

is

Variables

View Source
var (
	ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModel   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Info

type Info struct {
	Aid       int64   `protobuf:"varint,1,opt,name=aid,proto3" json:"aid,omitempty"`
	Cids      []int64 `protobuf:"varint,2,rep,packed,name=cids" json:"cids,omitempty"`
	State     int32   `protobuf:"varint,3,opt,name=state,proto3" json:"state,omitempty"`
	Mid       int64   `protobuf:"varint,4,opt,name=mid,proto3" json:"mid,omitempty"`
	Attribute int32   `protobuf:"varint,5,opt,name=attribute,proto3" json:"attribute,omitempty"`
}

func (*Info) AttrVal

func (info *Info) AttrVal(bit uint) int32

AttrVal get attr val by bit.

func (*Info) Descriptor

func (*Info) Descriptor() ([]byte, []int)

func (*Info) GetAid

func (m *Info) GetAid() int64

func (*Info) GetAttribute

func (m *Info) GetAttribute() int32

func (*Info) GetCids

func (m *Info) GetCids() []int64

func (*Info) GetMid

func (m *Info) GetMid() int64

func (*Info) GetState

func (m *Info) GetState() int32

func (*Info) HasCid

func (info *Info) HasCid(cid int64) (ok bool)

HasCid check cid is in info.Cids.

func (*Info) IsNormal

func (info *Info) IsNormal() bool

IsNormal check archive is normal.

func (*Info) IsPGC

func (info *Info) IsPGC() bool

IsPGC is.

func (*Info) Marshal

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

func (*Info) MarshalTo

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

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) Size

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

func (*Info) String

func (m *Info) String() string

func (*Info) Unmarshal

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

Jump to

Keyboard shortcuts

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