orgchannel

package
v0.0.0-kmdagger1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrependOrgID

func PrependOrgID(orgID int64, channel string) string

PrependOrgID prepends orgID to a channel.

func StripOrgID

func StripOrgID(channel string) (int64, string, error)

StripOrgID strips organization ID from channel ID. The reason why we strip orgID is because we need to maintain multi-tenancy. Each organization can have the same channels which should not overlap. Due to this every channel in Centrifuge has orgID prefix. Internally in Grafana we strip this prefix since orgID is part of user identity and channel handlers supposed to have the same business logic for all organizations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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