cats

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatFactsAPI

type CatFactsAPI struct {
	Facts       func() ([]Fact, error)                   `method:"GET" path:"/facts"`
	AnimalFacts func(animal_type string) ([]Fact, error) `method:"GET" path:"/facts" query:"animal_type"`
	Fact        func(id string) (*Fact, error)           `method:"GET" path:"/facts/{id}"`
}

type Fact

type Fact struct {
	Id        string    `json:"_id"`
	V         int       `json:"__v"`
	Text      string    `json:"text"`
	UpdatedAt time.Time `json:"updatedAt"`
	Deleted   bool      `json:"deleted"`
	Source    string    `json:"source"`
}

Jump to

Keyboard shortcuts

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