gen

package
v0.0.0-...-05bb6ad Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Unlicense Imports: 14 Imported by: 0

Documentation

Overview

Package gen implements data generators.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientInstance

func GetClientInstance() (artist.ArtistServiceClient, error)

func GetNoAvatarInstance

func GetNoAvatarInstance() []byte

func MapAlbum

func MapAlbum(alb *artist.Album, serial int, isRead bool) model.Message

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func (*Generator) AddChannel

func (g *Generator) AddChannel(siteId uint32, artistId string) (*model.Rooms, *model.Messages, string, error)

func (*Generator) ClearSync

func (g *Generator) ClearSync(siteId uint32) int64

func (*Generator) DeleteArtist

func (g *Generator) DeleteArtist(siteId uint32, artistId string) int64

func (*Generator) DownloadAlbum

func (g *Generator) DownloadAlbum(siteId uint32, albumId []string, trackQuality string) map[string]string

func (*Generator) DownloadArtist

func (g *Generator) DownloadArtist(siteId uint32, artistId string, trackQuality string) map[string]string

func (*Generator) GetArtistAlbums

func (g *Generator) GetArtistAlbums(siteId uint32, artistId string) []model.Message

func (*Generator) GetChannels

func (g *Generator) GetChannels(siteId uint32) (*model.Rooms, error)

func (*Generator) GetNewAlbums

func (g *Generator) GetNewAlbums(siteId uint32) []model.Message

func (*Generator) SyncArtist

func (g *Generator) SyncArtist(siteId uint32, artistId string, arts chan map[string][]model.Message)

Jump to

Keyboard shortcuts

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