streamsformatter

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: EPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HEADER_STREAM_NAME        = "name"
	HEADER_STREAM_STATE       = "state"
	HEADER_STREAM_DESCRIPTION = "description"
)
View Source
const (
	SUMMARY_FORMATTER_NAME = "summary"
	ENABLED_STATE          = "enabled"
	DISABLED_STATE         = "disabled"
)

----------------------------------------------------- Summary format.

View Source
const (
	YAML_FORMATTER_NAME = "yaml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StreamsFormatter

type StreamsFormatter interface {
	FormatStreams(streamResults []galasaapi.Stream) (string, error)
	GetName() string
}

func NewStreamsSummaryFormatter

func NewStreamsSummaryFormatter() StreamsFormatter

func NewStreamsYamlFormatter

func NewStreamsYamlFormatter() StreamsFormatter

type StreamsSummaryFormatter

type StreamsSummaryFormatter struct {
}

func (*StreamsSummaryFormatter) FormatStreams

func (*StreamsSummaryFormatter) FormatStreams(streams []galasaapi.Stream) (string, error)

func (*StreamsSummaryFormatter) GetName

func (*StreamsSummaryFormatter) GetName() string

type StreamsYamlFormatter

type StreamsYamlFormatter struct {
}

func (*StreamsYamlFormatter) FormatStreams

func (*StreamsYamlFormatter) FormatStreams(streams []galasaapi.Stream) (string, error)

func (*StreamsYamlFormatter) GetName

func (*StreamsYamlFormatter) GetName() string

Jump to

Keyboard shortcuts

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