meddler

package module
v0.0.0-...-d2b51d2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2015 License: MIT Imports: 6 Imported by: 29

README

meddler

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(di DownloadItem, res http.ResponseWriter, req *http.Request)

func HeadGet

func HeadGet(di DownloadItem, res http.ResponseWriter, req *http.Request) error

Types

type DownloadItem

type DownloadItem struct {
	URI       string `form:"uri" binding:"required"`
	PublicKey string `form:"pubkey" binding:"-"`
	Signature string `form:"signature" binding:"-"`
}

type Payload

type Payload struct {
	URI         string `form:"uri" binding:"required"`
	PublicKey   string `form:"pubkey" binding:"-"`
	Signature   string `form:"signature" binding:"-"`
	Payload     string `form:"payload" binding:"-"`
	RequestTime int64  `form:"requesttime" binding:"required"`
	ExpiryTime  int64  `form:"expirytime" binding:"required"`
}

func (*Payload) RawTextForSigning

func (pl *Payload) RawTextForSigning() string

func (*Payload) ToUrlValues

func (pl *Payload) ToUrlValues(extras ...map[string]interface{}) url.Values

type UriInsert

type UriInsert struct {
	UriList []string
	Source  string
}

Jump to

Keyboard shortcuts

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