Documentation ¶
Overview ¶
Package v1 is a generated protocol buffer package.
It is generated from these files:
app/service/main/history/api/grpc/api.proto
It has these top-level messages:
AddHistoryReply AddHistoryReq AddHistoriesReq AddHistoriesReply DelHistoriesReq DelHistoriesReply ClearHistoryReq ClearHistoryReply UserHistoriesReq UserHistoriesReply HistoriesReq HistoriesReply UserHideReq UserHideReply UpdateUserHideReq UpdateUserHideReply
Index ¶
- Constants
- Variables
- func RegisterHistoryServer(s *grpc.Server, srv HistoryServer)
- type AddHistoriesReply
- func (*AddHistoriesReply) Descriptor() ([]byte, []int)
- func (m *AddHistoriesReply) Marshal() (dAtA []byte, err error)
- func (m *AddHistoriesReply) MarshalTo(dAtA []byte) (int, error)
- func (*AddHistoriesReply) ProtoMessage()
- func (m *AddHistoriesReply) Reset()
- func (m *AddHistoriesReply) Size() (n int)
- func (m *AddHistoriesReply) String() string
- func (m *AddHistoriesReply) Unmarshal(dAtA []byte) error
- type AddHistoriesReq
- func (*AddHistoriesReq) Descriptor() ([]byte, []int)
- func (m *AddHistoriesReq) GetHistories() []*AddHistoryReq
- func (m *AddHistoriesReq) Marshal() (dAtA []byte, err error)
- func (m *AddHistoriesReq) MarshalTo(dAtA []byte) (int, error)
- func (*AddHistoriesReq) ProtoMessage()
- func (m *AddHistoriesReq) Reset()
- func (m *AddHistoriesReq) Size() (n int)
- func (m *AddHistoriesReq) String() string
- func (m *AddHistoriesReq) Unmarshal(dAtA []byte) error
- type AddHistoryReply
- func (*AddHistoryReply) Descriptor() ([]byte, []int)
- func (m *AddHistoryReply) Marshal() (dAtA []byte, err error)
- func (m *AddHistoryReply) MarshalTo(dAtA []byte) (int, error)
- func (*AddHistoryReply) ProtoMessage()
- func (m *AddHistoryReply) Reset()
- func (m *AddHistoryReply) Size() (n int)
- func (m *AddHistoryReply) String() string
- func (m *AddHistoryReply) Unmarshal(dAtA []byte) error
- type AddHistoryReq
- func (*AddHistoryReq) Descriptor() ([]byte, []int)
- func (m *AddHistoryReq) GetAid() int64
- func (m *AddHistoryReq) GetBusiness() string
- func (m *AddHistoryReq) GetCid() int64
- func (m *AddHistoryReq) GetDevice() int32
- func (m *AddHistoryReq) GetEpid() int64
- func (m *AddHistoryReq) GetKid() int64
- func (m *AddHistoryReq) GetMid() int64
- func (m *AddHistoryReq) GetProgress() int32
- func (m *AddHistoryReq) GetSid() int64
- func (m *AddHistoryReq) GetSubType() int32
- func (m *AddHistoryReq) GetViewAt() int64
- func (m *AddHistoryReq) Marshal() (dAtA []byte, err error)
- func (m *AddHistoryReq) MarshalTo(dAtA []byte) (int, error)
- func (*AddHistoryReq) ProtoMessage()
- func (m *AddHistoryReq) Reset()
- func (m *AddHistoryReq) Size() (n int)
- func (m *AddHistoryReq) String() string
- func (m *AddHistoryReq) Unmarshal(dAtA []byte) error
- type ClearHistoryReply
- func (*ClearHistoryReply) Descriptor() ([]byte, []int)
- func (m *ClearHistoryReply) Marshal() (dAtA []byte, err error)
- func (m *ClearHistoryReply) MarshalTo(dAtA []byte) (int, error)
- func (*ClearHistoryReply) ProtoMessage()
- func (m *ClearHistoryReply) Reset()
- func (m *ClearHistoryReply) Size() (n int)
- func (m *ClearHistoryReply) String() string
- func (m *ClearHistoryReply) Unmarshal(dAtA []byte) error
- type ClearHistoryReq
- func (*ClearHistoryReq) Descriptor() ([]byte, []int)
- func (m *ClearHistoryReq) GetBusinesses() []string
- func (m *ClearHistoryReq) GetMid() int64
- func (m *ClearHistoryReq) Marshal() (dAtA []byte, err error)
- func (m *ClearHistoryReq) MarshalTo(dAtA []byte) (int, error)
- func (*ClearHistoryReq) ProtoMessage()
- func (m *ClearHistoryReq) Reset()
- func (m *ClearHistoryReq) Size() (n int)
- func (m *ClearHistoryReq) String() string
- func (m *ClearHistoryReq) Unmarshal(dAtA []byte) error
- type DelHistoriesReply
- func (*DelHistoriesReply) Descriptor() ([]byte, []int)
- func (m *DelHistoriesReply) Marshal() (dAtA []byte, err error)
- func (m *DelHistoriesReply) MarshalTo(dAtA []byte) (int, error)
- func (*DelHistoriesReply) ProtoMessage()
- func (m *DelHistoriesReply) Reset()
- func (m *DelHistoriesReply) Size() (n int)
- func (m *DelHistoriesReply) String() string
- func (m *DelHistoriesReply) Unmarshal(dAtA []byte) error
- type DelHistoriesReq
- func (*DelHistoriesReq) Descriptor() ([]byte, []int)
- func (m *DelHistoriesReq) GetMid() int64
- func (m *DelHistoriesReq) GetRecords() []*DelHistoriesReq_Record
- func (m *DelHistoriesReq) Marshal() (dAtA []byte, err error)
- func (m *DelHistoriesReq) MarshalTo(dAtA []byte) (int, error)
- func (*DelHistoriesReq) ProtoMessage()
- func (m *DelHistoriesReq) Reset()
- func (m *DelHistoriesReq) Size() (n int)
- func (m *DelHistoriesReq) String() string
- func (m *DelHistoriesReq) Unmarshal(dAtA []byte) error
- type DelHistoriesReq_Record
- func (*DelHistoriesReq_Record) Descriptor() ([]byte, []int)
- func (m *DelHistoriesReq_Record) GetBusiness() string
- func (m *DelHistoriesReq_Record) GetID() int64
- func (m *DelHistoriesReq_Record) Marshal() (dAtA []byte, err error)
- func (m *DelHistoriesReq_Record) MarshalTo(dAtA []byte) (int, error)
- func (*DelHistoriesReq_Record) ProtoMessage()
- func (m *DelHistoriesReq_Record) Reset()
- func (m *DelHistoriesReq_Record) Size() (n int)
- func (m *DelHistoriesReq_Record) String() string
- func (m *DelHistoriesReq_Record) Unmarshal(dAtA []byte) error
- type HistoriesReply
- func (*HistoriesReply) Descriptor() ([]byte, []int)
- func (m *HistoriesReply) GetHistories() map[int64]*history.History
- func (m *HistoriesReply) Marshal() (dAtA []byte, err error)
- func (m *HistoriesReply) MarshalTo(dAtA []byte) (int, error)
- func (*HistoriesReply) ProtoMessage()
- func (m *HistoriesReply) Reset()
- func (m *HistoriesReply) Size() (n int)
- func (m *HistoriesReply) String() string
- func (m *HistoriesReply) Unmarshal(dAtA []byte) error
- type HistoriesReq
- func (*HistoriesReq) Descriptor() ([]byte, []int)
- func (m *HistoriesReq) GetBusiness() string
- func (m *HistoriesReq) GetKids() []int64
- func (m *HistoriesReq) GetMid() int64
- func (m *HistoriesReq) Marshal() (dAtA []byte, err error)
- func (m *HistoriesReq) MarshalTo(dAtA []byte) (int, error)
- func (*HistoriesReq) ProtoMessage()
- func (m *HistoriesReq) Reset()
- func (m *HistoriesReq) Size() (n int)
- func (m *HistoriesReq) String() string
- func (m *HistoriesReq) Unmarshal(dAtA []byte) error
- type HistoryClient
- type HistoryServer
- type UpdateUserHideReply
- func (*UpdateUserHideReply) Descriptor() ([]byte, []int)
- func (m *UpdateUserHideReply) Marshal() (dAtA []byte, err error)
- func (m *UpdateUserHideReply) MarshalTo(dAtA []byte) (int, error)
- func (*UpdateUserHideReply) ProtoMessage()
- func (m *UpdateUserHideReply) Reset()
- func (m *UpdateUserHideReply) Size() (n int)
- func (m *UpdateUserHideReply) String() string
- func (m *UpdateUserHideReply) Unmarshal(dAtA []byte) error
- type UpdateUserHideReq
- func (*UpdateUserHideReq) Descriptor() ([]byte, []int)
- func (m *UpdateUserHideReq) GetHide() bool
- func (m *UpdateUserHideReq) GetMid() int64
- func (m *UpdateUserHideReq) Marshal() (dAtA []byte, err error)
- func (m *UpdateUserHideReq) MarshalTo(dAtA []byte) (int, error)
- func (*UpdateUserHideReq) ProtoMessage()
- func (m *UpdateUserHideReq) Reset()
- func (m *UpdateUserHideReq) Size() (n int)
- func (m *UpdateUserHideReq) String() string
- func (m *UpdateUserHideReq) Unmarshal(dAtA []byte) error
- type UserHideReply
- func (*UserHideReply) Descriptor() ([]byte, []int)
- func (m *UserHideReply) GetHide() bool
- func (m *UserHideReply) Marshal() (dAtA []byte, err error)
- func (m *UserHideReply) MarshalTo(dAtA []byte) (int, error)
- func (*UserHideReply) ProtoMessage()
- func (m *UserHideReply) Reset()
- func (m *UserHideReply) Size() (n int)
- func (m *UserHideReply) String() string
- func (m *UserHideReply) Unmarshal(dAtA []byte) error
- type UserHideReq
- func (*UserHideReq) Descriptor() ([]byte, []int)
- func (m *UserHideReq) GetMid() int64
- func (m *UserHideReq) Marshal() (dAtA []byte, err error)
- func (m *UserHideReq) MarshalTo(dAtA []byte) (int, error)
- func (*UserHideReq) ProtoMessage()
- func (m *UserHideReq) Reset()
- func (m *UserHideReq) Size() (n int)
- func (m *UserHideReq) String() string
- func (m *UserHideReq) Unmarshal(dAtA []byte) error
- type UserHistoriesReply
- func (*UserHistoriesReply) Descriptor() ([]byte, []int)
- func (m *UserHistoriesReply) GetHistories() []*history.History
- func (m *UserHistoriesReply) Marshal() (dAtA []byte, err error)
- func (m *UserHistoriesReply) MarshalTo(dAtA []byte) (int, error)
- func (*UserHistoriesReply) ProtoMessage()
- func (m *UserHistoriesReply) Reset()
- func (m *UserHistoriesReply) Size() (n int)
- func (m *UserHistoriesReply) String() string
- func (m *UserHistoriesReply) Unmarshal(dAtA []byte) error
- type UserHistoriesReq
- func (*UserHistoriesReq) Descriptor() ([]byte, []int)
- func (m *UserHistoriesReq) GetBusiness() string
- func (m *UserHistoriesReq) GetBusinesses() []string
- func (m *UserHistoriesReq) GetKid() int64
- func (m *UserHistoriesReq) GetMid() int64
- func (m *UserHistoriesReq) GetPs() int64
- func (m *UserHistoriesReq) GetViewAt() int64
- func (m *UserHistoriesReq) Marshal() (dAtA []byte, err error)
- func (m *UserHistoriesReq) MarshalTo(dAtA []byte) (int, error)
- func (*UserHistoriesReq) ProtoMessage()
- func (m *UserHistoriesReq) Reset()
- func (m *UserHistoriesReq) Size() (n int)
- func (m *UserHistoriesReq) String() string
- func (m *UserHistoriesReq) Unmarshal(dAtA []byte) error
Constants ¶
View Source
const AppID = "history.service"
AppID .
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterHistoryServer ¶
func RegisterHistoryServer(s *grpc.Server, srv HistoryServer)
Types ¶
type AddHistoriesReply ¶
type AddHistoriesReply struct { }
AddHistoriesReply .
func (*AddHistoriesReply) Descriptor ¶
func (*AddHistoriesReply) Descriptor() ([]byte, []int)
func (*AddHistoriesReply) Marshal ¶
func (m *AddHistoriesReply) Marshal() (dAtA []byte, err error)
func (*AddHistoriesReply) MarshalTo ¶
func (m *AddHistoriesReply) MarshalTo(dAtA []byte) (int, error)
func (*AddHistoriesReply) ProtoMessage ¶
func (*AddHistoriesReply) ProtoMessage()
func (*AddHistoriesReply) Reset ¶
func (m *AddHistoriesReply) Reset()
func (*AddHistoriesReply) Size ¶
func (m *AddHistoriesReply) Size() (n int)
func (*AddHistoriesReply) String ¶
func (m *AddHistoriesReply) String() string
func (*AddHistoriesReply) Unmarshal ¶
func (m *AddHistoriesReply) Unmarshal(dAtA []byte) error
type AddHistoriesReq ¶
type AddHistoriesReq struct {
Histories []*AddHistoryReq `protobuf:"bytes,1,rep,name=histories" json:"histories,omitempty"`
}
AddHistoriesReq 增加多条记录
func (*AddHistoriesReq) Descriptor ¶
func (*AddHistoriesReq) Descriptor() ([]byte, []int)
func (*AddHistoriesReq) GetHistories ¶
func (m *AddHistoriesReq) GetHistories() []*AddHistoryReq
func (*AddHistoriesReq) Marshal ¶
func (m *AddHistoriesReq) Marshal() (dAtA []byte, err error)
func (*AddHistoriesReq) ProtoMessage ¶
func (*AddHistoriesReq) ProtoMessage()
func (*AddHistoriesReq) Reset ¶
func (m *AddHistoriesReq) Reset()
func (*AddHistoriesReq) Size ¶
func (m *AddHistoriesReq) Size() (n int)
func (*AddHistoriesReq) String ¶
func (m *AddHistoriesReq) String() string
func (*AddHistoriesReq) Unmarshal ¶
func (m *AddHistoriesReq) Unmarshal(dAtA []byte) error
type AddHistoryReply ¶
type AddHistoryReply struct { }
AddHistoryReply reply
func (*AddHistoryReply) Descriptor ¶
func (*AddHistoryReply) Descriptor() ([]byte, []int)
func (*AddHistoryReply) Marshal ¶
func (m *AddHistoryReply) Marshal() (dAtA []byte, err error)
func (*AddHistoryReply) ProtoMessage ¶
func (*AddHistoryReply) ProtoMessage()
func (*AddHistoryReply) Reset ¶
func (m *AddHistoryReply) Reset()
func (*AddHistoryReply) Size ¶
func (m *AddHistoryReply) Size() (n int)
func (*AddHistoryReply) String ¶
func (m *AddHistoryReply) String() string
func (*AddHistoryReply) Unmarshal ¶
func (m *AddHistoryReply) Unmarshal(dAtA []byte) error
type AddHistoryReq ¶
type AddHistoryReq struct { // mid Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required"` // business 业务 Business string `protobuf:"bytes,2,opt,name=business,proto3" json:"business,omitempty" form:"business" validate:"required"` // kid 业务中唯一id Kid int64 `protobuf:"varint,3,opt,name=kid,proto3" json:"kid,omitempty" form:"kid" validate:"required"` // aid Aid int64 `protobuf:"varint,4,opt,name=aid,proto3" json:"aid,omitempty" form:"aid"` // sid Sid int64 `protobuf:"varint,5,opt,name=sid,proto3" json:"sid,omitempty" form:"sid"` // epid Epid int64 `protobuf:"varint,6,opt,name=epid,proto3" json:"epid,omitempty" form:"epid"` // cid Cid int64 `protobuf:"varint,7,opt,name=cid,proto3" json:"cid,omitempty" form:"cid"` // sub_type 子类型 SubType int32 `protobuf:"varint,8,opt,name=sub_type,json=subType,proto3" json:"sub_type,omitempty" form:"sub_type"` // device 设备类型 Device int32 `protobuf:"varint,9,opt,name=device,proto3" json:"device,omitempty" form:"device"` // progress 进度 Progress int32 `protobuf:"varint,10,opt,name=progress,proto3" json:"progress,omitempty" form:"progress"` // 观看时间 ViewAt int64 `protobuf:"varint,11,opt,name=view_at,json=viewAt,proto3" json:"view_at,omitempty" form:"view_at" validate:"required"` }
AddHistoryReq req
func (*AddHistoryReq) Descriptor ¶
func (*AddHistoryReq) Descriptor() ([]byte, []int)
func (*AddHistoryReq) GetAid ¶
func (m *AddHistoryReq) GetAid() int64
func (*AddHistoryReq) GetBusiness ¶
func (m *AddHistoryReq) GetBusiness() string
func (*AddHistoryReq) GetCid ¶
func (m *AddHistoryReq) GetCid() int64
func (*AddHistoryReq) GetDevice ¶
func (m *AddHistoryReq) GetDevice() int32
func (*AddHistoryReq) GetEpid ¶
func (m *AddHistoryReq) GetEpid() int64
func (*AddHistoryReq) GetKid ¶
func (m *AddHistoryReq) GetKid() int64
func (*AddHistoryReq) GetMid ¶
func (m *AddHistoryReq) GetMid() int64
func (*AddHistoryReq) GetProgress ¶
func (m *AddHistoryReq) GetProgress() int32
func (*AddHistoryReq) GetSid ¶
func (m *AddHistoryReq) GetSid() int64
func (*AddHistoryReq) GetSubType ¶
func (m *AddHistoryReq) GetSubType() int32
func (*AddHistoryReq) GetViewAt ¶
func (m *AddHistoryReq) GetViewAt() int64
func (*AddHistoryReq) Marshal ¶
func (m *AddHistoryReq) Marshal() (dAtA []byte, err error)
func (*AddHistoryReq) ProtoMessage ¶
func (*AddHistoryReq) ProtoMessage()
func (*AddHistoryReq) Reset ¶
func (m *AddHistoryReq) Reset()
func (*AddHistoryReq) Size ¶
func (m *AddHistoryReq) Size() (n int)
func (*AddHistoryReq) String ¶
func (m *AddHistoryReq) String() string
func (*AddHistoryReq) Unmarshal ¶
func (m *AddHistoryReq) Unmarshal(dAtA []byte) error
type ClearHistoryReply ¶
type ClearHistoryReply struct { }
ClearHistoryReply clear histories reply
func (*ClearHistoryReply) Descriptor ¶
func (*ClearHistoryReply) Descriptor() ([]byte, []int)
func (*ClearHistoryReply) Marshal ¶
func (m *ClearHistoryReply) Marshal() (dAtA []byte, err error)
func (*ClearHistoryReply) MarshalTo ¶
func (m *ClearHistoryReply) MarshalTo(dAtA []byte) (int, error)
func (*ClearHistoryReply) ProtoMessage ¶
func (*ClearHistoryReply) ProtoMessage()
func (*ClearHistoryReply) Reset ¶
func (m *ClearHistoryReply) Reset()
func (*ClearHistoryReply) Size ¶
func (m *ClearHistoryReply) Size() (n int)
func (*ClearHistoryReply) String ¶
func (m *ClearHistoryReply) String() string
func (*ClearHistoryReply) Unmarshal ¶
func (m *ClearHistoryReply) Unmarshal(dAtA []byte) error
type ClearHistoryReq ¶
type ClearHistoryReq struct { // businesses 业务 为空为全部业务 Businesses []string `protobuf:"bytes,1,rep,name=businesses" json:"businesses,omitempty" form:"businesses,split"` // mid Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"` }
ClearHistoryReq clear histories request
func (*ClearHistoryReq) Descriptor ¶
func (*ClearHistoryReq) Descriptor() ([]byte, []int)
func (*ClearHistoryReq) GetBusinesses ¶
func (m *ClearHistoryReq) GetBusinesses() []string
func (*ClearHistoryReq) GetMid ¶
func (m *ClearHistoryReq) GetMid() int64
func (*ClearHistoryReq) Marshal ¶
func (m *ClearHistoryReq) Marshal() (dAtA []byte, err error)
func (*ClearHistoryReq) ProtoMessage ¶
func (*ClearHistoryReq) ProtoMessage()
func (*ClearHistoryReq) Reset ¶
func (m *ClearHistoryReq) Reset()
func (*ClearHistoryReq) Size ¶
func (m *ClearHistoryReq) Size() (n int)
func (*ClearHistoryReq) String ¶
func (m *ClearHistoryReq) String() string
func (*ClearHistoryReq) Unmarshal ¶
func (m *ClearHistoryReq) Unmarshal(dAtA []byte) error
type DelHistoriesReply ¶
type DelHistoriesReply struct { }
DelHistoriesReply del histories reply
func (*DelHistoriesReply) Descriptor ¶
func (*DelHistoriesReply) Descriptor() ([]byte, []int)
func (*DelHistoriesReply) Marshal ¶
func (m *DelHistoriesReply) Marshal() (dAtA []byte, err error)
func (*DelHistoriesReply) MarshalTo ¶
func (m *DelHistoriesReply) MarshalTo(dAtA []byte) (int, error)
func (*DelHistoriesReply) ProtoMessage ¶
func (*DelHistoriesReply) ProtoMessage()
func (*DelHistoriesReply) Reset ¶
func (m *DelHistoriesReply) Reset()
func (*DelHistoriesReply) Size ¶
func (m *DelHistoriesReply) Size() (n int)
func (*DelHistoriesReply) String ¶
func (m *DelHistoriesReply) String() string
func (*DelHistoriesReply) Unmarshal ¶
func (m *DelHistoriesReply) Unmarshal(dAtA []byte) error
type DelHistoriesReq ¶
type DelHistoriesReq struct { // mid Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"` Records []*DelHistoriesReq_Record `protobuf:"bytes,2,rep,name=records" json:"records,omitempty" validate:"required"` }
DelHistoriesReq del histories request
func (*DelHistoriesReq) Descriptor ¶
func (*DelHistoriesReq) Descriptor() ([]byte, []int)
func (*DelHistoriesReq) GetMid ¶
func (m *DelHistoriesReq) GetMid() int64
func (*DelHistoriesReq) GetRecords ¶
func (m *DelHistoriesReq) GetRecords() []*DelHistoriesReq_Record
func (*DelHistoriesReq) Marshal ¶
func (m *DelHistoriesReq) Marshal() (dAtA []byte, err error)
func (*DelHistoriesReq) ProtoMessage ¶
func (*DelHistoriesReq) ProtoMessage()
func (*DelHistoriesReq) Reset ¶
func (m *DelHistoriesReq) Reset()
func (*DelHistoriesReq) Size ¶
func (m *DelHistoriesReq) Size() (n int)
func (*DelHistoriesReq) String ¶
func (m *DelHistoriesReq) String() string
func (*DelHistoriesReq) Unmarshal ¶
func (m *DelHistoriesReq) Unmarshal(dAtA []byte) error
type DelHistoriesReq_Record ¶
type DelHistoriesReq_Record struct { // business 业务 Business string `protobuf:"bytes,1,opt,name=business,proto3" json:"business,omitempty" form:"business" validate:"required"` // id ID int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" form:"id" validate:"required"` }
func (*DelHistoriesReq_Record) Descriptor ¶
func (*DelHistoriesReq_Record) Descriptor() ([]byte, []int)
func (*DelHistoriesReq_Record) GetBusiness ¶
func (m *DelHistoriesReq_Record) GetBusiness() string
func (*DelHistoriesReq_Record) GetID ¶
func (m *DelHistoriesReq_Record) GetID() int64
func (*DelHistoriesReq_Record) Marshal ¶
func (m *DelHistoriesReq_Record) Marshal() (dAtA []byte, err error)
func (*DelHistoriesReq_Record) MarshalTo ¶
func (m *DelHistoriesReq_Record) MarshalTo(dAtA []byte) (int, error)
func (*DelHistoriesReq_Record) ProtoMessage ¶
func (*DelHistoriesReq_Record) ProtoMessage()
func (*DelHistoriesReq_Record) Reset ¶
func (m *DelHistoriesReq_Record) Reset()
func (*DelHistoriesReq_Record) Size ¶
func (m *DelHistoriesReq_Record) Size() (n int)
func (*DelHistoriesReq_Record) String ¶
func (m *DelHistoriesReq_Record) String() string
func (*DelHistoriesReq_Record) Unmarshal ¶
func (m *DelHistoriesReq_Record) Unmarshal(dAtA []byte) error
type HistoriesReply ¶
type HistoriesReply struct {
Histories map[int64]*history.History `` /* 136-byte string literal not displayed */
}
AddHistoriesReply .
func (*HistoriesReply) Descriptor ¶
func (*HistoriesReply) Descriptor() ([]byte, []int)
func (*HistoriesReply) GetHistories ¶
func (m *HistoriesReply) GetHistories() map[int64]*history.History
func (*HistoriesReply) Marshal ¶
func (m *HistoriesReply) Marshal() (dAtA []byte, err error)
func (*HistoriesReply) ProtoMessage ¶
func (*HistoriesReply) ProtoMessage()
func (*HistoriesReply) Reset ¶
func (m *HistoriesReply) Reset()
func (*HistoriesReply) Size ¶
func (m *HistoriesReply) Size() (n int)
func (*HistoriesReply) String ¶
func (m *HistoriesReply) String() string
func (*HistoriesReply) Unmarshal ¶
func (m *HistoriesReply) Unmarshal(dAtA []byte) error
type HistoriesReq ¶
type HistoriesReq struct { // mid Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"` // business 业务 Business string `protobuf:"bytes,2,opt,name=business,proto3" json:"business,omitempty" form:"business" validate:"required"` // kids 业务id Kids []int64 `protobuf:"varint,3,rep,packed,name=kids" json:"kids,omitempty" form:"kids,split" validate:"required"` }
HistoriesReq .
func (*HistoriesReq) Descriptor ¶
func (*HistoriesReq) Descriptor() ([]byte, []int)
func (*HistoriesReq) GetBusiness ¶
func (m *HistoriesReq) GetBusiness() string
func (*HistoriesReq) GetKids ¶
func (m *HistoriesReq) GetKids() []int64
func (*HistoriesReq) GetMid ¶
func (m *HistoriesReq) GetMid() int64
func (*HistoriesReq) Marshal ¶
func (m *HistoriesReq) Marshal() (dAtA []byte, err error)
func (*HistoriesReq) ProtoMessage ¶
func (*HistoriesReq) ProtoMessage()
func (*HistoriesReq) Reset ¶
func (m *HistoriesReq) Reset()
func (*HistoriesReq) Size ¶
func (m *HistoriesReq) Size() (n int)
func (*HistoriesReq) String ¶
func (m *HistoriesReq) String() string
func (*HistoriesReq) Unmarshal ¶
func (m *HistoriesReq) Unmarshal(dAtA []byte) error
type HistoryClient ¶
type HistoryClient interface { // AddHistory add history. 增加播放历史接口 AddHistory(ctx context.Context, in *AddHistoryReq, opts ...grpc.CallOption) (*AddHistoryReply, error) // AddHistories 增加多条播放历史记录 AddHistories(ctx context.Context, in *AddHistoriesReq, opts ...grpc.CallOption) (*AddHistoriesReply, error) // DelHistories delete histories. 批量删除播放历史接口 DelHistories(ctx context.Context, in *DelHistoriesReq, opts ...grpc.CallOption) (*DelHistoriesReply, error) // ClearHistory clear history 按照业务删除所有播放记录 ClearHistory(ctx context.Context, in *ClearHistoryReq, opts ...grpc.CallOption) (*ClearHistoryReply, error) // UserHistories 查询用户的播放历史列表 UserHistories(ctx context.Context, in *UserHistoriesReq, opts ...grpc.CallOption) (*UserHistoriesReply, error) // Histories 根据id查询播放历史 Histories(ctx context.Context, in *HistoriesReq, opts ...grpc.CallOption) (*HistoriesReply, error) // UserHide 查询是否记录播放历史 UserHide(ctx context.Context, in *UserHideReq, opts ...grpc.CallOption) (*UserHideReply, error) // UpdateUserHide 修改是否记录播放历史 UpdateUserHide(ctx context.Context, in *UpdateUserHideReq, opts ...grpc.CallOption) (*UpdateUserHideReply, error) }
func NewClient ¶
func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (HistoryClient, error)
NewClient new grpc client
func NewHistoryClient ¶
func NewHistoryClient(cc *grpc.ClientConn) HistoryClient
type HistoryServer ¶
type HistoryServer interface { // AddHistory add history. 增加播放历史接口 AddHistory(context.Context, *AddHistoryReq) (*AddHistoryReply, error) // AddHistories 增加多条播放历史记录 AddHistories(context.Context, *AddHistoriesReq) (*AddHistoriesReply, error) // DelHistories delete histories. 批量删除播放历史接口 DelHistories(context.Context, *DelHistoriesReq) (*DelHistoriesReply, error) // ClearHistory clear history 按照业务删除所有播放记录 ClearHistory(context.Context, *ClearHistoryReq) (*ClearHistoryReply, error) // UserHistories 查询用户的播放历史列表 UserHistories(context.Context, *UserHistoriesReq) (*UserHistoriesReply, error) // Histories 根据id查询播放历史 Histories(context.Context, *HistoriesReq) (*HistoriesReply, error) // UserHide 查询是否记录播放历史 UserHide(context.Context, *UserHideReq) (*UserHideReply, error) // UpdateUserHide 修改是否记录播放历史 UpdateUserHide(context.Context, *UpdateUserHideReq) (*UpdateUserHideReply, error) }
type UpdateUserHideReply ¶
type UpdateUserHideReply struct { }
UpdateUserHideReply reply
func (*UpdateUserHideReply) Descriptor ¶
func (*UpdateUserHideReply) Descriptor() ([]byte, []int)
func (*UpdateUserHideReply) Marshal ¶
func (m *UpdateUserHideReply) Marshal() (dAtA []byte, err error)
func (*UpdateUserHideReply) MarshalTo ¶
func (m *UpdateUserHideReply) MarshalTo(dAtA []byte) (int, error)
func (*UpdateUserHideReply) ProtoMessage ¶
func (*UpdateUserHideReply) ProtoMessage()
func (*UpdateUserHideReply) Reset ¶
func (m *UpdateUserHideReply) Reset()
func (*UpdateUserHideReply) Size ¶
func (m *UpdateUserHideReply) Size() (n int)
func (*UpdateUserHideReply) String ¶
func (m *UpdateUserHideReply) String() string
func (*UpdateUserHideReply) Unmarshal ¶
func (m *UpdateUserHideReply) Unmarshal(dAtA []byte) error
type UpdateUserHideReq ¶
type UpdateUserHideReq struct { // mid Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"` Hide bool `protobuf:"varint,2,opt,name=hide,proto3" json:"hide,omitempty" form:"hide"` }
UpdateUserHideReq req
func (*UpdateUserHideReq) Descriptor ¶
func (*UpdateUserHideReq) Descriptor() ([]byte, []int)
func (*UpdateUserHideReq) GetHide ¶
func (m *UpdateUserHideReq) GetHide() bool
func (*UpdateUserHideReq) GetMid ¶
func (m *UpdateUserHideReq) GetMid() int64
func (*UpdateUserHideReq) Marshal ¶
func (m *UpdateUserHideReq) Marshal() (dAtA []byte, err error)
func (*UpdateUserHideReq) MarshalTo ¶
func (m *UpdateUserHideReq) MarshalTo(dAtA []byte) (int, error)
func (*UpdateUserHideReq) ProtoMessage ¶
func (*UpdateUserHideReq) ProtoMessage()
func (*UpdateUserHideReq) Reset ¶
func (m *UpdateUserHideReq) Reset()
func (*UpdateUserHideReq) Size ¶
func (m *UpdateUserHideReq) Size() (n int)
func (*UpdateUserHideReq) String ¶
func (m *UpdateUserHideReq) String() string
func (*UpdateUserHideReq) Unmarshal ¶
func (m *UpdateUserHideReq) Unmarshal(dAtA []byte) error
type UserHideReply ¶
type UserHideReply struct {
Hide bool `protobuf:"varint,1,opt,name=hide,proto3" json:"hide"`
}
UserHideReply reply
func (*UserHideReply) Descriptor ¶
func (*UserHideReply) Descriptor() ([]byte, []int)
func (*UserHideReply) GetHide ¶
func (m *UserHideReply) GetHide() bool
func (*UserHideReply) Marshal ¶
func (m *UserHideReply) Marshal() (dAtA []byte, err error)
func (*UserHideReply) ProtoMessage ¶
func (*UserHideReply) ProtoMessage()
func (*UserHideReply) Reset ¶
func (m *UserHideReply) Reset()
func (*UserHideReply) Size ¶
func (m *UserHideReply) Size() (n int)
func (*UserHideReply) String ¶
func (m *UserHideReply) String() string
func (*UserHideReply) Unmarshal ¶
func (m *UserHideReply) Unmarshal(dAtA []byte) error
type UserHideReq ¶
type UserHideReq struct { // mid Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"` }
UserHideReq req
func (*UserHideReq) Descriptor ¶
func (*UserHideReq) Descriptor() ([]byte, []int)
func (*UserHideReq) GetMid ¶
func (m *UserHideReq) GetMid() int64
func (*UserHideReq) Marshal ¶
func (m *UserHideReq) Marshal() (dAtA []byte, err error)
func (*UserHideReq) ProtoMessage ¶
func (*UserHideReq) ProtoMessage()
func (*UserHideReq) Reset ¶
func (m *UserHideReq) Reset()
func (*UserHideReq) Size ¶
func (m *UserHideReq) Size() (n int)
func (*UserHideReq) String ¶
func (m *UserHideReq) String() string
func (*UserHideReq) Unmarshal ¶
func (m *UserHideReq) Unmarshal(dAtA []byte) error
type UserHistoriesReply ¶
type UserHistoriesReply struct {
Histories []*history.History `protobuf:"bytes,1,rep,name=histories" json:"histories"`
}
UserHistoriesReply .
func (*UserHistoriesReply) Descriptor ¶
func (*UserHistoriesReply) Descriptor() ([]byte, []int)
func (*UserHistoriesReply) GetHistories ¶
func (m *UserHistoriesReply) GetHistories() []*history.History
func (*UserHistoriesReply) Marshal ¶
func (m *UserHistoriesReply) Marshal() (dAtA []byte, err error)
func (*UserHistoriesReply) MarshalTo ¶
func (m *UserHistoriesReply) MarshalTo(dAtA []byte) (int, error)
func (*UserHistoriesReply) ProtoMessage ¶
func (*UserHistoriesReply) ProtoMessage()
func (*UserHistoriesReply) Reset ¶
func (m *UserHistoriesReply) Reset()
func (*UserHistoriesReply) Size ¶
func (m *UserHistoriesReply) Size() (n int)
func (*UserHistoriesReply) String ¶
func (m *UserHistoriesReply) String() string
func (*UserHistoriesReply) Unmarshal ¶
func (m *UserHistoriesReply) Unmarshal(dAtA []byte) error
type UserHistoriesReq ¶
type UserHistoriesReq struct { // mid Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty" form:"mid" validate:"required,min=1"` // businesses 查询的业务范围 为空为全部业务 Businesses []string `protobuf:"bytes,2,rep,name=businesses" json:"businesses,omitempty" form:"businesses,split"` // business 上一条的业务类型 Business string `protobuf:"bytes,3,opt,name=business,proto3" json:"business,omitempty" form:"business"` // kid 上一条的id 业务中唯一id Kid int64 `protobuf:"varint,4,opt,name=kid,proto3" json:"kid,omitempty" form:"kid"` // 上一条的观看时间 ViewAt int64 `protobuf:"varint,5,opt,name=view_at,json=viewAt,proto3" json:"view_at,omitempty" form:"view_at" validate:"required"` // 每页几条 Ps int64 `protobuf:"varint,6,opt,name=Ps,proto3" json:"Ps,omitempty" form:"ps" validate:"required,min=1,max=1000"` }
UserHistoriesReq .
func (*UserHistoriesReq) Descriptor ¶
func (*UserHistoriesReq) Descriptor() ([]byte, []int)
func (*UserHistoriesReq) GetBusiness ¶
func (m *UserHistoriesReq) GetBusiness() string
func (*UserHistoriesReq) GetBusinesses ¶
func (m *UserHistoriesReq) GetBusinesses() []string
func (*UserHistoriesReq) GetKid ¶
func (m *UserHistoriesReq) GetKid() int64
func (*UserHistoriesReq) GetMid ¶
func (m *UserHistoriesReq) GetMid() int64
func (*UserHistoriesReq) GetPs ¶
func (m *UserHistoriesReq) GetPs() int64
func (*UserHistoriesReq) GetViewAt ¶
func (m *UserHistoriesReq) GetViewAt() int64
func (*UserHistoriesReq) Marshal ¶
func (m *UserHistoriesReq) Marshal() (dAtA []byte, err error)
func (*UserHistoriesReq) ProtoMessage ¶
func (*UserHistoriesReq) ProtoMessage()
func (*UserHistoriesReq) Reset ¶
func (m *UserHistoriesReq) Reset()
func (*UserHistoriesReq) Size ¶
func (m *UserHistoriesReq) Size() (n int)
func (*UserHistoriesReq) String ¶
func (m *UserHistoriesReq) String() string
func (*UserHistoriesReq) Unmarshal ¶
func (m *UserHistoriesReq) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.