supinic

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg config.APIConfig) (resolvers []resolver.CustomURLManager)

Types

type TooltipData

type TooltipData struct {
	ID         int
	Name       string
	AuthorName string
	Tags       string
	Duration   string
}

type TrackData

type TrackData struct {
	ID          int       `json:"id"`
	Link        string    `json:"code"` // Youtube ID/link
	Name        string    `json:"name"`
	VideoType   int       `json:"videoType"`
	TrackType   string    `json:"trackType"`
	Duration    float32   `json:"duration"`
	Available   bool      `json:"available"`
	PublishedAt time.Time `json:"published"`
	Notes       string    `json:"notes"`
	AddedBy     string    `json:"addedBy"`
	ParsedLink  string    `json:"parsedLink"`
	Tags        []string  `json:"tags"`
	Authors     []struct {
		ID   int    `json:"ID"`
		Name string `json:"name"`
		Role string `json:"role"`
	} `json:"authors"`
}

type TrackListAPIResponse

type TrackListAPIResponse struct {
	Data TrackData `json:"data"`
}

Jump to

Keyboard shortcuts

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