utl

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package utl (fetcher.go) : These methods are for retrieving data from URL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestParams

type RequestParams struct {
	Method       string
	APIURL       string
	Data         io.Reader
	AcceptHeader string
	Contenttype  string
	Accesstoken  string
	Dtime        int64
}

RequestParams : Parameters for FetchAPI

func (*RequestParams) FetchAPI

func (r *RequestParams) FetchAPI() ([]byte, error)

FetchAPI : For fetching data to URL.

func (*RequestParams) FetchAPIres

func (r *RequestParams) FetchAPIres() (*http.Response, error)

FetchAPIres : For fetching data to URL.

Jump to

Keyboard shortcuts

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