weibo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: AGPL-3.0 Imports: 23 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",
}
View Source
var CardType_value = map[string]int32{
	"Unknown": 0,
	"Normal":  9,
}

Functions

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"`
	Data                 *ApiContainerGetIndexCardsResponse_Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                `json:"-"`
	XXX_unrecognized     []byte                                  `json:"-"`
	XXX_sizecache        int32                                   `json:"-"`
}

func ApiContainerGetIndexCards

func ApiContainerGetIndexCards(uid int64) (*ApiContainerGetIndexCardsResponse, error)

func (*ApiContainerGetIndexCardsResponse) Descriptor

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

func (*ApiContainerGetIndexCardsResponse) GetData

func (*ApiContainerGetIndexCardsResponse) GetOk

func (*ApiContainerGetIndexCardsResponse) ProtoMessage

func (*ApiContainerGetIndexCardsResponse) ProtoMessage()

func (*ApiContainerGetIndexCardsResponse) Reset

func (*ApiContainerGetIndexCardsResponse) String

func (*ApiContainerGetIndexCardsResponse) XXX_DiscardUnknown

func (m *ApiContainerGetIndexCardsResponse) XXX_DiscardUnknown()

func (*ApiContainerGetIndexCardsResponse) XXX_Marshal

func (m *ApiContainerGetIndexCardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApiContainerGetIndexCardsResponse) XXX_Merge

func (*ApiContainerGetIndexCardsResponse) XXX_Size

func (m *ApiContainerGetIndexCardsResponse) XXX_Size() int

func (*ApiContainerGetIndexCardsResponse) XXX_Unmarshal

func (m *ApiContainerGetIndexCardsResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}                                             `json:"-"`
	XXX_unrecognized     []byte                                               `json:"-"`
	XXX_sizecache        int32                                                `json:"-"`
}

func (*ApiContainerGetIndexCardsResponse_Data) Descriptor

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

func (*ApiContainerGetIndexCardsResponse_Data) GetCardlistInfo

func (*ApiContainerGetIndexCardsResponse_Data) GetCards

func (*ApiContainerGetIndexCardsResponse_Data) ProtoMessage

func (*ApiContainerGetIndexCardsResponse_Data) Reset

func (*ApiContainerGetIndexCardsResponse_Data) String

func (*ApiContainerGetIndexCardsResponse_Data) XXX_DiscardUnknown

func (m *ApiContainerGetIndexCardsResponse_Data) XXX_DiscardUnknown()

func (*ApiContainerGetIndexCardsResponse_Data) XXX_Marshal

func (m *ApiContainerGetIndexCardsResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApiContainerGetIndexCardsResponse_Data) XXX_Merge

func (*ApiContainerGetIndexCardsResponse_Data) XXX_Size

func (*ApiContainerGetIndexCardsResponse_Data) XXX_Unmarshal

func (m *ApiContainerGetIndexCardsResponse_Data) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) Descriptor

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

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) String

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) XXX_DiscardUnknown

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) XXX_Marshal

func (m *ApiContainerGetIndexCardsResponse_Data_CardListInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) XXX_Merge

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) XXX_Size

func (*ApiContainerGetIndexCardsResponse_Data_CardListInfo) XXX_Unmarshal

type ApiContainerGetIndexProfileResponse

type ApiContainerGetIndexProfileResponse struct {
	Ok                   int32                                     `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	Data                 *ApiContainerGetIndexProfileResponse_Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                  `json:"-"`
	XXX_unrecognized     []byte                                    `json:"-"`
	XXX_sizecache        int32                                     `json:"-"`
}

func ApiContainerGetIndexProfile

func ApiContainerGetIndexProfile(uid int64) (*ApiContainerGetIndexProfileResponse, error)

func (*ApiContainerGetIndexProfileResponse) Descriptor

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

func (*ApiContainerGetIndexProfileResponse) GetData

func (*ApiContainerGetIndexProfileResponse) GetOk

func (*ApiContainerGetIndexProfileResponse) ProtoMessage

func (*ApiContainerGetIndexProfileResponse) ProtoMessage()

func (*ApiContainerGetIndexProfileResponse) Reset

func (*ApiContainerGetIndexProfileResponse) String

func (*ApiContainerGetIndexProfileResponse) XXX_DiscardUnknown

func (m *ApiContainerGetIndexProfileResponse) XXX_DiscardUnknown()

func (*ApiContainerGetIndexProfileResponse) XXX_Marshal

func (m *ApiContainerGetIndexProfileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApiContainerGetIndexProfileResponse) XXX_Merge

func (*ApiContainerGetIndexProfileResponse) XXX_Size

func (*ApiContainerGetIndexProfileResponse) XXX_Unmarshal

func (m *ApiContainerGetIndexProfileResponse) XXX_Unmarshal(b []byte) error

type ApiContainerGetIndexProfileResponse_Data

type ApiContainerGetIndexProfileResponse_Data struct {
	UserInfo             *ApiContainerGetIndexProfileResponse_Data_UserInfo `protobuf:"bytes,1,opt,name=userInfo,proto3" json:"userInfo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                           `json:"-"`
	XXX_unrecognized     []byte                                             `json:"-"`
	XXX_sizecache        int32                                              `json:"-"`
}

func (*ApiContainerGetIndexProfileResponse_Data) Descriptor

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

func (*ApiContainerGetIndexProfileResponse_Data) GetUserInfo

func (*ApiContainerGetIndexProfileResponse_Data) ProtoMessage

func (*ApiContainerGetIndexProfileResponse_Data) Reset

func (*ApiContainerGetIndexProfileResponse_Data) String

func (*ApiContainerGetIndexProfileResponse_Data) XXX_DiscardUnknown

func (m *ApiContainerGetIndexProfileResponse_Data) XXX_DiscardUnknown()

func (*ApiContainerGetIndexProfileResponse_Data) XXX_Marshal

func (m *ApiContainerGetIndexProfileResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApiContainerGetIndexProfileResponse_Data) XXX_Merge

func (*ApiContainerGetIndexProfileResponse_Data) XXX_Size

func (*ApiContainerGetIndexProfileResponse_Data) XXX_Unmarshal

func (m *ApiContainerGetIndexProfileResponse_Data) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) Descriptor

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

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) String

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) XXX_DiscardUnknown

func (m *ApiContainerGetIndexProfileResponse_Data_UserInfo) XXX_DiscardUnknown()

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) XXX_Marshal

func (m *ApiContainerGetIndexProfileResponse_Data_UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) XXX_Merge

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) XXX_Size

func (*ApiContainerGetIndexProfileResponse_Data_UserInfo) XXX_Unmarshal

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"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Card) Descriptor

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

func (*Card) GetCardType

func (m *Card) GetCardType() CardType

func (*Card) GetItemId

func (m *Card) GetItemId() string

func (*Card) GetLastWeiboCard

func (m *Card) GetLastWeiboCard() bool

func (*Card) GetMblog

func (m *Card) GetMblog() *Card_Mblog

func (*Card) GetScheme

func (m *Card) GetScheme() string

func (*Card) ProtoMessage

func (*Card) ProtoMessage()

func (*Card) Reset

func (m *Card) Reset()

func (*Card) String

func (m *Card) String() string

func (*Card) XXX_DiscardUnknown

func (m *Card) XXX_DiscardUnknown()

func (*Card) XXX_Marshal

func (m *Card) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Card) XXX_Merge

func (m *Card) XXX_Merge(src proto.Message)

func (*Card) XXX_Size

func (m *Card) XXX_Size() int

func (*Card) XXX_Unmarshal

func (m *Card) XXX_Unmarshal(b []byte) error

type CardType

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

func (CardType) EnumDescriptor

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

func (CardType) String

func (x CardType) String() string

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"`
	XXX_NoUnkeyedLiteral struct{}                                           `json:"-"`
	XXX_unrecognized     []byte                                             `json:"-"`
	XXX_sizecache        int32                                              `json:"-"`
}

func (*Card_Mblog) Descriptor

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

func (*Card_Mblog) GetCreatedAt

func (m *Card_Mblog) GetCreatedAt() string

func (*Card_Mblog) GetId

func (m *Card_Mblog) GetId() string

func (*Card_Mblog) GetIsTop

func (m *Card_Mblog) GetIsTop() int32

func (*Card_Mblog) GetMid

func (m *Card_Mblog) GetMid() string

func (*Card_Mblog) GetPicIds

func (m *Card_Mblog) GetPicIds() []string

func (*Card_Mblog) GetPics

func (m *Card_Mblog) GetPics() []*Card_Mblog_Pics

func (*Card_Mblog) GetRawText

func (m *Card_Mblog) GetRawText() string

func (*Card_Mblog) GetRetweetedStatus

func (m *Card_Mblog) GetRetweetedStatus() *Card_Mblog

func (*Card_Mblog) GetText

func (m *Card_Mblog) GetText() string

func (*Card_Mblog) GetTextLength

func (m *Card_Mblog) GetTextLength() int32

func (*Card_Mblog) GetVisible

func (m *Card_Mblog) GetVisible() *Card_Mblog_Visible

func (*Card_Mblog) ProtoMessage

func (*Card_Mblog) ProtoMessage()

func (*Card_Mblog) Reset

func (m *Card_Mblog) Reset()

func (*Card_Mblog) String

func (m *Card_Mblog) String() string

func (*Card_Mblog) XXX_DiscardUnknown

func (m *Card_Mblog) XXX_DiscardUnknown()

func (*Card_Mblog) XXX_Marshal

func (m *Card_Mblog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Card_Mblog) XXX_Merge

func (m *Card_Mblog) XXX_Merge(src proto.Message)

func (*Card_Mblog) XXX_Size

func (m *Card_Mblog) XXX_Size() int

func (*Card_Mblog) XXX_Unmarshal

func (m *Card_Mblog) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*Card_Mblog_Pics) Descriptor

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

func (*Card_Mblog_Pics) GetLarge

func (m *Card_Mblog_Pics) GetLarge() *Card_Mblog_Pics_Large

func (*Card_Mblog_Pics) GetPid

func (m *Card_Mblog_Pics) GetPid() string

func (*Card_Mblog_Pics) GetSize

func (m *Card_Mblog_Pics) GetSize() string

func (*Card_Mblog_Pics) GetUrl

func (m *Card_Mblog_Pics) GetUrl() string

func (*Card_Mblog_Pics) ProtoMessage

func (*Card_Mblog_Pics) ProtoMessage()

func (*Card_Mblog_Pics) Reset

func (m *Card_Mblog_Pics) Reset()

func (*Card_Mblog_Pics) String

func (m *Card_Mblog_Pics) String() string

func (*Card_Mblog_Pics) XXX_DiscardUnknown

func (m *Card_Mblog_Pics) XXX_DiscardUnknown()

func (*Card_Mblog_Pics) XXX_Marshal

func (m *Card_Mblog_Pics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Card_Mblog_Pics) XXX_Merge

func (m *Card_Mblog_Pics) XXX_Merge(src proto.Message)

func (*Card_Mblog_Pics) XXX_Size

func (m *Card_Mblog_Pics) XXX_Size() int

func (*Card_Mblog_Pics) XXX_Unmarshal

func (m *Card_Mblog_Pics) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Card_Mblog_Pics_Large) Descriptor

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

func (*Card_Mblog_Pics_Large) GetSize

func (m *Card_Mblog_Pics_Large) GetSize() string

func (*Card_Mblog_Pics_Large) GetUrl

func (m *Card_Mblog_Pics_Large) GetUrl() string

func (*Card_Mblog_Pics_Large) ProtoMessage

func (*Card_Mblog_Pics_Large) ProtoMessage()

func (*Card_Mblog_Pics_Large) Reset

func (m *Card_Mblog_Pics_Large) Reset()

func (*Card_Mblog_Pics_Large) String

func (m *Card_Mblog_Pics_Large) String() string

func (*Card_Mblog_Pics_Large) XXX_DiscardUnknown

func (m *Card_Mblog_Pics_Large) XXX_DiscardUnknown()

func (*Card_Mblog_Pics_Large) XXX_Marshal

func (m *Card_Mblog_Pics_Large) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Card_Mblog_Pics_Large) XXX_Merge

func (m *Card_Mblog_Pics_Large) XXX_Merge(src proto.Message)

func (*Card_Mblog_Pics_Large) XXX_Size

func (m *Card_Mblog_Pics_Large) XXX_Size() int

func (*Card_Mblog_Pics_Large) XXX_Unmarshal

func (m *Card_Mblog_Pics_Large) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Card_Mblog_Visible) Descriptor

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

func (*Card_Mblog_Visible) GetListId

func (m *Card_Mblog_Visible) GetListId() int64

func (*Card_Mblog_Visible) GetType

func (m *Card_Mblog_Visible) GetType() int64

func (*Card_Mblog_Visible) ProtoMessage

func (*Card_Mblog_Visible) ProtoMessage()

func (*Card_Mblog_Visible) Reset

func (m *Card_Mblog_Visible) Reset()

func (*Card_Mblog_Visible) String

func (m *Card_Mblog_Visible) String() string

func (*Card_Mblog_Visible) XXX_DiscardUnknown

func (m *Card_Mblog_Visible) XXX_DiscardUnknown()

func (*Card_Mblog_Visible) XXX_Marshal

func (m *Card_Mblog_Visible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Card_Mblog_Visible) XXX_Merge

func (m *Card_Mblog_Visible) XXX_Merge(src proto.Message)

func (*Card_Mblog_Visible) XXX_Size

func (m *Card_Mblog_Visible) XXX_Size() int

func (*Card_Mblog_Visible) XXX_Unmarshal

func (m *Card_Mblog_Visible) XXX_Unmarshal(b []byte) error

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 *Card
}

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"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

func (*GenVisitorResponse) Descriptor

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

func (*GenVisitorResponse) GetData

func (*GenVisitorResponse) GetMsg

func (m *GenVisitorResponse) GetMsg() string

func (*GenVisitorResponse) GetRetcode

func (m *GenVisitorResponse) GetRetcode() int64

func (*GenVisitorResponse) ProtoMessage

func (*GenVisitorResponse) ProtoMessage()

func (*GenVisitorResponse) Reset

func (m *GenVisitorResponse) Reset()

func (*GenVisitorResponse) String

func (m *GenVisitorResponse) String() string

func (*GenVisitorResponse) XXX_DiscardUnknown

func (m *GenVisitorResponse) XXX_DiscardUnknown()

func (*GenVisitorResponse) XXX_Marshal

func (m *GenVisitorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenVisitorResponse) XXX_Merge

func (m *GenVisitorResponse) XXX_Merge(src proto.Message)

func (*GenVisitorResponse) XXX_Size

func (m *GenVisitorResponse) XXX_Size() int

func (*GenVisitorResponse) XXX_Unmarshal

func (m *GenVisitorResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GenVisitorResponse_Data) Descriptor

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

func (*GenVisitorResponse_Data) GetConfidence

func (m *GenVisitorResponse_Data) GetConfidence() int32

func (*GenVisitorResponse_Data) GetNewTid

func (m *GenVisitorResponse_Data) GetNewTid() bool

func (*GenVisitorResponse_Data) GetTid

func (m *GenVisitorResponse_Data) GetTid() string

func (*GenVisitorResponse_Data) ProtoMessage

func (*GenVisitorResponse_Data) ProtoMessage()

func (*GenVisitorResponse_Data) Reset

func (m *GenVisitorResponse_Data) Reset()

func (*GenVisitorResponse_Data) String

func (m *GenVisitorResponse_Data) String() string

func (*GenVisitorResponse_Data) XXX_DiscardUnknown

func (m *GenVisitorResponse_Data) XXX_DiscardUnknown()

func (*GenVisitorResponse_Data) XXX_Marshal

func (m *GenVisitorResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenVisitorResponse_Data) XXX_Merge

func (m *GenVisitorResponse_Data) XXX_Merge(src proto.Message)

func (*GenVisitorResponse_Data) XXX_Size

func (m *GenVisitorResponse_Data) XXX_Size() int

func (*GenVisitorResponse_Data) XXX_Unmarshal

func (m *GenVisitorResponse_Data) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

func (*VisitorIncarnateResponse) Descriptor

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

func (*VisitorIncarnateResponse) GetData

func (*VisitorIncarnateResponse) GetMsg

func (m *VisitorIncarnateResponse) GetMsg() string

func (*VisitorIncarnateResponse) GetRetcode

func (m *VisitorIncarnateResponse) GetRetcode() int64

func (*VisitorIncarnateResponse) ProtoMessage

func (*VisitorIncarnateResponse) ProtoMessage()

func (*VisitorIncarnateResponse) Reset

func (m *VisitorIncarnateResponse) Reset()

func (*VisitorIncarnateResponse) String

func (m *VisitorIncarnateResponse) String() string

func (*VisitorIncarnateResponse) XXX_DiscardUnknown

func (m *VisitorIncarnateResponse) XXX_DiscardUnknown()

func (*VisitorIncarnateResponse) XXX_Marshal

func (m *VisitorIncarnateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VisitorIncarnateResponse) XXX_Merge

func (m *VisitorIncarnateResponse) XXX_Merge(src proto.Message)

func (*VisitorIncarnateResponse) XXX_Size

func (m *VisitorIncarnateResponse) XXX_Size() int

func (*VisitorIncarnateResponse) XXX_Unmarshal

func (m *VisitorIncarnateResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VisitorIncarnateResponse_Data) Descriptor

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

func (*VisitorIncarnateResponse_Data) GetSub

func (*VisitorIncarnateResponse_Data) GetSubp

func (*VisitorIncarnateResponse_Data) ProtoMessage

func (*VisitorIncarnateResponse_Data) ProtoMessage()

func (*VisitorIncarnateResponse_Data) Reset

func (m *VisitorIncarnateResponse_Data) Reset()

func (*VisitorIncarnateResponse_Data) String

func (*VisitorIncarnateResponse_Data) XXX_DiscardUnknown

func (m *VisitorIncarnateResponse_Data) XXX_DiscardUnknown()

func (*VisitorIncarnateResponse_Data) XXX_Marshal

func (m *VisitorIncarnateResponse_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VisitorIncarnateResponse_Data) XXX_Merge

func (m *VisitorIncarnateResponse_Data) XXX_Merge(src proto.Message)

func (*VisitorIncarnateResponse_Data) XXX_Size

func (m *VisitorIncarnateResponse_Data) XXX_Size() int

func (*VisitorIncarnateResponse_Data) XXX_Unmarshal

func (m *VisitorIncarnateResponse_Data) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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