File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,29 @@ type Header struct {
70
70
} `json:"env,omitempty"`
71
71
}
72
72
73
+ // Event represents terminal inputs that get recorded by asciinema.
73
74
type Event struct {
75
+ // Time indicates when this event happened, represented as the number
76
+ // of seconds since the beginning of the recording session.
74
77
Time float64
78
+
79
+ // Type represents the type of the data that's been recorded.
80
+ //
81
+ // Two types are possible:
82
+ // - "o": data written to stdout; and
83
+ // - "i": data read from stdin.
75
84
Type string
85
+
86
+ // Data represents the data recorded from the terminal.
76
87
Data string
77
88
}
78
89
90
+ // Cast represents the whole asciinema session.
79
91
type Cast struct {
80
- Header Header
92
+ // Header presents the recording metadata.
93
+ Header Header
94
+
95
+ // EventStream contains all the events that were generated during
96
+ // the recording.
81
97
EventStream []* Event
82
98
}
You can’t perform that action at this time.
0 commit comments