hackernews

package
v0.0.0-...-4368f61 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHackerNewsApi

func NewHackerNewsApi(client *http.Client) *hackerNewsApi

func NewHackerNewsService

func NewHackerNewsService(api *hackerNewsApi) *hackerNewsService

Types

type Item

type Item struct {
	Id    int32  `json:id`
	Score int32  `json:score`
	Title string `json:title`
	By    string `json:by`
	Time  int32  `json:time`
	Url   string `json:url`
	Type  string `json:type`
}

type ItemResult

type ItemResult struct {
	Item  *hackernews_pb.Story
	Error error
}

Jump to

Keyboard shortcuts

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