client

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

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

Go to latest
Published: Mar 15, 2016 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Redirect = errors.New("redirect")

Functions

This section is empty.

Types

type Client

type Client struct {
	*http.Client
	URL *url.URL
	// contains filtered or unexported fields
}

func New

func New(URL string) (*Client, error)

New creates a new erickson client.

func (*Client) Authenticate

func (c *Client) Authenticate(username, password string) (*http.Response, error)

func (*Client) PostReview

func (c *Client) PostReview(diff, username, commitmsg, repo string) (string, error)

PostReview posts a review and returns its location.

func (*Client) Session

func (c *Client) Session(sessionKey string) error

func (*Client) Token

func (c *Client) Token() (string, error)

Token gets a one-time X-CSRF-Token

Jump to

Keyboard shortcuts

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