Back to godoc.org
github.com/Shaked/getpocket / utils

package utils

v0.0.0 (9797080)
Latest Go to latest
Published: Apr 29, 2015 | License: BSD-3-Clause | Module: github.com/Shaked/getpocket

Index

type HttpRequest

type HttpRequest interface {
	Post(url string, values url.Values) ([]byte, *RequestError)
}

type Request

type Request struct{}

func NewRequest

func NewRequest() *Request

func (*Request) Post

func (ur *Request) Post(url string, values url.Values) ([]byte, *RequestError)

type RequestError

type RequestError struct {
	RequesterError
	// contains filtered or unexported fields
}

func NewRequestError

func NewRequestError(xErrorCode int, xErrorText error) *RequestError

func (*RequestError) Error

func (e *RequestError) Error() string

func (*RequestError) ErrorCode

func (e *RequestError) ErrorCode() int

type RequesterError

type RequesterError interface {
	ErrorCode() int
}
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier