model

package
v0.0.0-...-29f0dd3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: GPL-3.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConfig

type MockConfig struct {
	Id                     uint64
	Url                    string
	Method                 string
	ResponseDelayInSeconds int
	RequestMockValues      MockRequest
	ResponseMockValues     MockResponse
}

type MockRequest

type MockRequest struct {
	// Header config values can be of type string or []string.Hence using generic interface{} type
	RequestHeadersMockValues map[string]interface{}
	// request body can have many types as string,numeric,array,another struct etc.Hence using generic interface{} type
	RequestBodyMockValues map[string]interface{}
}

type MockResponse

type MockResponse struct {
	HttpCode int
	// Header config values can be of type string or []string.Hence using generic interface{} type
	ResponseHeadersMockValues map[string]interface{}
	// response body can have many types as string,numeric,array,another struct etc.Hence using generic interface{} type
	ResponseBodyMockValues map[string]interface{}
}

Jump to

Keyboard shortcuts

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