search

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL