Documentation
¶
Overview ¶
Package livesession owns the shared lifecycle of plugin foreground sessions.
Index ¶
- type Host
- type Session
- func (s *Session) Finish(ctx context.Context, token string, notify bool, reason string) error
- func (s *Session) PublishTransient(ctx context.Context, scene protocol.Scene, reason string) error
- func (s *Session) SetCurrent(ctx context.Context, scene protocol.Scene, reason string, observedAt time.Time) error
- func (s *Session) Start(ctx context.Context, token string, fallback protocol.Scene, reason string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host interface {
PublishObservation(context.Context, protocol.Observation) error
CompleteSession(context.Context, protocol.CompleteSessionRequest) error
}
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) PublishTransient ¶
func (*Session) SetCurrent ¶
Click to show internal directories.
Click to hide internal directories.