Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEncoder ¶
func NewEncoder(logger log.Logger, geoIPProvider geoipprovider.LookupProvider) codec.Encoder
NewEncoder Creates an encoder that writes in the Asciicast v2 format (see https://github.com/asciinema/asciinema/blob/develop/doc/asciicast-v2.md)
Types ¶
type EventType ¶
type EventType string
EventType is the type of event (input or output) in an Asciicast v2 line
type Frame ¶
Frame is a single line in an Asciicast v2 file
func (*Frame) MarshalJSON ¶
MarshalJSON converts a frame into its JSON representation
func (*Frame) UnmarshalJSON ¶
UnmarshalJSON converts a JSON byte array back into a frame
Click to show internal directories.
Click to hide internal directories.