Versions in this module Expand all Collapse all v0 v0.1.0 Feb 3, 2018 Changes in this version + const FakeEmail + const FakeName + const FakePass + const NewPass + func CheckApiResponse(status api.Response, code string) error + func CheckRedirect(url string, resp *http.Response) error + func NewConfig() *config.AuthPlzConfig + func ParseAndCheckAPIResponse(resp *http.Response, code string) error + func ParseJson(resp *http.Response, inst interface{}) error + type Client struct + func NewClient(path string) Client + func NewClientFromHttp(path string, client *http.Client) Client + func (tc *Client) Get(path string, statusCode int) (*http.Response, error) + func (tc *Client) GetAPIResponse(path string, statusCode int, code string) error + func (tc *Client) GetJSON(path string, statusCode int, inst interface{}) error + func (tc *Client) GetJSONWithParams(path string, statusCode int, v url.Values, inst interface{}) error + func (tc *Client) GetWithParams(path string, statusCode int, v url.Values) (*http.Response, error) + func (tc *Client) PostForm(path string, statusCode int, v url.Values) (*http.Response, error) + func (tc *Client) PostJSON(path string, statusCode int, requestInst interface{}) (*http.Response, error) + type MockEventEmitter struct + Event *events.AuthPlzEvent + func (m *MockEventEmitter) SendEvent(e interface{}) + type TestServer struct + Config *config.AuthPlzConfig + DataStore *datastore.DataStore + EventEmitter *MockEventEmitter + Router *web.Router + TokenControl *token.TokenController + func NewTestServer() (*TestServer, error) + func (ts *TestServer) Address() string + func (ts *TestServer) Run()