Documentation ¶
Index ¶
- Constants
- Variables
- func CookieOption() []requests.Option
- func FreshCookie() ([]*http.Cookie, error)
- type ApiContainerGetIndexCardsResponse
- func (*ApiContainerGetIndexCardsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ApiContainerGetIndexCardsResponse) GetData() *ApiContainerGetIndexCardsResponse_Data
- func (x *ApiContainerGetIndexCardsResponse) GetMsg() string
- func (x *ApiContainerGetIndexCardsResponse) GetOk() int32
- func (*ApiContainerGetIndexCardsResponse) ProtoMessage()
- func (x *ApiContainerGetIndexCardsResponse) ProtoReflect() protoreflect.Message
- func (x *ApiContainerGetIndexCardsResponse) Reset()
- func (x *ApiContainerGetIndexCardsResponse) String() string
- type ApiContainerGetIndexCardsResponse_Data
- func (*ApiContainerGetIndexCardsResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *ApiContainerGetIndexCardsResponse_Data) GetCardlistInfo() *ApiContainerGetIndexCardsResponse_Data_CardListInfo
- func (x *ApiContainerGetIndexCardsResponse_Data) GetCards() []*Card
- func (*ApiContainerGetIndexCardsResponse_Data) ProtoMessage()
- func (x *ApiContainerGetIndexCardsResponse_Data) ProtoReflect() protoreflect.Message
- func (x *ApiContainerGetIndexCardsResponse_Data) Reset()
- func (x *ApiContainerGetIndexCardsResponse_Data) String() string
- type ApiContainerGetIndexCardsResponse_Data_CardListInfo
- func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetContainerid() string
- func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetPage() int32
- func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetShowStyle() int32
- func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetTotal() int32
- func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetVP() int32
- func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) ProtoMessage()
- func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) ProtoReflect() protoreflect.Message
- func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) Reset()
- func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) String() string
- type ApiContainerGetIndexProfileResponse
- func (*ApiContainerGetIndexProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ApiContainerGetIndexProfileResponse) GetData() *ApiContainerGetIndexProfileResponse_Data
- func (x *ApiContainerGetIndexProfileResponse) GetMsg() string
- func (x *ApiContainerGetIndexProfileResponse) GetOk() int32
- func (*ApiContainerGetIndexProfileResponse) ProtoMessage()
- func (x *ApiContainerGetIndexProfileResponse) ProtoReflect() protoreflect.Message
- func (x *ApiContainerGetIndexProfileResponse) Reset()
- func (x *ApiContainerGetIndexProfileResponse) String() string
- type ApiContainerGetIndexProfileResponse_Data
- func (*ApiContainerGetIndexProfileResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *ApiContainerGetIndexProfileResponse_Data) GetUserInfo() *ApiContainerGetIndexProfileResponse_Data_UserInfo
- func (*ApiContainerGetIndexProfileResponse_Data) ProtoMessage()
- func (x *ApiContainerGetIndexProfileResponse_Data) ProtoReflect() protoreflect.Message
- func (x *ApiContainerGetIndexProfileResponse_Data) Reset()
- func (x *ApiContainerGetIndexProfileResponse_Data) String() string
- type ApiContainerGetIndexProfileResponse_Data_UserInfo
- func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) GetId() int64
- func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) GetProfileImageUrl() string
- func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) GetProfileUrl() string
- func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) GetScreenName() string
- func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) ProtoMessage()
- func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) ProtoReflect() protoreflect.Message
- func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) Reset()
- func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) String() string
- type CacheCard
- type Card
- func (*Card) Descriptor() ([]byte, []int)deprecated
- func (x *Card) GetCardType() CardType
- func (x *Card) GetItemId() string
- func (x *Card) GetLastWeiboCard() bool
- func (x *Card) GetMblog() *Card_Mblog
- func (x *Card) GetScheme() string
- func (*Card) ProtoMessage()
- func (x *Card) ProtoReflect() protoreflect.Message
- func (x *Card) Reset()
- func (x *Card) String() string
- type CardType
- type Card_Mblog
- func (*Card_Mblog) Descriptor() ([]byte, []int)deprecated
- func (x *Card_Mblog) GetCreatedAt() string
- func (x *Card_Mblog) GetId() string
- func (x *Card_Mblog) GetIsTop() int32
- func (x *Card_Mblog) GetMid() string
- func (x *Card_Mblog) GetPicIds() []string
- func (x *Card_Mblog) GetPics() []*Card_Mblog_Pics
- func (x *Card_Mblog) GetRawText() string
- func (x *Card_Mblog) GetRetweetedStatus() *Card_Mblog
- func (x *Card_Mblog) GetText() string
- func (x *Card_Mblog) GetTextLength() int32
- func (x *Card_Mblog) GetUser() *ApiContainerGetIndexProfileResponse_Data_UserInfo
- func (x *Card_Mblog) GetVisible() *Card_Mblog_Visible
- func (*Card_Mblog) ProtoMessage()
- func (x *Card_Mblog) ProtoReflect() protoreflect.Message
- func (x *Card_Mblog) Reset()
- func (x *Card_Mblog) String() string
- type Card_Mblog_Pics
- func (*Card_Mblog_Pics) Descriptor() ([]byte, []int)deprecated
- func (x *Card_Mblog_Pics) GetLarge() *Card_Mblog_Pics_Large
- func (x *Card_Mblog_Pics) GetPid() string
- func (x *Card_Mblog_Pics) GetSize() string
- func (x *Card_Mblog_Pics) GetUrl() string
- func (*Card_Mblog_Pics) ProtoMessage()
- func (x *Card_Mblog_Pics) ProtoReflect() protoreflect.Message
- func (x *Card_Mblog_Pics) Reset()
- func (x *Card_Mblog_Pics) String() string
- type Card_Mblog_Pics_Large
- func (*Card_Mblog_Pics_Large) Descriptor() ([]byte, []int)deprecated
- func (x *Card_Mblog_Pics_Large) GetSize() string
- func (x *Card_Mblog_Pics_Large) GetUrl() string
- func (*Card_Mblog_Pics_Large) ProtoMessage()
- func (x *Card_Mblog_Pics_Large) ProtoReflect() protoreflect.Message
- func (x *Card_Mblog_Pics_Large) Reset()
- func (x *Card_Mblog_Pics_Large) String() string
- type Card_Mblog_Visible
- func (*Card_Mblog_Visible) Descriptor() ([]byte, []int)deprecated
- func (x *Card_Mblog_Visible) GetListId() int64
- func (x *Card_Mblog_Visible) GetType() int64
- func (*Card_Mblog_Visible) ProtoMessage()
- func (x *Card_Mblog_Visible) ProtoReflect() protoreflect.Message
- func (x *Card_Mblog_Visible) Reset()
- func (x *Card_Mblog_Visible) String() string
- type Concern
- func (c *Concern) Add(ctx mmsg.IMsgCtx, groupCode int64, _id interface{}, ctype concern_type.Type) (concern.IdentityInfo, error)
- func (c *Concern) FindOrLoadUserInfo(uid int64) (*UserInfo, error)
- func (c *Concern) FindUserInfo(uid int64, load bool) (*UserInfo, error)
- func (c *Concern) Get(id interface{}) (concern.IdentityInfo, error)
- func (c *Concern) GetStateManager() concern.IStateManager
- func (Concern) MarkMblogIdKey(keys ...interface{}) string
- func (Concern) NewsInfoKey(keys ...interface{}) string
- func (c *Concern) ParseId(s string) (interface{}, error)
- func (c *Concern) Remove(ctx mmsg.IMsgCtx, groupCode int64, _id interface{}, ctype concern_type.Type) (concern.IdentityInfo, error)
- func (c *Concern) Site() string
- func (c *Concern) Start() error
- func (c *Concern) Stop()
- func (c *Concern) Types() []concern_type.Type
- func (Concern) UserInfoKey(keys ...interface{}) string
- type ConcernNewsNotify
- type GenVisitorResponse
- func (*GenVisitorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenVisitorResponse) GetData() *GenVisitorResponse_Data
- func (x *GenVisitorResponse) GetMsg() string
- func (x *GenVisitorResponse) GetRetcode() int64
- func (*GenVisitorResponse) ProtoMessage()
- func (x *GenVisitorResponse) ProtoReflect() protoreflect.Message
- func (x *GenVisitorResponse) Reset()
- func (x *GenVisitorResponse) String() string
- type GenVisitorResponse_Data
- func (*GenVisitorResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *GenVisitorResponse_Data) GetConfidence() int32
- func (x *GenVisitorResponse_Data) GetNewTid() bool
- func (x *GenVisitorResponse_Data) GetTid() string
- func (*GenVisitorResponse_Data) ProtoMessage()
- func (x *GenVisitorResponse_Data) ProtoReflect() protoreflect.Message
- func (x *GenVisitorResponse_Data) Reset()
- func (x *GenVisitorResponse_Data) String() string
- type NewsInfo
- type StateManager
- func (s *StateManager) AddNewsInfo(info *NewsInfo) error
- func (s *StateManager) AddUserInfo(info *UserInfo) error
- func (s *StateManager) GetNewsInfo(uid int64) (*NewsInfo, error)
- func (s *StateManager) GetUserInfo(uid int64) (*UserInfo, error)
- func (s *StateManager) MarkMblogId(mblogId string) (replaced bool, err error)
- func (*StateManager) MarkMblogIdKey(keys ...interface{}) string
- func (*StateManager) NewsInfoKey(keys ...interface{}) string
- func (*StateManager) UserInfoKey(keys ...interface{}) string
- type UserInfo
- type VisitorIncarnateResponse
- func (*VisitorIncarnateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VisitorIncarnateResponse) GetData() *VisitorIncarnateResponse_Data
- func (x *VisitorIncarnateResponse) GetMsg() string
- func (x *VisitorIncarnateResponse) GetRetcode() int64
- func (*VisitorIncarnateResponse) ProtoMessage()
- func (x *VisitorIncarnateResponse) ProtoReflect() protoreflect.Message
- func (x *VisitorIncarnateResponse) Reset()
- func (x *VisitorIncarnateResponse) String() string
- type VisitorIncarnateResponse_Data
- func (*VisitorIncarnateResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *VisitorIncarnateResponse_Data) GetSub() string
- func (x *VisitorIncarnateResponse_Data) GetSubp() string
- func (*VisitorIncarnateResponse_Data) ProtoMessage()
- func (x *VisitorIncarnateResponse_Data) ProtoReflect() protoreflect.Message
- func (x *VisitorIncarnateResponse_Data) Reset()
- func (x *VisitorIncarnateResponse_Data) String() string
Constants ¶
const ( PathConcainerGetIndex_Profile = "https://m.weibo.cn/api/container/getIndex?containerid=100505" PathContainerGetIndex_Cards = "https://m.weibo.cn/api/container/getIndex?containerid=107603" )
const (
News concern_type.Type = "news"
)
const (
Site = "weibo"
)
Variables ¶
var ( CardType_name = map[int32]string{ 0: "Unknown", 9: "Normal", } CardType_value = map[string]int32{ "Unknown": 0, "Normal": 9, } )
Enum value maps for CardType.
var File_lsp_weibo_weibo_proto protoreflect.FileDescriptor
Functions ¶
func CookieOption ¶
func FreshCookie ¶
Types ¶
type ApiContainerGetIndexCardsResponse ¶
type ApiContainerGetIndexCardsResponse struct { Ok int32 `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` Data *ApiContainerGetIndexCardsResponse_Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func ApiContainerGetIndexCards ¶
func ApiContainerGetIndexCards(uid int64) (*ApiContainerGetIndexCardsResponse, error)
func (*ApiContainerGetIndexCardsResponse) Descriptor
deprecated
func (*ApiContainerGetIndexCardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApiContainerGetIndexCardsResponse.ProtoReflect.Descriptor instead.
func (*ApiContainerGetIndexCardsResponse) GetData ¶
func (x *ApiContainerGetIndexCardsResponse) GetData() *ApiContainerGetIndexCardsResponse_Data
func (*ApiContainerGetIndexCardsResponse) GetMsg ¶
func (x *ApiContainerGetIndexCardsResponse) GetMsg() string
func (*ApiContainerGetIndexCardsResponse) GetOk ¶
func (x *ApiContainerGetIndexCardsResponse) GetOk() int32
func (*ApiContainerGetIndexCardsResponse) ProtoMessage ¶
func (*ApiContainerGetIndexCardsResponse) ProtoMessage()
func (*ApiContainerGetIndexCardsResponse) ProtoReflect ¶
func (x *ApiContainerGetIndexCardsResponse) ProtoReflect() protoreflect.Message
func (*ApiContainerGetIndexCardsResponse) Reset ¶
func (x *ApiContainerGetIndexCardsResponse) Reset()
func (*ApiContainerGetIndexCardsResponse) String ¶
func (x *ApiContainerGetIndexCardsResponse) String() string
type ApiContainerGetIndexCardsResponse_Data ¶
type ApiContainerGetIndexCardsResponse_Data struct { CardlistInfo *ApiContainerGetIndexCardsResponse_Data_CardListInfo `protobuf:"bytes,1,opt,name=cardlistInfo,proto3" json:"cardlistInfo,omitempty"` Cards []*Card `protobuf:"bytes,2,rep,name=cards,proto3" json:"cards,omitempty"` // contains filtered or unexported fields }
func (*ApiContainerGetIndexCardsResponse_Data) Descriptor
deprecated
func (*ApiContainerGetIndexCardsResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use ApiContainerGetIndexCardsResponse_Data.ProtoReflect.Descriptor instead.
func (*ApiContainerGetIndexCardsResponse_Data) GetCardlistInfo ¶
func (x *ApiContainerGetIndexCardsResponse_Data) GetCardlistInfo() *ApiContainerGetIndexCardsResponse_Data_CardListInfo
func (*ApiContainerGetIndexCardsResponse_Data) GetCards ¶
func (x *ApiContainerGetIndexCardsResponse_Data) GetCards() []*Card
func (*ApiContainerGetIndexCardsResponse_Data) ProtoMessage ¶
func (*ApiContainerGetIndexCardsResponse_Data) ProtoMessage()
func (*ApiContainerGetIndexCardsResponse_Data) ProtoReflect ¶
func (x *ApiContainerGetIndexCardsResponse_Data) ProtoReflect() protoreflect.Message
func (*ApiContainerGetIndexCardsResponse_Data) Reset ¶
func (x *ApiContainerGetIndexCardsResponse_Data) Reset()
func (*ApiContainerGetIndexCardsResponse_Data) String ¶
func (x *ApiContainerGetIndexCardsResponse_Data) String() string
type ApiContainerGetIndexCardsResponse_Data_CardListInfo ¶
type ApiContainerGetIndexCardsResponse_Data_CardListInfo struct { Containerid string `protobuf:"bytes,1,opt,name=containerid,proto3" json:"containerid,omitempty"` VP int32 `protobuf:"varint,2,opt,name=v_p,json=vP,proto3" json:"v_p,omitempty"` ShowStyle int32 `protobuf:"varint,3,opt,name=show_style,json=showStyle,proto3" json:"show_style,omitempty"` Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` Page int32 `protobuf:"varint,5,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) Descriptor
deprecated
func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) Descriptor() ([]byte, []int)
Deprecated: Use ApiContainerGetIndexCardsResponse_Data_CardListInfo.ProtoReflect.Descriptor instead.
func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetContainerid ¶
func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetContainerid() string
func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetPage ¶
func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetPage() int32
func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetShowStyle ¶
func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetShowStyle() int32
func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetTotal ¶
func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetTotal() int32
func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetVP ¶
func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetVP() int32
func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) ProtoMessage ¶
func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) ProtoMessage()
func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) ProtoReflect ¶
func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) ProtoReflect() protoreflect.Message
func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) Reset ¶
func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) Reset()
func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) String ¶
func (x *ApiContainerGetIndexCardsResponse_Data_CardListInfo) String() string
type ApiContainerGetIndexProfileResponse ¶
type ApiContainerGetIndexProfileResponse struct { Ok int32 `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` Data *ApiContainerGetIndexProfileResponse_Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func ApiContainerGetIndexProfile ¶
func ApiContainerGetIndexProfile(uid int64) (*ApiContainerGetIndexProfileResponse, error)
func (*ApiContainerGetIndexProfileResponse) Descriptor
deprecated
func (*ApiContainerGetIndexProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApiContainerGetIndexProfileResponse.ProtoReflect.Descriptor instead.
func (*ApiContainerGetIndexProfileResponse) GetData ¶
func (x *ApiContainerGetIndexProfileResponse) GetData() *ApiContainerGetIndexProfileResponse_Data
func (*ApiContainerGetIndexProfileResponse) GetMsg ¶
func (x *ApiContainerGetIndexProfileResponse) GetMsg() string
func (*ApiContainerGetIndexProfileResponse) GetOk ¶
func (x *ApiContainerGetIndexProfileResponse) GetOk() int32
func (*ApiContainerGetIndexProfileResponse) ProtoMessage ¶
func (*ApiContainerGetIndexProfileResponse) ProtoMessage()
func (*ApiContainerGetIndexProfileResponse) ProtoReflect ¶
func (x *ApiContainerGetIndexProfileResponse) ProtoReflect() protoreflect.Message
func (*ApiContainerGetIndexProfileResponse) Reset ¶
func (x *ApiContainerGetIndexProfileResponse) Reset()
func (*ApiContainerGetIndexProfileResponse) String ¶
func (x *ApiContainerGetIndexProfileResponse) String() string
type ApiContainerGetIndexProfileResponse_Data ¶
type ApiContainerGetIndexProfileResponse_Data struct { UserInfo *ApiContainerGetIndexProfileResponse_Data_UserInfo `protobuf:"bytes,1,opt,name=userInfo,proto3" json:"userInfo,omitempty"` // contains filtered or unexported fields }
func (*ApiContainerGetIndexProfileResponse_Data) Descriptor
deprecated
func (*ApiContainerGetIndexProfileResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use ApiContainerGetIndexProfileResponse_Data.ProtoReflect.Descriptor instead.
func (*ApiContainerGetIndexProfileResponse_Data) GetUserInfo ¶
func (x *ApiContainerGetIndexProfileResponse_Data) GetUserInfo() *ApiContainerGetIndexProfileResponse_Data_UserInfo
func (*ApiContainerGetIndexProfileResponse_Data) ProtoMessage ¶
func (*ApiContainerGetIndexProfileResponse_Data) ProtoMessage()
func (*ApiContainerGetIndexProfileResponse_Data) ProtoReflect ¶
func (x *ApiContainerGetIndexProfileResponse_Data) ProtoReflect() protoreflect.Message
func (*ApiContainerGetIndexProfileResponse_Data) Reset ¶
func (x *ApiContainerGetIndexProfileResponse_Data) Reset()
func (*ApiContainerGetIndexProfileResponse_Data) String ¶
func (x *ApiContainerGetIndexProfileResponse_Data) String() string
type ApiContainerGetIndexProfileResponse_Data_UserInfo ¶
type ApiContainerGetIndexProfileResponse_Data_UserInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ScreenName string `protobuf:"bytes,2,opt,name=screen_name,json=screenName,proto3" json:"screen_name,omitempty"` ProfileImageUrl string `protobuf:"bytes,3,opt,name=profile_image_url,json=profileImageUrl,proto3" json:"profile_image_url,omitempty"` ProfileUrl string `protobuf:"bytes,4,opt,name=profile_url,json=profileUrl,proto3" json:"profile_url,omitempty"` // contains filtered or unexported fields }
func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) Descriptor
deprecated
func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) Descriptor() ([]byte, []int)
Deprecated: Use ApiContainerGetIndexProfileResponse_Data_UserInfo.ProtoReflect.Descriptor instead.
func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) GetId ¶
func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) GetId() int64
func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) GetProfileImageUrl ¶
func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) GetProfileImageUrl() string
func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) GetProfileUrl ¶
func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) GetProfileUrl() string
func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) GetScreenName ¶
func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) GetScreenName() string
func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) ProtoMessage ¶
func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) ProtoMessage()
func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) ProtoReflect ¶
func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) ProtoReflect() protoreflect.Message
func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) Reset ¶
func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) Reset()
func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) String ¶
func (x *ApiContainerGetIndexProfileResponse_Data_UserInfo) String() string
type CacheCard ¶
func NewCacheCard ¶
type Card ¶
type Card struct { CardType CardType `protobuf:"varint,1,opt,name=card_type,json=cardType,proto3,enum=weibo.CardType" json:"card_type,omitempty"` ItemId string `protobuf:"bytes,2,opt,name=itemId,proto3" json:"itemId,omitempty"` // 这个好像可以用来当做传送门链接 Scheme string `protobuf:"bytes,3,opt,name=scheme,proto3" json:"scheme,omitempty"` Mblog *Card_Mblog `protobuf:"bytes,4,opt,name=mblog,proto3" json:"mblog,omitempty"` LastWeiboCard bool `protobuf:"varint,5,opt,name=lastWeiboCard,proto3" json:"lastWeiboCard,omitempty"` // contains filtered or unexported fields }
func (*Card) Descriptor
deprecated
func (*Card) GetCardType ¶
func (*Card) GetLastWeiboCard ¶
func (*Card) GetMblog ¶
func (x *Card) GetMblog() *Card_Mblog
func (*Card) ProtoMessage ¶
func (*Card) ProtoMessage()
func (*Card) ProtoReflect ¶
func (x *Card) ProtoReflect() protoreflect.Message
type CardType ¶
type CardType int32
func (CardType) Descriptor ¶
func (CardType) Descriptor() protoreflect.EnumDescriptor
func (CardType) EnumDescriptor
deprecated
func (CardType) Number ¶
func (x CardType) Number() protoreflect.EnumNumber
func (CardType) Type ¶
func (CardType) Type() protoreflect.EnumType
type Card_Mblog ¶
type Card_Mblog struct { Visible *Card_Mblog_Visible `protobuf:"bytes,1,opt,name=visible,proto3" json:"visible,omitempty"` // 可以用 time.RubyDate 解析 CreatedAt string `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Mid string `protobuf:"bytes,4,opt,name=mid,proto3" json:"mid,omitempty"` Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"` TextLength int32 `protobuf:"varint,6,opt,name=textLength,proto3" json:"textLength,omitempty"` PicIds []string `protobuf:"bytes,7,rep,name=pic_ids,json=picIds,proto3" json:"pic_ids,omitempty"` User *ApiContainerGetIndexProfileResponse_Data_UserInfo `protobuf:"bytes,8,opt,name=user,proto3" json:"user,omitempty"` Pics []*Card_Mblog_Pics `protobuf:"bytes,9,rep,name=pics,proto3" json:"pics,omitempty"` IsTop int32 `protobuf:"varint,10,opt,name=isTop,proto3" json:"isTop,omitempty"` RetweetedStatus *Card_Mblog `protobuf:"bytes,11,opt,name=retweeted_status,json=retweetedStatus,proto3" json:"retweeted_status,omitempty"` RawText string `protobuf:"bytes,12,opt,name=raw_text,json=rawText,proto3" json:"raw_text,omitempty"` // contains filtered or unexported fields }
func (*Card_Mblog) Descriptor
deprecated
func (*Card_Mblog) Descriptor() ([]byte, []int)
Deprecated: Use Card_Mblog.ProtoReflect.Descriptor instead.
func (*Card_Mblog) GetCreatedAt ¶
func (x *Card_Mblog) GetCreatedAt() string
func (*Card_Mblog) GetId ¶
func (x *Card_Mblog) GetId() string
func (*Card_Mblog) GetIsTop ¶
func (x *Card_Mblog) GetIsTop() int32
func (*Card_Mblog) GetMid ¶
func (x *Card_Mblog) GetMid() string
func (*Card_Mblog) GetPicIds ¶
func (x *Card_Mblog) GetPicIds() []string
func (*Card_Mblog) GetPics ¶
func (x *Card_Mblog) GetPics() []*Card_Mblog_Pics
func (*Card_Mblog) GetRawText ¶
func (x *Card_Mblog) GetRawText() string
func (*Card_Mblog) GetRetweetedStatus ¶
func (x *Card_Mblog) GetRetweetedStatus() *Card_Mblog
func (*Card_Mblog) GetText ¶
func (x *Card_Mblog) GetText() string
func (*Card_Mblog) GetTextLength ¶
func (x *Card_Mblog) GetTextLength() int32
func (*Card_Mblog) GetUser ¶
func (x *Card_Mblog) GetUser() *ApiContainerGetIndexProfileResponse_Data_UserInfo
func (*Card_Mblog) GetVisible ¶
func (x *Card_Mblog) GetVisible() *Card_Mblog_Visible
func (*Card_Mblog) ProtoMessage ¶
func (*Card_Mblog) ProtoMessage()
func (*Card_Mblog) ProtoReflect ¶
func (x *Card_Mblog) ProtoReflect() protoreflect.Message
func (*Card_Mblog) Reset ¶
func (x *Card_Mblog) Reset()
func (*Card_Mblog) String ¶
func (x *Card_Mblog) String() string
type Card_Mblog_Pics ¶
type Card_Mblog_Pics struct { Pid string `protobuf:"bytes,1,opt,name=pid,proto3" json:"pid,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Size string `protobuf:"bytes,3,opt,name=size,proto3" json:"size,omitempty"` Large *Card_Mblog_Pics_Large `protobuf:"bytes,5,opt,name=large,proto3" json:"large,omitempty"` // contains filtered or unexported fields }
func (*Card_Mblog_Pics) Descriptor
deprecated
func (*Card_Mblog_Pics) Descriptor() ([]byte, []int)
Deprecated: Use Card_Mblog_Pics.ProtoReflect.Descriptor instead.
func (*Card_Mblog_Pics) GetLarge ¶
func (x *Card_Mblog_Pics) GetLarge() *Card_Mblog_Pics_Large
func (*Card_Mblog_Pics) GetPid ¶
func (x *Card_Mblog_Pics) GetPid() string
func (*Card_Mblog_Pics) GetSize ¶
func (x *Card_Mblog_Pics) GetSize() string
func (*Card_Mblog_Pics) GetUrl ¶
func (x *Card_Mblog_Pics) GetUrl() string
func (*Card_Mblog_Pics) ProtoMessage ¶
func (*Card_Mblog_Pics) ProtoMessage()
func (*Card_Mblog_Pics) ProtoReflect ¶
func (x *Card_Mblog_Pics) ProtoReflect() protoreflect.Message
func (*Card_Mblog_Pics) Reset ¶
func (x *Card_Mblog_Pics) Reset()
func (*Card_Mblog_Pics) String ¶
func (x *Card_Mblog_Pics) String() string
type Card_Mblog_Pics_Large ¶
type Card_Mblog_Pics_Large struct { Size string `protobuf:"bytes,1,opt,name=size,proto3" json:"size,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Card_Mblog_Pics_Large) Descriptor
deprecated
func (*Card_Mblog_Pics_Large) Descriptor() ([]byte, []int)
Deprecated: Use Card_Mblog_Pics_Large.ProtoReflect.Descriptor instead.
func (*Card_Mblog_Pics_Large) GetSize ¶
func (x *Card_Mblog_Pics_Large) GetSize() string
func (*Card_Mblog_Pics_Large) GetUrl ¶
func (x *Card_Mblog_Pics_Large) GetUrl() string
func (*Card_Mblog_Pics_Large) ProtoMessage ¶
func (*Card_Mblog_Pics_Large) ProtoMessage()
func (*Card_Mblog_Pics_Large) ProtoReflect ¶
func (x *Card_Mblog_Pics_Large) ProtoReflect() protoreflect.Message
func (*Card_Mblog_Pics_Large) Reset ¶
func (x *Card_Mblog_Pics_Large) Reset()
func (*Card_Mblog_Pics_Large) String ¶
func (x *Card_Mblog_Pics_Large) String() string
type Card_Mblog_Visible ¶
type Card_Mblog_Visible struct { Type int64 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` ListId int64 `protobuf:"varint,2,opt,name=list_id,json=listId,proto3" json:"list_id,omitempty"` // contains filtered or unexported fields }
func (*Card_Mblog_Visible) Descriptor
deprecated
func (*Card_Mblog_Visible) Descriptor() ([]byte, []int)
Deprecated: Use Card_Mblog_Visible.ProtoReflect.Descriptor instead.
func (*Card_Mblog_Visible) GetListId ¶
func (x *Card_Mblog_Visible) GetListId() int64
func (*Card_Mblog_Visible) GetType ¶
func (x *Card_Mblog_Visible) GetType() int64
func (*Card_Mblog_Visible) ProtoMessage ¶
func (*Card_Mblog_Visible) ProtoMessage()
func (*Card_Mblog_Visible) ProtoReflect ¶
func (x *Card_Mblog_Visible) ProtoReflect() protoreflect.Message
func (*Card_Mblog_Visible) Reset ¶
func (x *Card_Mblog_Visible) Reset()
func (*Card_Mblog_Visible) String ¶
func (x *Card_Mblog_Visible) String() string
type Concern ¶
type Concern struct {
*StateManager
}
func NewConcern ¶
func (*Concern) Add ¶
func (c *Concern) Add(ctx mmsg.IMsgCtx, groupCode int64, _id interface{}, ctype concern_type.Type) (concern.IdentityInfo, error)
func (*Concern) FindOrLoadUserInfo ¶
func (*Concern) FindUserInfo ¶
func (*Concern) GetStateManager ¶
func (c *Concern) GetStateManager() concern.IStateManager
func (Concern) MarkMblogIdKey ¶
func (Concern) MarkMblogIdKey(keys ...interface{}) string
func (Concern) NewsInfoKey ¶
func (Concern) NewsInfoKey(keys ...interface{}) string
func (*Concern) Remove ¶
func (c *Concern) Remove(ctx mmsg.IMsgCtx, groupCode int64, _id interface{}, ctype concern_type.Type) (concern.IdentityInfo, error)
func (*Concern) Types ¶
func (c *Concern) Types() []concern_type.Type
func (Concern) UserInfoKey ¶
func (Concern) UserInfoKey(keys ...interface{}) string
type ConcernNewsNotify ¶
func NewConcernNewsNotify ¶
func NewConcernNewsNotify(groupCode int64, info *NewsInfo) []*ConcernNewsNotify
func (*ConcernNewsNotify) GetGroupCode ¶
func (c *ConcernNewsNotify) GetGroupCode() int64
func (*ConcernNewsNotify) Logger ¶
func (c *ConcernNewsNotify) Logger() *logrus.Entry
func (*ConcernNewsNotify) ToMessage ¶
func (c *ConcernNewsNotify) ToMessage() (m *mmsg.MSG)
func (*ConcernNewsNotify) Type ¶
func (c *ConcernNewsNotify) Type() concern_type.Type
type GenVisitorResponse ¶
type GenVisitorResponse struct { Retcode int64 `protobuf:"varint,1,opt,name=retcode,proto3" json:"retcode,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *GenVisitorResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GenVisitorResponse) Descriptor
deprecated
func (*GenVisitorResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenVisitorResponse.ProtoReflect.Descriptor instead.
func (*GenVisitorResponse) GetData ¶
func (x *GenVisitorResponse) GetData() *GenVisitorResponse_Data
func (*GenVisitorResponse) GetMsg ¶
func (x *GenVisitorResponse) GetMsg() string
func (*GenVisitorResponse) GetRetcode ¶
func (x *GenVisitorResponse) GetRetcode() int64
func (*GenVisitorResponse) ProtoMessage ¶
func (*GenVisitorResponse) ProtoMessage()
func (*GenVisitorResponse) ProtoReflect ¶
func (x *GenVisitorResponse) ProtoReflect() protoreflect.Message
func (*GenVisitorResponse) Reset ¶
func (x *GenVisitorResponse) Reset()
func (*GenVisitorResponse) String ¶
func (x *GenVisitorResponse) String() string
type GenVisitorResponse_Data ¶
type GenVisitorResponse_Data struct { Tid string `protobuf:"bytes,1,opt,name=tid,proto3" json:"tid,omitempty"` NewTid bool `protobuf:"varint,2,opt,name=new_tid,json=newTid,proto3" json:"new_tid,omitempty"` Confidence int32 `protobuf:"varint,3,opt,name=confidence,proto3" json:"confidence,omitempty"` // contains filtered or unexported fields }
func (*GenVisitorResponse_Data) Descriptor
deprecated
func (*GenVisitorResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use GenVisitorResponse_Data.ProtoReflect.Descriptor instead.
func (*GenVisitorResponse_Data) GetConfidence ¶
func (x *GenVisitorResponse_Data) GetConfidence() int32
func (*GenVisitorResponse_Data) GetNewTid ¶
func (x *GenVisitorResponse_Data) GetNewTid() bool
func (*GenVisitorResponse_Data) GetTid ¶
func (x *GenVisitorResponse_Data) GetTid() string
func (*GenVisitorResponse_Data) ProtoMessage ¶
func (*GenVisitorResponse_Data) ProtoMessage()
func (*GenVisitorResponse_Data) ProtoReflect ¶
func (x *GenVisitorResponse_Data) ProtoReflect() protoreflect.Message
func (*GenVisitorResponse_Data) Reset ¶
func (x *GenVisitorResponse_Data) Reset()
func (*GenVisitorResponse_Data) String ¶
func (x *GenVisitorResponse_Data) String() string
type NewsInfo ¶
type NewsInfo struct { *UserInfo LatestNewsTs int64 `json:"latest_news_time"` Cards []*Card `json:"-"` }
func (*NewsInfo) Type ¶
func (n *NewsInfo) Type() concern_type.Type
type StateManager ¶
type StateManager struct { *concern.StateManager // contains filtered or unexported fields }
func NewStateManager ¶
func NewStateManager(notify chan<- concern.Notify) *StateManager
func (*StateManager) AddNewsInfo ¶
func (s *StateManager) AddNewsInfo(info *NewsInfo) error
func (*StateManager) AddUserInfo ¶
func (s *StateManager) AddUserInfo(info *UserInfo) error
func (*StateManager) GetNewsInfo ¶
func (s *StateManager) GetNewsInfo(uid int64) (*NewsInfo, error)
func (*StateManager) GetUserInfo ¶
func (s *StateManager) GetUserInfo(uid int64) (*UserInfo, error)
func (*StateManager) MarkMblogId ¶
func (s *StateManager) MarkMblogId(mblogId string) (replaced bool, err error)
func (*StateManager) MarkMblogIdKey ¶
func (*StateManager) MarkMblogIdKey(keys ...interface{}) string
func (*StateManager) NewsInfoKey ¶
func (*StateManager) NewsInfoKey(keys ...interface{}) string
func (*StateManager) UserInfoKey ¶
func (*StateManager) UserInfoKey(keys ...interface{}) string
type UserInfo ¶
type VisitorIncarnateResponse ¶
type VisitorIncarnateResponse struct { Retcode int64 `protobuf:"varint,1,opt,name=retcode,proto3" json:"retcode,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *VisitorIncarnateResponse_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*VisitorIncarnateResponse) Descriptor
deprecated
func (*VisitorIncarnateResponse) Descriptor() ([]byte, []int)
Deprecated: Use VisitorIncarnateResponse.ProtoReflect.Descriptor instead.
func (*VisitorIncarnateResponse) GetData ¶
func (x *VisitorIncarnateResponse) GetData() *VisitorIncarnateResponse_Data
func (*VisitorIncarnateResponse) GetMsg ¶
func (x *VisitorIncarnateResponse) GetMsg() string
func (*VisitorIncarnateResponse) GetRetcode ¶
func (x *VisitorIncarnateResponse) GetRetcode() int64
func (*VisitorIncarnateResponse) ProtoMessage ¶
func (*VisitorIncarnateResponse) ProtoMessage()
func (*VisitorIncarnateResponse) ProtoReflect ¶
func (x *VisitorIncarnateResponse) ProtoReflect() protoreflect.Message
func (*VisitorIncarnateResponse) Reset ¶
func (x *VisitorIncarnateResponse) Reset()
func (*VisitorIncarnateResponse) String ¶
func (x *VisitorIncarnateResponse) String() string
type VisitorIncarnateResponse_Data ¶
type VisitorIncarnateResponse_Data struct { Sub string `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` Subp string `protobuf:"bytes,2,opt,name=subp,proto3" json:"subp,omitempty"` // contains filtered or unexported fields }
func (*VisitorIncarnateResponse_Data) Descriptor
deprecated
func (*VisitorIncarnateResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use VisitorIncarnateResponse_Data.ProtoReflect.Descriptor instead.
func (*VisitorIncarnateResponse_Data) GetSub ¶
func (x *VisitorIncarnateResponse_Data) GetSub() string
func (*VisitorIncarnateResponse_Data) GetSubp ¶
func (x *VisitorIncarnateResponse_Data) GetSubp() string
func (*VisitorIncarnateResponse_Data) ProtoMessage ¶
func (*VisitorIncarnateResponse_Data) ProtoMessage()
func (*VisitorIncarnateResponse_Data) ProtoReflect ¶
func (x *VisitorIncarnateResponse_Data) ProtoReflect() protoreflect.Message
func (*VisitorIncarnateResponse_Data) Reset ¶
func (x *VisitorIncarnateResponse_Data) Reset()
func (*VisitorIncarnateResponse_Data) String ¶
func (x *VisitorIncarnateResponse_Data) String() string