ivr

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(client *http.Client) *API

func (API) GetModVIPList added in v0.5.1

func (a API) GetModVIPList(ctx context.Context, channel string) (ModVIPResponse, error)

https://api.ivr.fi/v2/twitch/modvip/{channel}

type Channel

type Channel struct {
	ID          string `json:"id"`
	Login       string `json:"login"`
	DisplayName string `json:"displayName"`
}

type Cumulative

type Cumulative struct {
	ElapsedDays   int       `json:"elapsedDays"`
	DaysRemaining int       `json:"daysRemaining"`
	Months        int       `json:"months"`
	End           time.Time `json:"end"`
	Start         time.Time `json:"start"`
}

type ModVIPResponse added in v0.5.1

type ModVIPResponse struct {
	Mods []PrivilegedUser `json:"mods"`
	VIPs []PrivilegedUser `json:"vips"`
}

type PrivilegedUser added in v0.5.1

type PrivilegedUser struct {
	ID          string    `json:"id"`
	Login       string    `json:"login"`
	DisplayName string    `json:"displayName"`
	GrantedAt   time.Time `json:"grantedAt"`
}

type Streak

type Streak struct {
	ElapsedDays   int       `json:"elapsedDays"`
	DaysRemaining int       `json:"daysRemaining"`
	Months        int       `json:"months"`
	End           time.Time `json:"end"`
	Start         time.Time `json:"start"`
}

type SubAgeResponse

type SubAgeResponse struct {
	User         User       `json:"user"`
	Channel      Channel    `json:"channel"`
	StatusHidden bool       `json:"statusHidden"`
	FollowedAt   time.Time  `json:"followedAt"`
	Streak       Streak     `json:"streak"`
	Cumulative   Cumulative `json:"cumulative"`
}

type User

type User struct {
	ID          string `json:"id"`
	Login       string `json:"login"`
	DisplayName string `json:"displayName"`
}

Jump to

Keyboard shortcuts

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