sctx

package
v0.0.0-...-78a2729 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminRoom

func AdminRoom(ctx context.Context) bool

AdminRoom checks if the requests comes from the admin room

func Event

func Event(ctx context.Context) *event.Event

Event returns event from context

func WithAdminRoom

func WithAdminRoom(ctx context.Context, value bool) context.Context

WithAdminRoom sets admin room check to the ctx

func WithEvent

func WithEvent(ctx context.Context, value *event.Event) context.Context

WithEvent sets event to the ctx

Types

type Type

type Type string

Jump to

Keyboard shortcuts

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