app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(w http.ResponseWriter, r *http.Request)

func IndexHandler

func IndexHandler(w http.ResponseWriter, r *http.Request)

func LongStormHandler

func LongStormHandler(w http.ResponseWriter, r *http.Request)

func NewRender

func NewRender(layout string, box *packr.Box) *render.Render

func ReviewHandler

func ReviewHandler(w http.ResponseWriter, r *http.Request)

func SaveSettingsHandler

func SaveSettingsHandler(w http.ResponseWriter, r *http.Request)

func SettingsHandler

func SettingsHandler(w http.ResponseWriter, r *http.Request)

func TweetHandler

func TweetHandler(w http.ResponseWriter, r *http.Request)

Types

type Active

type Active struct {
	Tweet       string
	Review      string
	History     string
	Settings    string
	CreateTweet string
	ReviewTweet string
}

type TmpPost

type TmpPost struct {
	ID  int    `storm:"id"`
	Txt string `storm:"unique"`
}

type TwitterKeys

type TwitterKeys struct {
	ID                int    `storm:"id"`
	AccessToken       string `storm:"unique"`
	AccessTokenSecret string `storm:"unique"`
	ConsumerAPIKey    string `storm:"unique"`
	ConsumerSecretKey string `storm:"unique"`
	HonorNewlines     bool   `storm:"unique"`
}

func (*TwitterKeys) Wash

func (tk *TwitterKeys) Wash() error

type View

type View struct {
	FlashErrors  []string
	FlashSuccess []string
	Active       *Active
	TwitterKeys  *TwitterKeys
	TmpPost      *TmpPost
	Tweets       []string
}

func NewView

func NewView(w http.ResponseWriter, r *http.Request) *View

Jump to

Keyboard shortcuts

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