http

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataHttp

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

func NewDataHttp

func NewDataHttp(apiKey string) DataHttp

func (DataHttp) GetApiKey

func (d DataHttp) GetApiKey() string

type Error

type Error struct {
	Message string
	Code    string
}

type Http

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

func NewHttp

func NewHttp(data DataHttp) Http

func (Http) Get

func (h Http) Get(url string, headers map[string]string) ([]byte, error)

func (Http) Post

func (h Http) Post(url string, body interface{}, headers map[string]string) ([]byte, error)

Directories

Path Synopsis
Package mockhttp is a generated GoMock package.
Package mockhttp is a generated GoMock package.

Jump to

Keyboard shortcuts

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