Documentation ¶
Overview ¶
Package model is a generated protocol buffer package.
v0.1.0 收藏夹信息
It is generated from these files:
model.proto
It has these top-level messages:
Field Fields
Index ¶
- Constants
- Variables
- type ArchiveMeta
- type ArchiveStat
- type ArchiveTv
- type ArchiveType
- type CanalMsg
- type DoReq
- type Field
- func (*Field) Descriptor() ([]byte, []int)
- func (m *Field) Marshal() (dAtA []byte, err error)
- func (m *Field) MarshalTo(dAtA []byte) (int, error)
- func (*Field) ProtoMessage()
- func (m *Field) Reset()
- func (m *Field) Size() (n int)
- func (this *Field) String() string
- func (m *Field) Unmarshal(dAtA []byte) error
- type Fields
- func (*Fields) Descriptor() ([]byte, []int)
- func (m *Fields) Marshal() (dAtA []byte, err error)
- func (m *Fields) MarshalTo(dAtA []byte) (int, error)
- func (*Fields) ProtoMessage()
- func (m *Fields) Reset()
- func (m *Fields) Size() (n int)
- func (this *Fields) String() string
- func (m *Fields) Unmarshal(dAtA []byte) error
- type Group
- type GroupReq
- type GroupResp
- type MgetReq
- type MgetResp
- type Page
- type SortReq
- type SortResp
- type StatViewMsg
- type Stime
Constants ¶
View Source
const ( // BusinessArchive . BusinessArchive = "archive" // RankOrderByDesc . RankOrderByDesc = "desc" // RankOrderByAsc . RankOrderByAsc = "asc" // SyncInsert . SyncInsert = "insert" // SyncUpdate . SyncUpdate = "update" // SyncDelete . SyncDelete = "delete" // TimeFormat . TimeFormat = "2006-01-02 15:04:05" // FlagExist . FlagExist = true )
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 ArchiveMeta ¶
type ArchiveMeta struct { ID int64 `json:"id"` Aid int64 `json:"aid"` Typeid int64 `json:"typeid"` Pubtime Stime `json:"pubtime"` *ArchiveType *ArchiveStat *ArchiveTv }
ArchiveMeta .
type ArchiveStat ¶
ArchiveStat .
type ArchiveTv ¶
type ArchiveTv struct { ID int64 `json:"id"` Aid int64 `json:"aid"` Result int8 `json:"result"` Deleted int8 `json:"deleted"` Valid int8 `json:"valid"` }
ArchiveTv .
type ArchiveType ¶
ArchiveType .
type CanalMsg ¶
type CanalMsg struct { Action string `json:"action"` Table string `json:"table"` New json.RawMessage `json:"new"` Old json.RawMessage `json:"old"` }
CanalMsg .
type DoReq ¶
type DoReq struct { Business string `form:"business" validate:"required"` Action string `form:"action" validate:"required"` MinID int64 `form:"minid"` MaxID int64 `form:"maxid"` BeginTime string `form:"begintime"` EndTime string `form:"endtime"` }
DoReq .
type Field ¶
type Field struct { Flag bool `protobuf:"varint,1,opt,name=Flag,proto3" json:"flag"` Oid int64 `protobuf:"varint,2,opt,name=Oid,proto3" json:"oid"` Pid int16 `protobuf:"varint,3,opt,name=Pid,proto3,casttype=int16" json:"pid"` Click int `protobuf:"varint,4,opt,name=Click,proto3,casttype=int" json:"click"` Pubtime go_common_library_time.Time `protobuf:"varint,5,opt,name=Pubtime,proto3,casttype=go-common/library/time.Time" json:"pubtime"` Result int8 `protobuf:"varint,6,opt,name=Result,proto3,casttype=int8" json:"result"` Deleted int8 `protobuf:"varint,7,opt,name=Deleted,proto3,casttype=int8" json:"deleted"` Valid int8 `protobuf:"varint,8,opt,name=Valid,proto3,casttype=int8" json:"valid"` }
func (*Field) Descriptor ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
type Fields ¶
type Fields struct {
Fields []*Field `protobuf:"bytes,1,rep,name=Fields" json:"Fields,omitempty"`
}
func (*Fields) Descriptor ¶
func (*Fields) ProtoMessage ¶
func (*Fields) ProtoMessage()
type GroupReq ¶
type GroupReq struct { Business string `form:"business" validate:"required"` Field string `form:"field" validate:"required"` Oids []int64 `form:"Oids,split" validate:"required"` }
GroupReq .
type MgetReq ¶
type MgetReq struct { Business string `form:"business" validate:"required"` Oids []int64 `form:"oids,split" validate:"required"` }
MgetReq .
type SortReq ¶
type SortReq struct { Business string `form:"business" validate:"required"` Field string `form:"field" validate:"required"` Order string `form:"order" validate:"required"` Filters map[string]string `form:"filters" validate:"required"` Oids []int64 `form:"oids,split" validate:"required"` Pn int `form:"pn"` Ps int `form:"ps"` }
SortReq .
type StatViewMsg ¶
type StatViewMsg struct { Type string `json:"type"` ID int64 `json:"id"` Count int `json:"count"` Timestamp int64 `json:"timestamp"` }
StatViewMsg .
type Stime ¶
type Stime int64
Stime .
func (*Stime) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.