client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultHttpClient

type DefaultHttpClient struct {
}

func (*DefaultHttpClient) DoGet

func (h *DefaultHttpClient) DoGet(url string, headers map[string]string) (string, error)

func (*DefaultHttpClient) DoPost

func (h *DefaultHttpClient) DoPost(url string, headers map[string]string, payload string) (string, error)

type HttpClient

type HttpClient interface {
	DoPost(url string, headers map[string]string, payload string) (string, error)
	DoGet(url string, headers map[string]string) (string, error)
}

Jump to

Keyboard shortcuts

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