mocks

package
v4.0.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMock

type ClientMock struct {
	GetCall  func(service string, headers map[string]string) ([]byte, error)
	PostCall func(service string, body []byte, headers map[string]string) error
}

ClientMock mocks client

func (ClientMock) Get

func (c ClientMock) Get(service string, headers map[string]string) ([]byte, error)

Get mocks Get

func (ClientMock) Post

func (c ClientMock) Post(service string, body []byte, headers map[string]string) error

Post mocks Post

Jump to

Keyboard shortcuts

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