internal

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package internal provides shared helpers used across gomatrixserverlib packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithLogger

func ContextWithLogger(ctx context.Context, l *logrus.Entry) context.Context

ContextWithLogger creates a new context, which will use the given logger.

func GetLogger

func GetLogger(ctx context.Context) *logrus.Entry

GetLogger retrieves the logrus logger from the supplied context. Always returns a logger, even if there wasn't one originally supplied.

func RandomString

func RandomString(n int) string

RandomString generates a pseudo-random alphanumeric string of length n.

func UniqueStrings

func UniqueStrings(strings []string) []string

UniqueStrings turns a list of strings into a sorted list of unique strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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