titles

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func Plugin

func Plugin(m *message.Message, msgContent string) *response.Response

Main plugin call

func StartShow

func StartShow(m *message.Message, msgContent string) *response.Response

func WebInit

func WebInit(webDir string)

Types

type Page

type Page struct {
	Title       string
	IsRowLight  bool
	Suggestions []*TitleSuggestionDisplay
}

type TitleSuggestion

type TitleSuggestion struct {
	ID         int
	Title      string
	Author     string
	CreatedOn  time.Time
	TotalVotes int
}

func GetTitles

func GetTitles() []*TitleSuggestion

type TitleSuggestionDisplay

type TitleSuggestionDisplay struct {
	ID         int
	Title      string
	Author     string
	TimeAgo    string
	TotalVotes int
	IsRowLight bool
}

Jump to

Keyboard shortcuts

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