news

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URLGetNewsForApp       = "/ISteamNews/GetNewsForApp/v2/"
	URLGetNewsForAppAuthed = "/ISteamNews/GetNewsForAppAuthed/v2/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppNews

type AppNews struct {
	steam.AppId
	Gid           string   `json:"gid"`
	Title         string   `json:"title"`
	Url           string   `json:"url"`
	IsExternalUrl bool     `json:"is_external_url"`
	Author        string   `json:"author"`
	Contents      string   `json:"contents"`
	FeedLabel     string   `json:"feed_label"`
	Date          uint     `json:"date"`
	FeedName      string   `json:"feedname"`
	FeedType      uint     `json:"feed_type"`
	Tags          []string `json:"tags"`
}

type AppNewsList

type AppNewsList struct {
	AppNews struct {
		steam.AppId
		NewsItems []AppNews `json:"newsitems"`
	} `json:"appnews"`
}

type AppNewsQueryOption

type AppNewsQueryOption struct {
	AppId     uint   `json:"appid" mapstructure:"appid" valid:"required"`
	MaxLength uint   `json:"maxlength"  mapstructure:"maxlength"`
	EndDate   uint   `json:"enddate" mapstructure:"enddate"`
	Count     uint   `json:"count" mapstructure:"count"`
	Feeds     string `json:"feeds" mapstructure:"feeds"`
}

Jump to

Keyboard shortcuts

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