models

package
v2.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

type Method struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	FullName    string  `json:"full_name"`
	Description string  `json:"description"`
	Paper       *string `json:"paper"`
}

type MethodList

type MethodList struct {
	Count    int      `json:"count"`
	Next     *string  `json:"next"`
	Previous *string  `json:"previous"`
	Results  []Method `json:"results"`
}

MethodList represents methods used in the paper.

type Paper

type Paper struct {
	ID               string         `json:"id"`
	ArxivID          *string        `json:"arxiv_id"`
	NipsID           *string        `json:"nips_id"`
	URLAbs           string         `json:"url_abs"`
	URLPDF           string         `json:"url_pdf"`
	Title            string         `json:"title"`
	Abstract         string         `json:"abstract"`
	Authors          []string       `json:"authors"`
	Published        YyyyMmDdDashed `json:"published"`
	Conference       *string        `json:"conference"`
	ConferenceURLAbs *string        `json:"conference_url_abs"`
	ConferenceURLPDF *string        `json:"conference_url_pdf"`
	Proceeding       *string        `json:"proceeding"`
}

type PaperList

type PaperList struct {
	Count    int64   `json:"count"`
	Next     *string `json:"next"`
	Previous *string `json:"previous"`
	Results  []Paper `json:"results"`
}

PaperList is the result of PaperList() function.

type Repository

type Repository struct {
	URL         string `json:"url"`
	IsOfficial  bool   `json:"is_official"`
	Description string `json:"description"`
	Stars       int    `json:"stars"`
	Framework   string `json:"framework"`
}

type RepositoryList

type RepositoryList struct {
	Count    int64        `json:"count"`
	Next     *string      `json:"next"`
	Previous *string      `json:"previous"`
	Results  []Repository `json:"results"`
}

RepositoryList contains code repositories implemented by a certain paper.

type Result

type Result struct {
	ID                 string            `json:"id"`
	BestRank           *int              `json:"best_rank"`
	Metrics            map[string]string `json:"metrics"`
	Methodology        string            `json:"methodology"`
	UsesAdditionalData bool              `json:"uses_additional_data"`
	Paper              *string           `json:"paper"`
	BestMetric         *string           `json:"best_metric"`
	EvaluatedOn        YyyyMmDdDashed    `json:"evaluated_on"`
	ExternalSourceUrl  *string           `json:"external_source_url"`
}

Result is the evaluation result from a paper.

type ResultList

type ResultList struct {
	Count    int     `json:"count"`
	Next     *string `json:"next"`
	Previous *string `json:"previous"`
	Results  []Result
}

ResultList contains results produced in a paper.

type Task

type Task struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

Task is an object attached to a paper.

type TaskList

type TaskList struct {
	Count    int     `json:"count"`
	Next     *string `json:"next"`
	Previous *string `json:"previous"`
	Results  []Task  `json:"results"`
}

type YyyyMmDdDashed

type YyyyMmDdDashed time.Time

YyyyMmDdDashed is the special date type to parse YYYY-MM-DD format.

func NewYyyyMmDdDashed

func NewYyyyMmDdDashed(year int, month time.Month, day int) YyyyMmDdDashed

func (YyyyMmDdDashed) MarshalJSON

func (y YyyyMmDdDashed) MarshalJSON() ([]byte, error)

func (*YyyyMmDdDashed) UnmarshalJSON

func (y *YyyyMmDdDashed) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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