utils

package
v0.0.0-...-1d06aa6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildContainerWithComponents

func BuildContainerWithComponents(colour Colour, title string, innerComponents []component.Component) component.Component

func FormatGuildDisplay

func FormatGuildDisplay(guildId uint64, guildNames map[uint64]string) string

func GetRequestTypeName

func GetRequestTypeName(requestType int) string

GetRequestTypeName converts a request type integer to a human-readable string for logging Request types: 0=AllTranscripts, 1=SpecificTranscripts, 2=AllMessages, 3=SpecificMessages

func ScrambleUserId

func ScrambleUserId(userId uint64) string

ScrambleUserId creates a SHA256 hash of the user ID for privacy-safe logging This ensures logs don't expose actual user IDs while maintaining GDPR compliance

Types

type Colour

type Colour int
const (
	Green Colour = iota
	Orange
	Red
)

func (Colour) ToRGB

func (c Colour) ToRGB() int

Jump to

Keyboard shortcuts

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