re

package
v0.26.4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SkipTLSVerify

func SkipTLSVerify(re *Resty)

func ToResty

func ToResty(rq rest.Rq, req *resty.Request) *resty.Request

ToResty -- maps Rq data to resty request

func WithHost

func WithHost(addr string) func(re *Resty)

func WithLogger

func WithLogger(wr io.Writer) func(re *Resty)

Types

type Resty

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

Resty -- resty client, implements REST interface

func NewResty

func NewResty(configs ...func(*Resty)) *Resty

NewResty -- Resty constuctor

func (*Resty) Delete

func (re *Resty) Delete(reqconfig rest.Rq) error

Delete -- http delete method

func (*Resty) Get

func (re *Resty) Get(reqconfig rest.Rq) error

Get -- http get method

func (*Resty) Post

func (re *Resty) Post(reqconfig rest.Rq) error

Post -- http post method

func (*Resty) Put

func (re *Resty) Put(reqconfig rest.Rq) error

Put -- http put method

func (*Resty) SetFingerprint

func (re *Resty) SetFingerprint(fingerprint string)

func (*Resty) SetToken

func (re *Resty) SetToken(token string)

Jump to

Keyboard shortcuts

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