service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FIFOMapCount

func FIFOMapCount() int

func FIFOMapGet

func FIFOMapGet(key string) (interface{}, bool)

func FIFOMapRemoveOldest

func FIFOMapRemoveOldest()

func FIFOMapSet

func FIFOMapSet(key string, value interface{})

func GetListKeyworldHistoryWithKeyworld

func GetListKeyworldHistoryWithKeyworld(keyworld string, page int) (string, error)

func GetListKeyworldHistoryWithSenderID

func GetListKeyworldHistoryWithSenderID(senderID int64, page int) (string, error)

func GetURLCardbot

func GetURLCardbot() string

func GetURLSubmitNewGroup

func GetURLSubmitNewGroup() string

func PushMsgData

func PushMsgData(data []byte) error

推送FeedMsg信息

func SendMessage

func SendMessage(botToken string, reciverId int64, m interface{}, parseMode tele.ParseMode, noButton bool, button interface{}) error

func SetBotFatherWebhook

func SetBotFatherWebhook()

Types

type FIFOMap

type FIFOMap struct {
	// contains filtered or unexported fields
}

先进先出(FIFO)的 map 实现

func NewFIFOMap

func NewFIFOMap() *FIFOMap

func (*FIFOMap) Count

func (m *FIFOMap) Count() int

func (*FIFOMap) Get

func (m *FIFOMap) Get(key string) (interface{}, bool)

func (*FIFOMap) RemoveOldest

func (m *FIFOMap) RemoveOldest()

func (*FIFOMap) Set

func (m *FIFOMap) Set(key string, value interface{})

Jump to

Keyboard shortcuts

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