Documentation ¶
Index ¶
- Constants
- func HuyaPath(path string) string
- func NewExtraKey() *extraKey
- func NewKeySet() *keySet
- type Concern
- func (c *Concern) Add(groupCode int64, id interface{}, ctype concern.Type) (*LiveInfo, error)
- func (k Concern) CurrentLiveKey(keys ...interface{}) string
- func (c *Concern) FindOrLoadRoom(roomId string) (*LiveInfo, error)
- func (c *Concern) FindRoom(roomId string, load bool) (*LiveInfo, error)
- func (c *Concern) ListWatching(groupCode int64, ctype concern.Type) ([]*LiveInfo, []concern.Type, error)
- func (c *Concern) Start()
- type ConcernEvent
- type ConcernLiveNotify
- type EventType
- type GroupConcernConfig
- type LiveInfo
- type StateManager
Constants ¶
View Source
const ( Site = "huya" Host = "https://www.huya.com" )
Variables ¶
This section is empty.
Functions ¶
func NewExtraKey ¶
func NewExtraKey() *extraKey
Types ¶
type Concern ¶
type Concern struct { *StateManager // contains filtered or unexported fields }
func NewConcern ¶
func (Concern) CurrentLiveKey ¶
func (k Concern) CurrentLiveKey(keys ...interface{}) string
func (*Concern) FindOrLoadRoom ¶ added in v0.0.9
func (*Concern) ListWatching ¶ added in v0.0.8
type ConcernEvent ¶
type ConcernEvent interface {
Type() EventType
}
type ConcernLiveNotify ¶
func NewConcernLiveNotify ¶
func NewConcernLiveNotify(groupCode int64, l *LiveInfo) *ConcernLiveNotify
func (*ConcernLiveNotify) GetGroupCode ¶ added in v0.0.10
func (notify *ConcernLiveNotify) GetGroupCode() int64
func (*ConcernLiveNotify) GetUid ¶ added in v0.0.10
func (notify *ConcernLiveNotify) GetUid() interface{}
func (*ConcernLiveNotify) ToMessage ¶ added in v0.0.10
func (notify *ConcernLiveNotify) ToMessage() []message.IMessageElement
func (*ConcernLiveNotify) Type ¶
func (notify *ConcernLiveNotify) Type() concern.Type
type GroupConcernConfig ¶ added in v0.0.13
type GroupConcernConfig struct {
concern_manager.GroupConcernConfig
}
func NewGroupConcernConfig ¶ added in v0.0.13
func NewGroupConcernConfig(g *concern_manager.GroupConcernConfig) *GroupConcernConfig
func (*GroupConcernConfig) AtBeforeHook ¶ added in v0.0.13
func (g *GroupConcernConfig) AtBeforeHook(notify concern.Notify) (hook *concern_manager.HookResult)
func (*GroupConcernConfig) ShouldSendHook ¶ added in v0.0.13
func (g *GroupConcernConfig) ShouldSendHook(notify concern.Notify) (hook *concern_manager.HookResult)
type LiveInfo ¶
type StateManager ¶
type StateManager struct { *concern_manager.StateManager // contains filtered or unexported fields }
func NewStateManager ¶
func NewStateManager() *StateManager
func (*StateManager) AddLiveInfo ¶
func (c *StateManager) AddLiveInfo(liveInfo *LiveInfo) error
func (StateManager) CurrentLiveKey ¶
func (k StateManager) CurrentLiveKey(keys ...interface{}) string
func (*StateManager) GetLiveInfo ¶
func (c *StateManager) GetLiveInfo(id string) (*LiveInfo, error)
func (*StateManager) Start ¶
func (c *StateManager) Start() error
Click to show internal directories.
Click to hide internal directories.