weibo

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathConcainerGetIndex_Profile = "https://m.weibo.cn/api/container/getIndex?containerid=100505"
	PathContainerGetIndex_Cards   = "https://m.weibo.cn/api/container/getIndex?containerid=107603"
)
View Source
const (
	News concern_type.Type = "news"
)
View Source
const (
	Site = "weibo"
)

Variables

View Source
var (
	CardType_name = map[int32]string{
		0: "Unknown",
		9: "Normal",
	}
	CardType_value = map[string]int32{
		"Unknown": 0,
		"Normal":  9,
	}
)

Enum value maps for CardType.

View Source
var File_lsp_weibo_weibo_proto protoreflect.FileDescriptor

Functions

func CookieOption added in v1.0.1

func CookieOption() []requests.Option

func FreshCookie

func FreshCookie() ([]*http.Cookie, error)

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 (*ApiContainerGetIndexCardsResponse) GetMsg added in v1.0.1

func (*ApiContainerGetIndexCardsResponse) GetOk

func (*ApiContainerGetIndexCardsResponse) ProtoMessage

func (*ApiContainerGetIndexCardsResponse) ProtoMessage()

func (*ApiContainerGetIndexCardsResponse) ProtoReflect added in v1.1.1

func (*ApiContainerGetIndexCardsResponse) Reset

func (*ApiContainerGetIndexCardsResponse) 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 (*ApiContainerGetIndexCardsResponse_Data) GetCards

func (*ApiContainerGetIndexCardsResponse_Data) ProtoMessage

func (*ApiContainerGetIndexCardsResponse_Data) ProtoReflect added in v1.1.1

func (*ApiContainerGetIndexCardsResponse_Data) Reset

func (*ApiContainerGetIndexCardsResponse_Data) 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

Deprecated: Use ApiContainerGetIndexCardsResponse_Data_CardListInfo.ProtoReflect.Descriptor instead.

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetContainerid

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetPage

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetShowStyle

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetTotal

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) GetVP

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) ProtoMessage

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) ProtoReflect added in v1.1.1

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) Reset

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) 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 (*ApiContainerGetIndexProfileResponse) GetMsg added in v1.0.1

func (*ApiContainerGetIndexProfileResponse) GetOk

func (*ApiContainerGetIndexProfileResponse) ProtoMessage

func (*ApiContainerGetIndexProfileResponse) ProtoMessage()

func (*ApiContainerGetIndexProfileResponse) ProtoReflect added in v1.1.1

func (*ApiContainerGetIndexProfileResponse) Reset

func (*ApiContainerGetIndexProfileResponse) 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 (*ApiContainerGetIndexProfileResponse_Data) ProtoMessage

func (*ApiContainerGetIndexProfileResponse_Data) ProtoReflect added in v1.1.1

func (*ApiContainerGetIndexProfileResponse_Data) Reset

func (*ApiContainerGetIndexProfileResponse_Data) 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

Deprecated: Use ApiContainerGetIndexProfileResponse_Data_UserInfo.ProtoReflect.Descriptor instead.

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) GetId

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) GetProfileImageUrl

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) GetProfileUrl

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) GetScreenName

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) ProtoMessage

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) ProtoReflect added in v1.1.1

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) Reset

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) String

type CacheCard added in v1.0.1

type CacheCard struct {
	*Card
	Name string
	// contains filtered or unexported fields
}

func NewCacheCard added in v1.0.1

func NewCacheCard(card *Card, name string) *CacheCard

func (*CacheCard) GetMSG added in v1.0.1

func (c *CacheCard) GetMSG() *mmsg.MSG

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) Descriptor() ([]byte, []int)

Deprecated: Use Card.ProtoReflect.Descriptor instead.

func (*Card) GetCardType

func (x *Card) GetCardType() CardType

func (*Card) GetItemId

func (x *Card) GetItemId() string

func (*Card) GetLastWeiboCard

func (x *Card) GetLastWeiboCard() bool

func (*Card) GetMblog

func (x *Card) GetMblog() *Card_Mblog

func (*Card) GetScheme

func (x *Card) GetScheme() string

func (*Card) ProtoMessage

func (*Card) ProtoMessage()

func (*Card) ProtoReflect added in v1.1.1

func (x *Card) ProtoReflect() protoreflect.Message

func (*Card) Reset

func (x *Card) Reset()

func (*Card) String

func (x *Card) String() string

type CardType

type CardType int32
const (
	CardType_Unknown CardType = 0
	// 发文字,图文,都是9
	CardType_Normal CardType = 9
)

func (CardType) Descriptor added in v1.1.1

func (CardType) Descriptor() protoreflect.EnumDescriptor

func (CardType) Enum added in v1.1.1

func (x CardType) Enum() *CardType

func (CardType) EnumDescriptor deprecated

func (CardType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CardType.Descriptor instead.

func (CardType) Number added in v1.1.1

func (x CardType) Number() protoreflect.EnumNumber

func (CardType) String

func (x CardType) String() string

func (CardType) Type added in v1.1.1

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) GetVisible

func (x *Card_Mblog) GetVisible() *Card_Mblog_Visible

func (*Card_Mblog) ProtoMessage

func (*Card_Mblog) ProtoMessage()

func (*Card_Mblog) ProtoReflect added in v1.1.1

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 added in v1.1.1

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 added in v1.1.1

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 added in v1.1.1

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 NewConcern(notify chan<- concern.Notify) *Concern

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 (c *Concern) FindOrLoadUserInfo(uid int64) (*UserInfo, error)

func (*Concern) FindUserInfo

func (c *Concern) FindUserInfo(uid int64, load bool) (*UserInfo, error)

func (*Concern) Get

func (c *Concern) Get(id interface{}) (concern.IdentityInfo, error)

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) ParseId

func (c *Concern) ParseId(s string) (interface{}, error)

func (*Concern) Remove

func (c *Concern) Remove(ctx mmsg.IMsgCtx, groupCode int64, _id interface{}, ctype concern_type.Type) (concern.IdentityInfo, error)

func (*Concern) Site

func (c *Concern) Site() string

func (*Concern) Start

func (c *Concern) Start() error

func (*Concern) Stop

func (c *Concern) Stop()

func (*Concern) Types

func (c *Concern) Types() []concern_type.Type

func (Concern) UserInfoKey

func (Concern) UserInfoKey(keys ...interface{}) string

type ConcernNewsNotify

type ConcernNewsNotify struct {
	GroupCode int64 `json:"group_code"`
	*UserInfo
	Card *CacheCard
}

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

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 (*GenVisitorResponse) GetMsg

func (x *GenVisitorResponse) GetMsg() string

func (*GenVisitorResponse) GetRetcode

func (x *GenVisitorResponse) GetRetcode() int64

func (*GenVisitorResponse) ProtoMessage

func (*GenVisitorResponse) ProtoMessage()

func (*GenVisitorResponse) ProtoReflect added in v1.1.1

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 added in v1.1.1

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) Logger

func (n *NewsInfo) Logger() *logrus.Entry

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 UserInfo struct {
	Uid             int64  `json:"uid"`
	Name            string `json:"name"`
	ProfileImageUrl string `json:"profile_image_url"`
	ProfileUrl      string `json:"profile_url"`
}

func (*UserInfo) GetName

func (u *UserInfo) GetName() string

func (*UserInfo) GetUid

func (u *UserInfo) GetUid() interface{}

func (*UserInfo) Logger

func (u *UserInfo) Logger() *logrus.Entry

func (*UserInfo) Site

func (u *UserInfo) Site() string

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 (*VisitorIncarnateResponse) GetMsg

func (x *VisitorIncarnateResponse) GetMsg() string

func (*VisitorIncarnateResponse) GetRetcode

func (x *VisitorIncarnateResponse) GetRetcode() int64

func (*VisitorIncarnateResponse) ProtoMessage

func (*VisitorIncarnateResponse) ProtoMessage()

func (*VisitorIncarnateResponse) ProtoReflect added in v1.1.1

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 (*VisitorIncarnateResponse_Data) GetSubp

func (*VisitorIncarnateResponse_Data) ProtoMessage

func (*VisitorIncarnateResponse_Data) ProtoMessage()

func (*VisitorIncarnateResponse_Data) ProtoReflect added in v1.1.1

func (*VisitorIncarnateResponse_Data) Reset

func (x *VisitorIncarnateResponse_Data) Reset()

func (*VisitorIncarnateResponse_Data) String

Jump to

Keyboard shortcuts

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