Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Mux is a multiplexer that can be used to register handlers. Mux *http.ServeMux // Server is an in-memory HTTP server for testing. Server *httptest.Server FakeToken = "eyJ0eXAiOiJKV1Q2lkIjo1MTEsImVtCJ1c2V2ns-QgWxERsywROmzASDniT3VHebO1DqgJ5ZIg" FakeTokenExpireDate = "2017-04-17T01:28:15.000Z" FakeAuthOpts = gcore.AuthOptions{Username: "whatever", Password: "whatever"} )
Functions ¶
func Endpoint ¶
func Endpoint() string
Endpoint returns a fake endpoint that will actually target the Mux.
func GetAuthenticatedCommonClient ¶
func GetAuthenticatedCommonClient() *gcore.CommonClient
func GetAuthenticatedResellerClient ¶
func GetAuthenticatedResellerClient() *gcore.ResellerClient
func MockClientURL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.