models

package
v0.0.0-...-75cf0d6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 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 Chuck

type Chuck struct {
	Category  []string `json:"category"`
	CreatedAt string   `json:"created_at"`
	IconUrl   string   `json:"icon_url"`
	Id        string   `json:"id"`
	UpdatedAt string   `json:"updated_at"`
	Url       string   `json:"url"`
	Value     string   `json:"value"`
}

type Config

type Config struct {
	TelegramToken string  `yaml:"telegram_token"`
	AllowedIds    []int64 `yaml:"allowed_ids"`
}

type Currency

type Currency struct {
	Date string  `json:"date"`
	INR  float64 `json:"inr"`
}

type DadJoke

type DadJoke struct {
	ID     string `json:"id"`
	Joke   string `json:"joke"`
	Status int    `json:"status"`
}

type Joke

type Joke struct {
	Error    bool            `json:"error"`
	Category string          `json:"category"`
	JokeType string          `json:"type"`
	Joke     []string        `json:"joke"`
	Flags    map[string]bool `json:"flags"`
	Id       float64         `json:"id"`
	Lang     string          `json:"lang"`
}

type Meme

type Meme struct {
	PostLink  string `json:"postLink"`
	SubReddit string `json:"subreddit"`
	Title     string `json:"title"`
	Upvotes   int    `json:"ups"`
	Author    string `json:"author"`
	URL       string `json:"url"`
}

type Story

type Story struct {
	By          string `json:"by"`
	Descendants int    `json:"descendants"`
	ID          int    `json:"id"`
	Kids        []int  `json:"kids"`
	Score       int    `json:"score"`
	Time        int    `json:"time"`
	Title       string `json:"title"`
	Type        string `json:"type"`
	URL         string `json:"url"`
}

Story is a struct that represents a Hacker News story

Jump to

Keyboard shortcuts

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