rid

package
v4.8.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package rid provides unique resource IDs

Index

Constants

View Source
const (
	// Bridge indicates the resource ID is of a bridge
	Bridge = "br"

	// Channel indicates the resource ID is of a channel
	Channel = "ch"

	// Playback indicates the resource ID is of a playback
	Playback = "pb"

	// Recording indicates the resource ID is for a recording
	Recording = "rc"

	// Snoop indicates the resource ID is for a snoop session
	Snoop = "sn"
)

Variables

This section is empty.

Functions

func New

func New(kind string) string

New returns a new generic resource ID

func Timestamp

func Timestamp(id string) (ts time.Time, err error)

Timestamp returns the timestamp stored within the resource ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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