Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrWrongResponse will be thrown when the api's response does not match what we expect ErrWrongResponse = errors.New("Test api response doesn't equal 'pong'") )
Functions ¶
This section is empty.
Types ¶
type APITest ¶
type APITest struct { // response string of the api-test endpoint Response string `json:"ping"` }
APITest struct contains a response from the server
type Repository ¶
type Repository repository.RestRepository
Repository can be used to test the api, do a simple ping and retrieve pong from the server
func (*Repository) Test ¶
func (r *Repository) Test() error
Test will execute an api test and respond with an error if the test failed
Click to show internal directories.
Click to hide internal directories.