Documentation ¶
Index ¶
- func RegisterEvent[T any](name string)
- type Event
- type EventEmitter
- type EventMeta
- type Handler
- type HandlerFunc
- type ID
- type Session
- type Span
- type Timestamp
- type Track
- func (t *Track) AddAudio(streamer beep.Streamer)
- func (t *Track) Audio() beep.Streamer
- func (t *Track) AudioFormat() beep.Format
- func (t *Track) End() Timestamp
- func (t *Track) EventTypes() []string
- func (t *Track) Events(typ string) []Event
- func (t *Track) Length() time.Duration
- func (t *Track) RecordEvent(typ string, data any) Event
- func (t *Track) Span(from Timestamp, to Timestamp) Span
- func (t *Track) Start() Timestamp
- func (t *Track) Track() *Track
- func (t *Track) UpdateEvent(evt Event) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEvent ¶
Types ¶
type Event ¶
func (*Event) UnmarshalCBOR ¶
type EventEmitter ¶
type EventEmitter struct {
// contains filtered or unexported fields
}
func (*EventEmitter) Emit ¶
func (ee *EventEmitter) Emit(e Event)
func (*EventEmitter) Listen ¶
func (ee *EventEmitter) Listen(n Handler)
func (*EventEmitter) Unlisten ¶
func (ee *EventEmitter) Unlisten(n Handler)
type HandlerFunc ¶
type HandlerFunc func(e Event)
func (HandlerFunc) HandleEvent ¶
func (f HandlerFunc) HandleEvent(e Event)
type Session ¶
type Session struct { EventEmitter ID ID Start time.Time // contains filtered or unexported fields }
func NewSession ¶
func NewSession() *Session
func (*Session) MarshalCBOR ¶
func (*Session) NewTrackAt ¶
func (*Session) UnmarshalCBOR ¶
Click to show internal directories.
Click to hide internal directories.