entity

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agency added in v0.3.0

type Agency struct {
	ID    int64
	Name  string
	Image string
}

Agency is entity for agency.

type Channel

type Channel struct {
	Name       string
	Type       ChannelType
	URL        string
	Image      string
	Subscriber int
	Videos     []Video
}

Channel is entity for channel.

type ChannelType

type ChannelType string

ChannelType is channel types.

const (
	ChannelYoutube  ChannelType = "YOUTUBE"
	ChannelTwitch   ChannelType = "TWITCH"
	ChannelBilibili ChannelType = "BILIBILI"
	ChannelNiconico ChannelType = "NICONICO"
	ChannelOther    ChannelType = "OTHER"
)

Available channel types.

type GetAllRequest added in v0.5.0

type GetAllRequest struct {
	Mode  SearchMode
	Page  int
	Limit int
}

GetAllRequest is get all request model.

type SearchMode added in v0.5.0

type SearchMode string

SearchMode is search mode.

const (
	SearchModeAll   SearchMode = "all"
	SearchModeStats SearchMode = "stats"
)

Available search mode.

type Video

type Video struct {
	Title     string
	URL       string
	Image     string
	StartDate time.Time
	EndDate   time.Time
}

Video is entity for video.

type Vtuber

type Vtuber struct {
	ID                  int64
	Name                string
	Image               string
	OriginalNames       []string
	Nicknames           []string
	Caption             string
	DebutDate           *time.Time
	RetirementDate      *time.Time
	Has2D               bool
	Has3D               bool
	CharacterDesigners  []string
	Character2DModelers []string
	Character3DModelers []string
	Agencies            []Agency
	Affiliations        []string
	Channels            []Channel
	SocialMedias        []string
	OfficialWebsites    []string
	Gender              string
	Age                 *float64
	Birthday            *time.Time
	Height              *float64
	Weight              *float64
	BloodType           string
	ZodiacSign          string
	Emoji               string
}

Vtuber is entity for vtuber.

func WikiaPageToVtuber

func WikiaPageToVtuber(page entity.Page) Vtuber

WikiaPageToVtuber to convert wikia page to vtuber.

Jump to

Keyboard shortcuts

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