clients

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 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(url string) (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(url string) (io.Reader, error)

type MockClient

type MockClient struct{}

func NewMockClient

func NewMockClient() MockClient

func (MockClient) Get

func (c MockClient) Get(urlString string) (io.Reader, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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