Documentation
¶
Index ¶
- type GetOptions
- type ListOptions
- type SearchOptions
- type Service
- func (s *Service) Get(ctx context.Context, opts GetOptions) (api.Chat, error)
- func (s *Service) List(ctx context.Context, opts ListOptions) ([]api.Chat, error)
- func (s *Service) ListPage(ctx context.Context, opts ListOptions) (api.ListChatsResponse, error)
- func (s *Service) Search(ctx context.Context, opts SearchOptions) ([]api.Chat, error)
- func (s *Service) SearchPage(ctx context.Context, opts SearchOptions) (api.ListChatsResponse, error)
- type ServiceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetOptions ¶
type ListOptions ¶
type SearchOptions ¶
type Service ¶
type Service struct {
Backend string
Client *api.Client
ClientErr error
OpenStore func() (*db.Store, error)
ProgressWriter io.Writer
WarnStale bool
}
func NewService ¶
func NewService(opts ServiceOptions) *Service
func (*Service) ListPage ¶ added in v0.2.12
func (s *Service) ListPage(ctx context.Context, opts ListOptions) (api.ListChatsResponse, error)
func (*Service) SearchPage ¶ added in v0.2.12
func (s *Service) SearchPage(ctx context.Context, opts SearchOptions) (api.ListChatsResponse, error)
Click to show internal directories.
Click to hide internal directories.