mocks

package
v6.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 1 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(endpoint string, fetchOptions service.RequestParams) ([]byte, error)
	PostCall func(endpoint string, body []byte, headers map[string]string) error
}

ClientMock mocks client

func (ClientMock) Get

func (c ClientMock) Get(endpoint string, fetchOptions service.RequestParams) ([]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