Documentation ¶
Index ¶
- func NewAuthServer(logger *zap.Logger, cfg *config.Config) *authServer
- type Service
- func (s *Service) Fetch(ctx context.Context, songName string, artists string) (string, error)
- func (s *Service) HasLyrics(ctx context.Context, title string) (bool, error)
- func (s *Service) LoadSongs(ctx context.Context) (map[string]string, error)
- func (s *Service) Save(ctx context.Context, title string, lyrics string) error
- func (s *Service) Search(ctx context.Context, text string) ([]search.LyricsBody, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service Main package service
Click to show internal directories.
Click to hide internal directories.