Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Name string Method string Endpoint string Data interface{} Headers map[string]string ShouldStatus int ShouldReturn interface{} }
Request holds information for a HTTP request
func (*Request) GetRequest ¶
GetRequest returns a ResponseRecorder and gin context according to the data set in the Request. String data is passed as is, all other data types are marshaled before.
Click to show internal directories.
Click to hide internal directories.