Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBearerToken ¶
func NewBearerToken() string
NewBearerToken generates a token with 1 minute validity
func NewTestDB ¶
func NewTestDB() (*sql.DB, config.Configuration)
NewTestDB initializes a test database
func NewTestServer ¶
func NewTestServer(path, method string, fn func(w http.ResponseWriter, r *http.Request)) *httptest.Server
NewTestServer helper for testing
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.