Documentation ¶
Index ¶
- func CreateCourseBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func CreateCourseCreated(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.CourseMedia)
- func CreateCourseCreatedLink(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.CourseMediaLink)
- func CreateCourseUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func CreateRegistrationBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func CreateRegistrationCreated(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.RegistrationMedia)
- func CreateRegistrationCreatedExtended(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.RegistrationMediaExtended)
- func CreateRegistrationUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func DeleteCourseNoContent(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func DeleteCourseNotFound(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func DeleteCourseUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func ListCourseOK(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, app.CourseMediaCollection)
- func ListCourseOKLink(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, app.CourseMediaLinkCollection)
- func ListCourseUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func ListRegistrationOK(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, app.RegistrationMediaCollection)
- func ListRegistrationOKExtended(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, app.RegistrationMediaExtendedCollection)
- func ListRegistrationUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func LoginSessionNoContent(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func LoginSessionUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func PatchCourseBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func PatchCourseNoContent(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func PatchCourseNotFound(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func PatchCourseUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func PatchRegistrationBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func PatchRegistrationNoContent(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func PatchRegistrationNotFound(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func PatchRegistrationUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func ShowCourseBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func ShowCourseNotFound(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func ShowCourseOK(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.CourseMedia)
- func ShowCourseOKLink(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.CourseMediaLink)
- func ShowCourseUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func ShowRegistrationBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
- func ShowRegistrationNotFound(t *testing.T, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func ShowRegistrationOK(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.RegistrationMedia)
- func ShowRegistrationOKExtended(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.RegistrationMediaExtended)
- func ShowRegistrationUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *goa.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCourseBadRequest ¶
func CreateCourseBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, payload *app.CreateCoursePayload) (http.ResponseWriter, *goa.Error)
CreateCourseBadRequest Create runs the method Create of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func CreateCourseCreated ¶
func CreateCourseCreated(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, payload *app.CreateCoursePayload) (http.ResponseWriter, *app.CourseMedia)
CreateCourseCreated Create runs the method Create of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func CreateCourseCreatedLink ¶
func CreateCourseCreatedLink(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, payload *app.CreateCoursePayload) (http.ResponseWriter, *app.CourseMediaLink)
CreateCourseCreatedLink Create runs the method Create of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func CreateCourseUnauthorized ¶
func CreateCourseUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, payload *app.CreateCoursePayload) (http.ResponseWriter, *goa.Error)
CreateCourseUnauthorized Create runs the method Create of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func CreateRegistrationBadRequest ¶
func CreateRegistrationBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, payload *app.CreateRegistrationPayload) (http.ResponseWriter, *goa.Error)
CreateRegistrationBadRequest Create runs the method Create of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func CreateRegistrationCreated ¶
func CreateRegistrationCreated(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, payload *app.CreateRegistrationPayload) (http.ResponseWriter, *app.RegistrationMedia)
CreateRegistrationCreated Create runs the method Create of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func CreateRegistrationCreatedExtended ¶
func CreateRegistrationCreatedExtended(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, payload *app.CreateRegistrationPayload) (http.ResponseWriter, *app.RegistrationMediaExtended)
CreateRegistrationCreatedExtended Create runs the method Create of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func CreateRegistrationUnauthorized ¶
func CreateRegistrationUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, payload *app.CreateRegistrationPayload) (http.ResponseWriter, *goa.Error)
CreateRegistrationUnauthorized Create runs the method Create of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func DeleteCourseNoContent ¶
func DeleteCourseNoContent(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) http.ResponseWriter
DeleteCourseNoContent Delete runs the method Delete of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func DeleteCourseNotFound ¶
func DeleteCourseNotFound(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) http.ResponseWriter
DeleteCourseNotFound Delete runs the method Delete of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func DeleteCourseUnauthorized ¶
func DeleteCourseUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) (http.ResponseWriter, *goa.Error)
DeleteCourseUnauthorized Delete runs the method Delete of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ListCourseOK ¶
func ListCourseOK(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, name *string) (http.ResponseWriter, app.CourseMediaCollection)
ListCourseOK List runs the method List of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ListCourseOKLink ¶
func ListCourseOKLink(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, name *string) (http.ResponseWriter, app.CourseMediaLinkCollection)
ListCourseOKLink List runs the method List of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ListCourseUnauthorized ¶
func ListCourseUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, name *string) (http.ResponseWriter, *goa.Error)
ListCourseUnauthorized List runs the method List of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ListRegistrationOK ¶
func ListRegistrationOK(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, courseID *int) (http.ResponseWriter, app.RegistrationMediaCollection)
ListRegistrationOK List runs the method List of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ListRegistrationOKExtended ¶
func ListRegistrationOKExtended(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, courseID *int) (http.ResponseWriter, app.RegistrationMediaExtendedCollection)
ListRegistrationOKExtended List runs the method List of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ListRegistrationUnauthorized ¶
func ListRegistrationUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, courseID *int) (http.ResponseWriter, *goa.Error)
ListRegistrationUnauthorized List runs the method List of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func LoginSessionNoContent ¶
func LoginSessionNoContent(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.SessionController) http.ResponseWriter
LoginSessionNoContent Login runs the method Login of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func LoginSessionUnauthorized ¶
func LoginSessionUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.SessionController) http.ResponseWriter
LoginSessionUnauthorized Login runs the method Login of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func PatchCourseBadRequest ¶
func PatchCourseBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int, payload *app.PatchCoursePayload) (http.ResponseWriter, *goa.Error)
PatchCourseBadRequest Patch runs the method Patch of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func PatchCourseNoContent ¶
func PatchCourseNoContent(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int, payload *app.PatchCoursePayload) http.ResponseWriter
PatchCourseNoContent Patch runs the method Patch of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func PatchCourseNotFound ¶
func PatchCourseNotFound(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int, payload *app.PatchCoursePayload) http.ResponseWriter
PatchCourseNotFound Patch runs the method Patch of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func PatchCourseUnauthorized ¶
func PatchCourseUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int, payload *app.PatchCoursePayload) (http.ResponseWriter, *goa.Error)
PatchCourseUnauthorized Patch runs the method Patch of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func PatchRegistrationBadRequest ¶
func PatchRegistrationBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, id int, payload *app.PatchRegistrationPayload) (http.ResponseWriter, *goa.Error)
PatchRegistrationBadRequest Patch runs the method Patch of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func PatchRegistrationNoContent ¶
func PatchRegistrationNoContent(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, id int, payload *app.PatchRegistrationPayload) http.ResponseWriter
PatchRegistrationNoContent Patch runs the method Patch of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func PatchRegistrationNotFound ¶
func PatchRegistrationNotFound(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, id int, payload *app.PatchRegistrationPayload) http.ResponseWriter
PatchRegistrationNotFound Patch runs the method Patch of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func PatchRegistrationUnauthorized ¶
func PatchRegistrationUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, id int, payload *app.PatchRegistrationPayload) (http.ResponseWriter, *goa.Error)
PatchRegistrationUnauthorized Patch runs the method Patch of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowCourseBadRequest ¶
func ShowCourseBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) (http.ResponseWriter, *goa.Error)
ShowCourseBadRequest Show runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowCourseNotFound ¶
func ShowCourseNotFound(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) http.ResponseWriter
ShowCourseNotFound Show runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowCourseOK ¶
func ShowCourseOK(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) (http.ResponseWriter, *app.CourseMedia)
ShowCourseOK Show runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowCourseOKLink ¶
func ShowCourseOKLink(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) (http.ResponseWriter, *app.CourseMediaLink)
ShowCourseOKLink Show runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowCourseUnauthorized ¶
func ShowCourseUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.CourseController, id int) (http.ResponseWriter, *goa.Error)
ShowCourseUnauthorized Show runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowRegistrationBadRequest ¶
func ShowRegistrationBadRequest(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, id int, view *string) (http.ResponseWriter, *goa.Error)
ShowRegistrationBadRequest Show runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowRegistrationNotFound ¶
func ShowRegistrationNotFound(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, id int, view *string) http.ResponseWriter
ShowRegistrationNotFound Show runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowRegistrationOK ¶
func ShowRegistrationOK(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, id int, view *string) (http.ResponseWriter, *app.RegistrationMedia)
ShowRegistrationOK Show runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowRegistrationOKExtended ¶
func ShowRegistrationOKExtended(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, id int, view *string) (http.ResponseWriter, *app.RegistrationMediaExtended)
ShowRegistrationOKExtended Show runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowRegistrationUnauthorized ¶
func ShowRegistrationUnauthorized(t *testing.T, ctx context.Context, service *goa.Service, ctrl app.RegistrationController, id int, view *string) (http.ResponseWriter, *goa.Error)
ShowRegistrationUnauthorized Show runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
Types ¶
This section is empty.