Documentation
¶
Index ¶
- Variables
- type DiscoverOpts
- type PathSpec
- type Provider
- type SessionRef
- type StubProvider
- func (s *StubProvider) DefaultPaths() []PathSpec
- func (s *StubProvider) Discover(context.Context, DiscoverOpts) ([]model.Summary, error)
- func (s *StubProvider) DisplayName() string
- func (s *StubProvider) DocURL() string
- func (s *StubProvider) ID() string
- func (s *StubProvider) Installed() bool
- func (s *StubProvider) Load(context.Context, SessionRef) (*model.Conversation, error)
- func (s *StubProvider) ResumeCommand(WriteResult) string
- func (s *StubProvider) SupportsResume() bool
- func (s *StubProvider) Write(context.Context, *model.Conversation, WriteOpts) (*WriteResult, error)
- type WriteOpts
- type WriteResult
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DiscoverOpts ¶
type Provider ¶
type Provider interface {
ID() string
DisplayName() string
DefaultPaths() []PathSpec
Installed() bool
Discover(ctx context.Context, opts DiscoverOpts) ([]model.Summary, error)
Load(ctx context.Context, ref SessionRef) (*model.Conversation, error)
Write(ctx context.Context, conv *model.Conversation, opts WriteOpts) (*WriteResult, error)
SupportsResume() bool
ResumeCommand(result WriteResult) string
}
type SessionRef ¶
type StubProvider ¶
type StubProvider struct {
// contains filtered or unexported fields
}
func NewStub ¶
func NewStub(id, displayName, docURL string, paths ...PathSpec) *StubProvider
func (*StubProvider) DefaultPaths ¶
func (s *StubProvider) DefaultPaths() []PathSpec
func (*StubProvider) Discover ¶
func (s *StubProvider) Discover(context.Context, DiscoverOpts) ([]model.Summary, error)
func (*StubProvider) DisplayName ¶
func (s *StubProvider) DisplayName() string
func (*StubProvider) DocURL ¶
func (s *StubProvider) DocURL() string
func (*StubProvider) ID ¶
func (s *StubProvider) ID() string
func (*StubProvider) Installed ¶
func (s *StubProvider) Installed() bool
func (*StubProvider) Load ¶
func (s *StubProvider) Load(context.Context, SessionRef) (*model.Conversation, error)
func (*StubProvider) ResumeCommand ¶
func (s *StubProvider) ResumeCommand(WriteResult) string
func (*StubProvider) SupportsResume ¶
func (s *StubProvider) SupportsResume() bool
func (*StubProvider) Write ¶
func (s *StubProvider) Write(context.Context, *model.Conversation, WriteOpts) (*WriteResult, error)
Click to show internal directories.
Click to hide internal directories.