Documentation
¶
Index ¶
- Constants
- Variables
- type Formatter
- func (f *Formatter) PrintEventDescriptionJSON(description *pb.GetEventDefinitionsResponse)
- func (f *Formatter) PrintEventDescriptionTable(response *pb.GetEventDefinitionsResponse) *table.Table
- func (f *Formatter) PrintEventListJSON(list *pb.GetEventDefinitionsResponse)
- func (f *Formatter) PrintEventListTable(response *pb.GetEventDefinitionsResponse) *table.Table
- func (f *Formatter) PrintSteamTableHeaders()
- func (f *Formatter) PrintStreamJSON(event *pb.Event)
- func (f *Formatter) PrintStreamTableRow(event *pb.Event)
Constants ¶
View Source
const ( FormatJSON = "json" FormatTable = "table" FormatGoTpl = "gotemplate" )
Variables ¶
View Source
var SupportedFormats = []string{FormatJSON, FormatTable, FormatGoTpl}
SupportedFormats is a slice of all supported format types
Functions ¶
This section is empty.
Types ¶
type Formatter ¶
func (*Formatter) PrintEventDescriptionJSON ¶
func (f *Formatter) PrintEventDescriptionJSON(description *pb.GetEventDefinitionsResponse)
func (*Formatter) PrintEventDescriptionTable ¶
func (f *Formatter) PrintEventDescriptionTable(response *pb.GetEventDefinitionsResponse) *table.Table
func (*Formatter) PrintEventListJSON ¶
func (f *Formatter) PrintEventListJSON(list *pb.GetEventDefinitionsResponse)
func (*Formatter) PrintEventListTable ¶
func (f *Formatter) PrintEventListTable(response *pb.GetEventDefinitionsResponse) *table.Table
func (*Formatter) PrintSteamTableHeaders ¶
func (f *Formatter) PrintSteamTableHeaders()
func (*Formatter) PrintStreamJSON ¶
PrintJSON prints an event in JSON format
func (*Formatter) PrintStreamTableRow ¶
Click to show internal directories.
Click to hide internal directories.