sonolus

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinUrl

func JoinUrl(base string, path string) (string, error)

Types

type BackgroundInfo

type BackgroundInfo struct {
	Image SRL `json:"image"`
}

type EngineInfo

type EngineInfo struct {
	Version    int            `json:"version"`
	Background BackgroundInfo `json:"background"`
}

type InfoResponse

type InfoResponse[T any] struct {
	Item T `json:"item"`
}

type LevelData

type LevelData struct {
	BgmOffset float64           `json:"bgmOffset"`
	Entities  []LevelDataEntity `json:"entities"`
}

type LevelDataEntity

type LevelDataEntity struct {
	Archetype string                 `json:"archetype"`
	Data      []LevelDataEntityValue `json:"data"`
	Name      string                 `json:"name"`
}

type LevelDataEntityValue

type LevelDataEntityValue struct {
	Name  string
	Value float64
	Ref   string
}

type LevelInfo

type LevelInfo struct {
	Name          string                  `json:"name"`
	Title         string                  `json:"title"`
	Artists       string                  `json:"artists"`
	Author        string                  `json:"author"`
	Version       int                     `json:"version"`
	Rating        int                     `json:"rating"`
	Cover         SRL                     `json:"cover"`
	Data          SRL                     `json:"data"`
	Preview       SRL                     `json:"preview"`
	UseBackground UseItem[BackgroundInfo] `json:"useBackground"`
	Engine        EngineInfo              `json:"engine"`
	Tags          []TagInfo               `json:"tags"`
}

type SRL

type SRL struct {
	Url  string `json:"url"`
	Hash string `json:"hash"`
}

type TagInfo

type TagInfo struct {
	Title string `json:"title"`
}

type UseItem

type UseItem[T any] struct {
	UseDefault bool `json:"useDefault"`
	Item       T    `json:"item"`
}

Jump to

Keyboard shortcuts

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