live

package
v0.95.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 1 Imported by: 13

Documentation

Overview

Package live provides access to the GrafanaLive server [ALPHA]

Index

Constants

View Source
const (
	// ScopeGrafana contains builtin features of Grafana Core.
	ScopeGrafana = "grafana"
	// ScopePlugin passes control to a plugin.
	ScopePlugin = "plugin"
	// ScopeDatasource passes control to a datasource plugin.
	ScopeDatasource = "ds"
	// ScopeStream is a managed data frame stream.
	ScopeStream = "stream"
	// ScopePush allows sending data into managed streams. It does not support subscriptions.
	ScopePush = "push"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel added in v0.92.0

type Channel struct {
	// Scope is one of available channel scopes:
	// like ScopeGrafana, ScopePlugin, ScopeDatasource, ScopeStream.
	Scope string `json:"scope,omitempty"`

	// Namespace meaning depends on the scope.
	// * when ScopeGrafana, namespace is a "feature"
	// * when ScopePlugin, namespace is the plugin name
	// * when ScopeDatasource, namespace is the datasource uid
	// * when ScopeStream, namespace is the stream ID.
	Namespace string `json:"namespace,omitempty"`

	// Within each namespace, the handler can process the path as needed.
	Path string `json:"path,omitempty"`
}

Channel is the channel ID split by parts.

func ParseChannel added in v0.92.0

func ParseChannel(chID string) Channel

ParseChannel parses the parts from a channel ID:

${scope} / ${namespace} / ${path}.

func (*Channel) IsValid added in v0.92.0

func (c *Channel) IsValid() bool

IsValid checks if all parts of the address are valid.

func (Channel) String added in v0.92.0

func (c Channel) String() string

Jump to

Keyboard shortcuts

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