news

package
v0.0.0-...-1be2e0f Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2016 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URL = "https://spoofgo.com/news.json/v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Create

func Create(
	client *http.Client,
	version *version.Version,
) *Client

func (*Client) GetLastSuccess

func (self *Client) GetLastSuccess() time.Time

func (*Client) GetNews

func (self *Client) GetNews() []*News

func (*Client) GetNewsBlock

func (self *Client) GetNewsBlock() *textblock.TextBlock

func (*Client) GetVersion

func (self *Client) GetVersion() *version.Version

type News

type News struct {
	Title   string    `json:"title,omitempty"`
	Time    time.Time `json:"time,omitempty"`
	Content string    `json:"content,omitempty"`
}

Jump to

Keyboard shortcuts

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