api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contributions

type Contributions []struct {
	Author struct {
		Name string `json:"name"`
		Slug string `json:"slug"`
	} `json:"author"`
	Contribution string `json:"contribution"`
}

type Document

type Document struct {
	Id                string
	Genres            []string
	Pages             int
	Rating            float64
	RatingsCount      int `json:"ratings_count"`
	Title             string
	Year              int    `json:"release_year"`
	Date              string `json:"release_date"`
	Description       string
	AuthorNames       []string `json:"author_names"`
	ContributionTypes []string `json:"contribution_types"`
	Contributions     Contributions
	Image             struct {
		URL string `json:"url"`
	}
	Moods        []string
	Tags         []string
	Slug         string
	HasAudiobook bool `json:"has_audiobook"`
	HasEbook     bool `json:"has_ebook"`
}

type Hits

type Hits []struct {
	Document `json:"document"`
}

func Query

func Query(args []string) Hits

type QueryResponse

type QueryResponse struct {
	Search struct {
		Results struct {
			Hits `json:"hits"`
		}
	}
}

Jump to

Keyboard shortcuts

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