mock

package
v1.1.42 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrPageNotFound = dopErrs.Err("page_not_found")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseSt

type ResponseSt struct {
	RespObj any
	Resp    *httpc.RespSt
	Err     error
}

type St

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

func New

func New(lg logger.Lite) *St

func (*St) Clean

func (c *St) Clean()

func (*St) GetOptions

func (c *St) GetOptions() *httpc.OptionsSt

func (*St) GetRequest

func (c *St) GetRequest(path string, obj any) (*httpc.OptionsSt, bool)

func (*St) GetRequests

func (c *St) GetRequests() []*httpc.OptionsSt

func (*St) Send

func (c *St) Send(opts *httpc.OptionsSt) (*httpc.RespSt, error)

func (*St) SetOptions added in v1.1.20

func (c *St) SetOptions(opts *httpc.OptionsSt)

func (*St) SetResponse

func (c *St) SetResponse(path string, response ResponseSt)

func (*St) SetResponses

func (c *St) SetResponses(responses map[string]ResponseSt)

Jump to

Keyboard shortcuts

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