wrapper

package
v0.0.0-...-3fbbd91 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSON_DATA = iota
	FORM_DATA
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IWrapper

type IWrapper interface {
	Init(l *log.Logger)
	MakeRequest(method string, pType int, u string, payload interface{}, auth string, pass string, v interface{}) (int, interface{}, error)
}

type Wrapper

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

func New

func New(l *log.Logger) *Wrapper

func (*Wrapper) GetRequest

func (h *Wrapper) GetRequest(url string, v interface{}) (int, interface{}, error)

func (*Wrapper) MakeRequest

func (h *Wrapper) MakeRequest(method string, pType int, u string, payload interface{}, auth string, pass string, v interface{}) (int, interface{}, error)

Jump to

Keyboard shortcuts

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