utils

package
v1.6.18 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMessageSizeGteLimit = &SUtilsError{"message size >= limit"}
	ErrGetSettingsHLS      = &SUtilsError{"get settings hls"}
)

Functions

func GetMessageLimit added in v1.6.3

func GetMessageLimit(pCtx context.Context, pHlsClient client.IClient) (uint64, error)

func ReplaceTextToEmoji

func ReplaceTextToEmoji(pS string) string

Types

type SMessage added in v1.6.3

type SMessage struct {
	FFileName  string `json:"filename"` // can be ""
	FTimestamp string `json:"timestamp"`
	FMainData  string `json:"maindata"`
}

type SSubscribe added in v1.6.3

type SSubscribe struct {
	FAddress string `json:"address"`
}

type SUtilsError added in v1.6.8

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

func (*SUtilsError) Error added in v1.6.8

func (err *SUtilsError) Error() string

Jump to

Keyboard shortcuts

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