entity

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 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 {
	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 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 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 {
	ID        string
	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
	UpdatedAt           time.Time
}

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