response

package
v0.0.0-...-a51ef49 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	ID            string   `json:"id"`
	GroupId       string   `json:"g"`
	ArtifactId    string   `json:"a"`
	LatestVersion string   `json:"latestVersion"`
	RepositoryID  string   `json:"repositoryId"`
	Packaging     string   `json:"p"`
	Timestamp     int64    `json:"timestamp"`
	VersionCount  int      `json:"versionCount"`
	Text          []string `json:"text"`
	Ec            []string `json:"ec"`
}

type Params

type Params struct {
	Q       string `json:"q"`
	Core    string `json:"core"`
	Indent  string `json:"indent"`
	Fl      string `json:"fl"`
	Start   string `json:"start"`
	Sort    string `json:"sort"`
	Rows    string `json:"rows"`
	Wt      string `json:"wt"`
	Version string `json:"version"`
}

type Response

type Response[Doc any] struct {
	ResponseHeader *ResponseHeader    `json:"responseHeader"`
	ResponseBody   *ResponseBody[Doc] `json:"response"`
}

type ResponseBody

type ResponseBody[Doc any] struct {
	NumFound int   `json:"numFound"`
	Start    int   `json:"start"`
	Docs     []Doc `json:"docs"`
}

type ResponseHeader

type ResponseHeader struct {
	Status int     `json:"status"`
	QTime  int     `json:"QTime"`
	Params *Params `json:"params"`
}

type Version

type Version struct {
	ID         string   `json:"id"`
	GroupId    string   `json:"g"`
	ArtifactId string   `json:"a"`
	Version    string   `json:"v"`
	Packaging  string   `json:"p"`
	Timestamp  int64    `json:"timestamp"`
	Ec         []string `json:"ec"`
	Tags       []string `json:"tags"`
}

Jump to

Keyboard shortcuts

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