adapter

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	ErrorMode bool
	Response  string
}

MockClient Mock an HTTP client

func (*MockClient) Get

func (m *MockClient) Get(url string, destination interface{}) error

Get Trigger a fake GET, with JSON

type MockGiphyAdapter

type MockGiphyAdapter struct {
	ErrorMode bool
}

MockGiphyAdapter Mock the Giphy adapter

func (MockGiphyAdapter) SearchForID

func (m MockGiphyAdapter) SearchForID(s string) (string, error)

SearchForID Present to search

Jump to

Keyboard shortcuts

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