helpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFunctionInPQueue

func AddFunctionInPQueue(pq *pqueue.PriorityQueue, function any, functionArgs []any, priority int) (*pqueue.QueueItem, error)

func GetChat

func GetChat(queue *pqueue.PriorityQueue, function any, args []any, priority int) (*tg_client.Chat, error)

func GetChats

func GetChats(queue *pqueue.PriorityQueue, function any, args []any, priority int) ([]tg_client.Chat, error)

func GetFunctionName

func GetFunctionName(function interface{}) string

func GetFunctionSignature

func GetFunctionSignature(function interface{}, args []interface{}) string

func GetRequestError

func GetRequestError(queue *pqueue.PriorityQueue, function any, args []any, priority int) error

func GetString

func GetString(queue *pqueue.PriorityQueue, function any, args []any, priority int) (string, error)

func GetUser

func GetUser(queue *pqueue.PriorityQueue, function any, args []any, priority int) (*data.User, error)

func GetUsers

func GetUsers(queue *pqueue.PriorityQueue, function any, args []any, priority int) ([]data.User, error)

func RemoveDuplicateColumn

func RemoveDuplicateColumn(arr []string) []string

func RetrieveChat

func RetrieveChat(chats []tg_client.Chat, msg data.ModulePayload) *tg_client.Chat

func ValidateNonEmptyString

func ValidateNonEmptyString(str string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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