middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKey = "github.com/bgpat/twtr/gin/middleware"
)

Variables

This section is empty.

Functions

func TwitterClient

func TwitterClient(consumer *twtr.Credentials) gin.HandlerFunc

Types

type Client

type Client struct {
	*twtr.Client
	Context *gin.Context
	Config  Config
}

func Default

func Default(c *gin.Context) *Client

func NewClient

func NewClient(c *twtr.Client, ctx *gin.Context) *Client

func (*Client) Save

func (c *Client) Save()

type Config

type Config struct {
	Redirect string `form:"redirect" binding:"omitempty"`
}

Jump to

Keyboard shortcuts

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