clients

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(u *url.URL) (io.Reader, error)
}

type HttpClient

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

func NewBasicHttpClient

func NewBasicHttpClient() HttpClient

func (HttpClient) Get

func (c HttpClient) Get(u *url.URL) (io.Reader, error)

type MockClient

type MockClient struct{}

MockClient A simple client used for test the shops which will load an HTML from the mockdata present in this same package based on the requested host.

func NewMockClient

func NewMockClient() MockClient

func (MockClient) Get

func (c MockClient) Get(u *url.URL) (io.Reader, error)

Jump to

Keyboard shortcuts

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