Documentation ¶ Index ¶ type Lib type Service func Init(lib Lib, streaming streaming.StreamingClient, logger *slog.Logger) Service func (s *Service) LibrarySearch(ctx context.Context, opt client.SearchOpt) (client.SlimSearchRes, error) func (s *Service) Search(ctx context.Context, opt client.SearchOpt) (client.SearchRes, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Lib ¶ type Lib interface { Search(ctx context.Context, query string, limit int) (model.SearchRes, error) } type Service ¶ type Service struct { // contains filtered or unexported fields } func Init ¶ func Init(lib Lib, streaming streaming.StreamingClient, logger *slog.Logger) Service func (*Service) LibrarySearch ¶ func (s *Service) LibrarySearch(ctx context.Context, opt client.SearchOpt) (client.SlimSearchRes, error) func (*Service) Search ¶ func (s *Service) Search(ctx context.Context, opt client.SearchOpt) (client.SearchRes, error) Source Files ¶ View all Source files search.go Click to show internal directories. Click to hide internal directories.