Documentation ¶
Index ¶
- type LyricsBody
- type Service
- func (s *Service) Create(ctx context.Context, title string, content string) error
- func (s *Service) GetItemID(ctx context.Context, title string) (id string, err error)
- func (s *Service) Search(ctx context.Context, text string) (lyrics []LyricsBody, err error)
- func (s *Service) Update(ctx context.Context, id string, title string, content string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LyricsBody ¶
LyricsBody lyrics inserted body
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service a service to create lyrics documents and search across all lyrics
func New ¶
func New(ctx context.Context, config *config.Config, client *elastic.Client, logger *zap.Logger) (*Service, error)
New to create instance of search service
Click to show internal directories.
Click to hide internal directories.