Documentation ¶
Overview ¶
Package gen implements data generators.
Index ¶
- func GetClientInstance() (artist.ArtistServiceClient, error)
- func GetNoAvatarInstance() []byte
- func MapAlbum(alb *artist.Album, serial int, isRead bool) model.Message
- type Generator
- func (g *Generator) AddChannel(siteId uint32, artistId string) (*model.Rooms, *model.Messages, string, error)
- func (g *Generator) ClearSync(siteId uint32) int64
- func (g *Generator) DeleteArtist(siteId uint32, artistId string) int64
- func (g *Generator) DownloadAlbum(siteId uint32, albumId []string, trackQuality string) map[string]string
- func (g *Generator) DownloadArtist(siteId uint32, artistId string, trackQuality string) map[string]string
- func (g *Generator) GetArtistAlbums(siteId uint32, artistId string) []model.Message
- func (g *Generator) GetChannels(siteId uint32) (*model.Rooms, error)
- func (g *Generator) GetNewAlbums(siteId uint32) []model.Message
- func (g *Generator) SyncArtist(siteId uint32, artistId string, arts chan map[string][]model.Message)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientInstance ¶
func GetClientInstance() (artist.ArtistServiceClient, error)
func GetNoAvatarInstance ¶
func GetNoAvatarInstance() []byte
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) AddChannel ¶
func (*Generator) DeleteArtist ¶
func (*Generator) DownloadAlbum ¶
func (*Generator) DownloadArtist ¶
func (*Generator) GetArtistAlbums ¶
func (*Generator) GetChannels ¶
Click to show internal directories.
Click to hide internal directories.