models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRequest

type MockRequest struct {
	Tag            string      `json:"tag"`
	Method         string      `json:"method"`
	Path           string      `json:"path"`
	ResponseStatus int         `json:"responseStatus"`
	ResponseBody   interface{} `json:"responseBody"`
}

MockRequest is the request body for the mock endpoint

func (*MockRequest) Clean

func (r *MockRequest) Clean()

Clean is used to clean the request path

func (*MockRequest) Default

func (r *MockRequest) Default()

Default is used to set default values for the missing request fields

func (*MockRequest) Validate

func (r *MockRequest) Validate() error

Validate is used to validate the request

type UnMockRequest

type UnMockRequest struct {
	Tag    string `json:"tag"`
	Method string `json:"method"`
	Path   string `json:"path"`
}

UnMockRequest is the request body for the unMock endpoint

func (*UnMockRequest) Clean

func (r *UnMockRequest) Clean()

Clean is used to clean the request path

Jump to

Keyboard shortcuts

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