Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type BaseResponse struct {
Message string `json:"Message" xml:"Message"`
MockGetResult func() interface{} `json:"-" xml:"-"`
MockGetRequestId func() string `json:"-" xml:"-"`
}
func (BaseResponse) GetRequestId ¶
func (r BaseResponse) GetRequestId() string
func (BaseResponse) GetResult ¶
func (r BaseResponse) GetResult() interface{}
type MockRequestBody ¶
type MockRequestBody struct {
RequestFieldStr string `json:"field" schema:"field"`
RequestFieldInt int `json:"intField" schema:"intField"`
SetAttributesFromFormCalled bool
SetAttributesFromFormCalledWith []interface{}
MockSetAttributesFromFormCalledWith func(values url.Values)
}
func (*MockRequestBody) SetAttributesFromForm ¶
func (m *MockRequestBody) SetAttributesFromForm(values url.Values)
Click to show internal directories.
Click to hide internal directories.