http

package
v0.0.0-...-e231e6d Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuthString

func BasicAuthString(username, password string) string

func Client_Req

func Client_Req(ctx context.Context, h []Headers, uri string, m string, d []byte) ([]byte, http.Header, error)

Types

type Headers

type Headers struct {
	Key   string
	Value string
}

type Response

type Response struct {
	ResponseCode   string      `json:"responseCode"`
	ResponseDesc   string      `json:"responseDesc"`
	ResponseData   interface{} `json:"responseData"`
	ResponseErrors interface{} `json:"responseErrors"`
}

func APIResponseError

func APIResponseError(responseDesc string, responseCode string, errors interface{}) Response

func APIResponseSuccess

func APIResponseSuccess(responseDesc string, responseData interface{}) Response

Jump to

Keyboard shortcuts

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