prest

package
v0.0.0-...-f388cdf Latest Latest
Warning

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

Go to latest
Published: May 27, 2017 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	R_GET    = 0
	R_PUT    = 3
	R_POST   = 1
	R_DELETE = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RestConnection

type RestConnection struct {
	// contains filtered or unexported fields
}

RestConnection handles the connections.

func New

func New() RestConnection

func (*RestConnection) Request

func (r *RestConnection) Request(req RestRequest, data []RestRequestData) (string, error)

type RestHeader

type RestHeader struct {
	Tag   string
	Value string
}

type RestRequest

type RestRequest struct {
	Header      RestHeader
	AuthToken   string
	Directory   string
	RequestType int
}

type RestRequestData

type RestRequestData struct {
	Tag   string
	Value string
}

Jump to

Keyboard shortcuts

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