concern

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notify

type Notify interface {
	Type() Type
	GetGroupCode() int64
	GetUid() interface{}
	ToMessage() []message.IMessageElement
}

type Type

type Type int64
const (
	BibiliLive Type = 1 << iota
	BilibiliNews
	DouyuLive
	YoutubeLive
	YoutubeVideo
	HuyaLive
)
const Empty Type = 0

func FromString

func FromString(s string) Type

func (Type) Add

func (t Type) Add(o Type) Type

func (Type) ContainAll

func (t Type) ContainAll(o Type) bool

func (Type) ContainAny

func (t Type) ContainAny(o Type) bool

func (Type) Description added in v0.0.8

func (t Type) Description() string

func (Type) Empty

func (t Type) Empty() bool

func (Type) Remove

func (t Type) Remove(o Type) Type

func (Type) Split

func (t Type) Split() []Type

Split return a Type unit slice from a given Type

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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