entity

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 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 BirthdayCount added in v0.14.0

type BirthdayCount struct {
	Month int
	Day   int
	Count int
}

BirthdayCount is entity for birthday count.

type BloodTypeCount added in v0.14.0

type BloodTypeCount struct {
	BloodType string
	Count     int
}

BloodTypeCount is entity for blood type count.

type Channel

type Channel struct {
	ID         string
	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.

func StrsToChannelTypes added in v0.7.0

func StrsToChannelTypes(strs []string) []ChannelType

StrsToChannelTypes to convert slice of string to slice of ChannelType.

type ChannelTypeCount added in v0.14.0

type ChannelTypeCount struct {
	ChannelType ChannelType
	Count       int
}

ChannelTypeCount is entity for channel type count.

type DebutRetireCount added in v0.14.0

type DebutRetireCount struct {
	Month  int
	Year   int
	Debut  int
	Retire int
}

DebutRetireCount is entity for debut & retire count.

type DesignerCount added in v0.14.0

type DesignerCount struct {
	Name  string
	Count int
}

DesignerCount is entity for designer count.

type GenderCount added in v0.14.0

type GenderCount struct {
	Gender string
	Count  int
}

GenderCount is entity for gender count.

type GetAllRequest added in v0.5.0

type GetAllRequest struct {
	Mode               SearchMode
	Names              string
	Name               string
	OriginalName       string
	Nickname           string
	ExcludeActive      bool
	ExcludeRetired     bool
	StartDebutMonth    int
	EndDebutMonth      int
	StartDebutYear     int
	EndDebutYear       int
	StartRetiredMonth  int
	EndRetiredMonth    int
	StartRetiredYear   int
	EndRetiredYear     int
	Has2D              *bool
	Has3D              *bool
	CharacterDesigner  string
	Character2DModeler string
	Character3DModeler string
	InAgency           *bool
	Agency             string
	AgencyID           int64
	ChannelTypes       []ChannelType
	BirthdayDay        int
	StartBirthdayMonth int
	EndBirthdayMonth   int
	BloodTypes         []string
	Genders            []string
	Zodiacs            []string
	StartSubscriber    int
	EndSubscriber      int
	Sort               string
	Page               int
	Limit              int
}

GetAllRequest is get all request model.

type InAgencyCount added in v0.14.0

type InAgencyCount struct {
	InAgency    int
	NotInAgency int
}

InAgencyCount is entity for in agency count.

type ModelCount added in v0.14.0

type ModelCount struct {
	None      int
	Has2DOnly int
	Has3DOnly int
	Both      int
}

ModelCount is entity for 2d & 3d model count.

type SearchMode added in v0.5.0

type SearchMode string

SearchMode is search mode.

const (
	SearchModeAll    SearchMode = "all"
	SearchModeSimple SearchMode = "simple"
)

Available search mode.

type StatusCount added in v0.14.0

type StatusCount struct {
	Active  int
	Retired int
}

StatusCount is entity for status count.

type SubscriberCount added in v0.14.0

type SubscriberCount struct {
	Min   int
	Max   int
	Count int
}

SubscriberCount is entity for subscriber count.

type Video

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

Video is entity for video.

type VideoCount added in v0.14.0

type VideoCount struct {
	ID    int64
	Name  string
	Count int
}

VideoCount is entity for video count.

type VideoCountByDate added in v0.14.0

type VideoCountByDate struct {
	Day   int
	Hour  int
	Count int
}

VideoCountByDate is entity for video count by date.

type VideoDuration added in v0.14.0

type VideoDuration struct {
	ID       int64
	Name     string
	Duration float64
}

VideoDuration is entity for video duration.

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
	UpdatedAt           time.Time
}

Vtuber is entity for vtuber.

func WikiaPageToVtuber

func WikiaPageToVtuber(page entity.Page) Vtuber

WikiaPageToVtuber to convert wikia page to vtuber.

type ZodiacCount added in v0.14.0

type ZodiacCount struct {
	Zodiac string
	Count  int
}

ZodiacCount is entity for zodiac count.

Jump to

Keyboard shortcuts

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