internal

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VersionMajor = 0
	VersionMinor = 9
	VersionPatch = 5
	VersionTag   = "" // example: "rc1"
)

Variables

This section is empty.

Functions

func CloseAndLogIfError

func CloseAndLogIfError(ctx context.Context, closer io.Closer, message string)

CloseAndLogIfError Closes io.Closer and logs the error if any

func SetupHookLogging

func SetupHookLogging(hooks []config.LogrusHook, componentName string)

SetupHookLogging configures the logging hooks defined in the configuration. If something fails here it means that the logging was improperly configured, so we just exit with the error

func SetupPprof

func SetupPprof()

SetupPprof starts a pprof listener. We use the DefaultServeMux here because it is simplest, and it gives us the freedom to run pprof on a separate port.

func SetupStdLogging

func SetupStdLogging()

SetupStdLogging configures the logging format to standard output. Typically, it is called when the config is not yet loaded.

func VersionString

func VersionString() string

Types

type MutexByRoom added in v0.4.0

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

func NewMutexByRoom added in v0.4.0

func NewMutexByRoom() *MutexByRoom

func (*MutexByRoom) Lock added in v0.4.0

func (m *MutexByRoom) Lock(roomID string)

func (*MutexByRoom) Unlock added in v0.4.0

func (m *MutexByRoom) Unlock(roomID string)

Directories

Path Synopsis
Package hooks exposes places in Dendrite where custom code can be executed, useful for MSCs.
Package hooks exposes places in Dendrite where custom code can be executed, useful for MSCs.

Jump to

Keyboard shortcuts

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