newsfeed

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewsFeedURL = "https://secure.sakura.ad.jp/rss/sakuranews/getfeeds.php?service=cloud&format=json"

NewsFeedURL フィード取得URL

Functions

This section is empty.

Types

type FeedItem

type FeedItem struct {
	StrDate       string `json:"date,omitempty"`
	Description   string `json:"desc,omitempty"`
	StrEventStart string `json:"event_start,omitempty"`
	StrEventEnd   string `json:"event_end,omitempty"`
	Title         string `json:"title,omitempty"`
	URL           string `json:"url,omitempty"`
}

FeedItem メンテナンス/障害情報お知らせ

func Get

func Get() ([]*FeedItem, error)

Get ニュースフィード(障害/メンテナンス情報)を取得

func GetByURL

func GetByURL(url string) (*FeedItem, error)

GetByURL 指定のURLを持つフィードを取得

func (*FeedItem) Date

func (f *FeedItem) Date() time.Time

Date 対象日時

func (*FeedItem) EventEnd

func (f *FeedItem) EventEnd() time.Time

EventEnd 掲載終了日時

func (*FeedItem) EventStart

func (f *FeedItem) EventStart() time.Time

EventStart 掲載開始日時

Jump to

Keyboard shortcuts

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