Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIMock ¶
type APIMock struct { CORSEnabled bool Log logrus.FieldLogger Type string URIMocks []*URIMock // contains filtered or unexported fields }
APIMock is the main struct that
func NewAPIMock ¶
func NewAPIMock(cors bool, log logrus.FieldLogger, apiType string) *APIMock
NewAPIMock returns a new instance of the Mock API
type ErrorMessage ¶
type ErrorMessage struct { Code int `json:"code,omitempty"` Message string `json:"message,omitempty"` }
ErrorMessage is the struct to format error messages returned by API
Click to show internal directories.
Click to hide internal directories.