types

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool stores v in a new bool value and returns a pointer to it.

func Float32

func Float32(v float32) *float32

Float32 stores v in a new float32 value and returns a pointer to it.

func Float64

func Float64(v float64) *float64

Float64 stores v in a new float64 value and returns a pointer to it.

func GetContext

func GetContext[T any](ctx *skipmap.StringMap[RoxyContext], key string) T

GetContext dynamically get context value

func Int32

func Int32(v int32) *int32

Int32 stores v in a new int32 value and returns a pointer to it.

func Int64

func Int64(v int64) *int64

Int64 stores v in a new int64 value and returns a pointer to it.

func String

func String(v string) *string

String stores v in a new string value and returns a pointer to it.

func Uint32

func Uint32(v uint32) *uint32

Uint32 stores v in a new uint32 value and returns a pointer to it.

func Uint64

func Uint64(v uint64) *uint64

Uint64 stores v in a new uint64 value and returns a pointer to it.

Types

type CacheAllGroup

type CacheAllGroup func()

type Embed

type Embed[T any] interface {
	Get() []T
	Add(val T)
}

type EmbedTemplate

type EmbedTemplate[T any] struct {
	Slices []T
}

func NewEmbed

func NewEmbed[T any]() EmbedTemplate[T]

func (*EmbedTemplate[T]) Add

func (em *EmbedTemplate[T]) Add(val T)

func (*EmbedTemplate[T]) Get

func (em *EmbedTemplate[T]) Get() []T

type FindGroupByJid

type FindGroupByJid func(groupJid waTypes.JID) (group *waTypes.GroupInfo, err error)

muxer Context type

type FindMessageByID

type FindMessageByID func(jid waTypes.JID, id string) *events.Message

type GetAllChats

type GetAllChats func() []*events.Message

type GetAllGroups

type GetAllGroups func() (group []*waTypes.GroupInfo, err error)

type GetChatInJID

type GetChatInJID func(jid waTypes.JID) []*events.Message

type GetStatusMessages

type GetStatusMessages func() []*events.Message

type IsClientGroupAdmin

type IsClientGroupAdmin func(chat waTypes.JID) (bool, error)

type IsGroupAdmin

type IsGroupAdmin func(chat waTypes.JID, jid any) (bool, error)

type RoxyContext

type RoxyContext interface{}

type UNCacheOneGroup

type UNCacheOneGroup func(info *events.GroupInfo, joined *events.JoinedGroup)

type UpsertMessages

type UpsertMessages func(jid waTypes.JID, message []*events.Message)

App Context type

Jump to

Keyboard shortcuts

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