Documentation ¶
Overview ¶
package services defines the app dependency and route mapping
Index ¶
- type KvotheService
- func (ks *KvotheService) AddNewPersonMockData(p string) (string, error)
- func (ks *KvotheService) AddNewQuoteMockData(q string) (string, error)
- func (ks *KvotheService) BackfillRedis() error
- func (ks *KvotheService) GetAllSongData() ([]models.SongQuote, int, error)
- func (ks *KvotheService) GetPersonByIDMockData(rawID string) (string, error)
- func (ks *KvotheService) GetQuoteByIDMockData(rawID string) (string, error)
- func (ks *KvotheService) GetSongQuoteByID(id int64) (*models.SongQuote, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KvotheService ¶
type KvotheService struct { Repo interfaces.InterfaceKvotheRepository HTTP interfaces.IHTTP Conf *resources.AppConfig Context interfaces.IContext }
func (*KvotheService) AddNewPersonMockData ¶
func (ks *KvotheService) AddNewPersonMockData(p string) (string, error)
func (*KvotheService) AddNewQuoteMockData ¶
func (ks *KvotheService) AddNewQuoteMockData(q string) (string, error)
func (*KvotheService) BackfillRedis ¶
func (ks *KvotheService) BackfillRedis() error
func (*KvotheService) GetAllSongData ¶
func (ks *KvotheService) GetAllSongData() ([]models.SongQuote, int, error)
func (*KvotheService) GetPersonByIDMockData ¶
func (ks *KvotheService) GetPersonByIDMockData(rawID string) (string, error)
func (*KvotheService) GetQuoteByIDMockData ¶
func (ks *KvotheService) GetQuoteByIDMockData(rawID string) (string, error)
func (*KvotheService) GetSongQuoteByID ¶
Click to show internal directories.
Click to hide internal directories.