Documentation
¶
Index ¶
- Constants
- type GetCourse
- type GetCourseHandler
- type GetCourseHandlerFunc
- type GetCourseNotFound
- type GetCourseOK
- type GetCourseParams
- type GetCourseURL
- func (o *GetCourseURL) Build() (*url.URL, error)
- func (o *GetCourseURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetCourseURL) Must(u *url.URL, err error) *url.URL
- func (o *GetCourseURL) SetBasePath(bp string)
- func (o *GetCourseURL) String() string
- func (o *GetCourseURL) StringFull(scheme, host string) string
- func (o *GetCourseURL) WithBasePath(bp string) *GetCourseURL
- type GetCourses
- type GetCoursesHandler
- type GetCoursesHandlerFunc
- type GetCoursesOK
- type GetCoursesParams
- type GetCoursesURL
- func (o *GetCoursesURL) Build() (*url.URL, error)
- func (o *GetCoursesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetCoursesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetCoursesURL) SetBasePath(bp string)
- func (o *GetCoursesURL) String() string
- func (o *GetCoursesURL) StringFull(scheme, host string) string
- func (o *GetCoursesURL) WithBasePath(bp string) *GetCoursesURL
- type GetDistrictForCourse
- type GetDistrictForCourseHandler
- type GetDistrictForCourseHandlerFunc
- type GetDistrictForCourseNotFound
- type GetDistrictForCourseOK
- type GetDistrictForCourseParams
- type GetDistrictForCourseURL
- func (o *GetDistrictForCourseURL) Build() (*url.URL, error)
- func (o *GetDistrictForCourseURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetDistrictForCourseURL) Must(u *url.URL, err error) *url.URL
- func (o *GetDistrictForCourseURL) SetBasePath(bp string)
- func (o *GetDistrictForCourseURL) String() string
- func (o *GetDistrictForCourseURL) StringFull(scheme, host string) string
- func (o *GetDistrictForCourseURL) WithBasePath(bp string) *GetDistrictForCourseURL
- type GetResourcesForCourse
- type GetResourcesForCourseHandler
- type GetResourcesForCourseHandlerFunc
- type GetResourcesForCourseNotFound
- type GetResourcesForCourseOK
- type GetResourcesForCourseParams
- type GetResourcesForCourseURL
- func (o *GetResourcesForCourseURL) Build() (*url.URL, error)
- func (o *GetResourcesForCourseURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetResourcesForCourseURL) Must(u *url.URL, err error) *url.URL
- func (o *GetResourcesForCourseURL) SetBasePath(bp string)
- func (o *GetResourcesForCourseURL) String() string
- func (o *GetResourcesForCourseURL) StringFull(scheme, host string) string
- func (o *GetResourcesForCourseURL) WithBasePath(bp string) *GetResourcesForCourseURL
- type GetSchoolsForCourse
- type GetSchoolsForCourseHandler
- type GetSchoolsForCourseHandlerFunc
- type GetSchoolsForCourseNotFound
- type GetSchoolsForCourseOK
- type GetSchoolsForCourseParams
- type GetSchoolsForCourseURL
- func (o *GetSchoolsForCourseURL) Build() (*url.URL, error)
- func (o *GetSchoolsForCourseURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSchoolsForCourseURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSchoolsForCourseURL) SetBasePath(bp string)
- func (o *GetSchoolsForCourseURL) String() string
- func (o *GetSchoolsForCourseURL) StringFull(scheme, host string) string
- func (o *GetSchoolsForCourseURL) WithBasePath(bp string) *GetSchoolsForCourseURL
- type GetSectionsForCourse
- type GetSectionsForCourseHandler
- type GetSectionsForCourseHandlerFunc
- type GetSectionsForCourseNotFound
- type GetSectionsForCourseOK
- type GetSectionsForCourseParams
- type GetSectionsForCourseURL
- func (o *GetSectionsForCourseURL) Build() (*url.URL, error)
- func (o *GetSectionsForCourseURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetSectionsForCourseURL) Must(u *url.URL, err error) *url.URL
- func (o *GetSectionsForCourseURL) SetBasePath(bp string)
- func (o *GetSectionsForCourseURL) String() string
- func (o *GetSectionsForCourseURL) StringFull(scheme, host string) string
- func (o *GetSectionsForCourseURL) WithBasePath(bp string) *GetSectionsForCourseURL
Constants ¶
const GetCourseNotFoundCode int = 404
GetCourseNotFoundCode is the HTTP code returned for type GetCourseNotFound
const GetCourseOKCode int = 200
GetCourseOKCode is the HTTP code returned for type GetCourseOK
const GetCoursesOKCode int = 200
GetCoursesOKCode is the HTTP code returned for type GetCoursesOK
const GetDistrictForCourseNotFoundCode int = 404
GetDistrictForCourseNotFoundCode is the HTTP code returned for type GetDistrictForCourseNotFound
const GetDistrictForCourseOKCode int = 200
GetDistrictForCourseOKCode is the HTTP code returned for type GetDistrictForCourseOK
const GetResourcesForCourseNotFoundCode int = 404
GetResourcesForCourseNotFoundCode is the HTTP code returned for type GetResourcesForCourseNotFound
const GetResourcesForCourseOKCode int = 200
GetResourcesForCourseOKCode is the HTTP code returned for type GetResourcesForCourseOK
const GetSchoolsForCourseNotFoundCode int = 404
GetSchoolsForCourseNotFoundCode is the HTTP code returned for type GetSchoolsForCourseNotFound
const GetSchoolsForCourseOKCode int = 200
GetSchoolsForCourseOKCode is the HTTP code returned for type GetSchoolsForCourseOK
const GetSectionsForCourseNotFoundCode int = 404
GetSectionsForCourseNotFoundCode is the HTTP code returned for type GetSectionsForCourseNotFound
const GetSectionsForCourseOKCode int = 200
GetSectionsForCourseOKCode is the HTTP code returned for type GetSectionsForCourseOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetCourse ¶
type GetCourse struct {
Context *middleware.Context
Handler GetCourseHandler
}
GetCourse swagger:route GET /courses/{id} Courses getCourse
Returns a specific course
func NewGetCourse ¶
func NewGetCourse(ctx *middleware.Context, handler GetCourseHandler) *GetCourse
NewGetCourse creates a new http.Handler for the get course operation
type GetCourseHandler ¶
type GetCourseHandler interface {
Handle(GetCourseParams, interface{}) middleware.Responder
}
GetCourseHandler interface for that can handle valid get course params
type GetCourseHandlerFunc ¶
type GetCourseHandlerFunc func(GetCourseParams, interface{}) middleware.Responder
GetCourseHandlerFunc turns a function with the right signature into a get course handler
func (GetCourseHandlerFunc) Handle ¶
func (fn GetCourseHandlerFunc) Handle(params GetCourseParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetCourseNotFound ¶
GetCourseNotFound Entity Not Found
swagger:response getCourseNotFound
func NewGetCourseNotFound ¶
func NewGetCourseNotFound() *GetCourseNotFound
NewGetCourseNotFound creates GetCourseNotFound with default headers values
func (*GetCourseNotFound) SetPayload ¶
func (o *GetCourseNotFound) SetPayload(payload *models.NotFound)
SetPayload sets the payload to the get course not found response
func (*GetCourseNotFound) WithPayload ¶
func (o *GetCourseNotFound) WithPayload(payload *models.NotFound) *GetCourseNotFound
WithPayload adds the payload to the get course not found response
func (*GetCourseNotFound) WriteResponse ¶
func (o *GetCourseNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCourseOK ¶
type GetCourseOK struct {
/*
In: Body
*/
Payload *models.CourseResponse `json:"body,omitempty"`
}
GetCourseOK OK Response
swagger:response getCourseOK
func NewGetCourseOK ¶
func NewGetCourseOK() *GetCourseOK
NewGetCourseOK creates GetCourseOK with default headers values
func (*GetCourseOK) SetPayload ¶
func (o *GetCourseOK) SetPayload(payload *models.CourseResponse)
SetPayload sets the payload to the get course o k response
func (*GetCourseOK) WithPayload ¶
func (o *GetCourseOK) WithPayload(payload *models.CourseResponse) *GetCourseOK
WithPayload adds the payload to the get course o k response
func (*GetCourseOK) WriteResponse ¶
func (o *GetCourseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCourseParams ¶
type GetCourseParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
Required: true
In: path
*/
ID string
}
GetCourseParams contains all the bound params for the get course operation typically these are obtained from a http.Request
swagger:parameters getCourse
func NewGetCourseParams ¶
func NewGetCourseParams() GetCourseParams
NewGetCourseParams creates a new GetCourseParams object
There are no default values defined in the spec.
func (*GetCourseParams) BindRequest ¶
func (o *GetCourseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetCourseParams() beforehand.
type GetCourseURL ¶
type GetCourseURL struct {
ID string
// contains filtered or unexported fields
}
GetCourseURL generates an URL for the get course operation
func (*GetCourseURL) Build ¶
func (o *GetCourseURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetCourseURL) BuildFull ¶
func (o *GetCourseURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetCourseURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetCourseURL) SetBasePath ¶
func (o *GetCourseURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetCourseURL) String ¶
func (o *GetCourseURL) String() string
String returns the string representation of the path with query string
func (*GetCourseURL) StringFull ¶
func (o *GetCourseURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetCourseURL) WithBasePath ¶
func (o *GetCourseURL) WithBasePath(bp string) *GetCourseURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetCourses ¶
type GetCourses struct {
Context *middleware.Context
Handler GetCoursesHandler
}
GetCourses swagger:route GET /courses Courses getCourses
Returns a list of courses
func NewGetCourses ¶
func NewGetCourses(ctx *middleware.Context, handler GetCoursesHandler) *GetCourses
NewGetCourses creates a new http.Handler for the get courses operation
func (*GetCourses) ServeHTTP ¶
func (o *GetCourses) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetCoursesHandler ¶
type GetCoursesHandler interface {
Handle(GetCoursesParams, interface{}) middleware.Responder
}
GetCoursesHandler interface for that can handle valid get courses params
type GetCoursesHandlerFunc ¶
type GetCoursesHandlerFunc func(GetCoursesParams, interface{}) middleware.Responder
GetCoursesHandlerFunc turns a function with the right signature into a get courses handler
func (GetCoursesHandlerFunc) Handle ¶
func (fn GetCoursesHandlerFunc) Handle(params GetCoursesParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetCoursesOK ¶
type GetCoursesOK struct {
/*
In: Body
*/
Payload *models.CoursesResponse `json:"body,omitempty"`
}
GetCoursesOK OK Response
swagger:response getCoursesOK
func NewGetCoursesOK ¶
func NewGetCoursesOK() *GetCoursesOK
NewGetCoursesOK creates GetCoursesOK with default headers values
func (*GetCoursesOK) SetPayload ¶
func (o *GetCoursesOK) SetPayload(payload *models.CoursesResponse)
SetPayload sets the payload to the get courses o k response
func (*GetCoursesOK) WithPayload ¶
func (o *GetCoursesOK) WithPayload(payload *models.CoursesResponse) *GetCoursesOK
WithPayload adds the payload to the get courses o k response
func (*GetCoursesOK) WriteResponse ¶
func (o *GetCoursesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetCoursesParams ¶
type GetCoursesParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: query
*/
Count *string
/*
In: query
*/
EndingBefore *string
/*
In: query
*/
Limit *int64
/*
In: query
*/
StartingAfter *string
}
GetCoursesParams contains all the bound params for the get courses operation typically these are obtained from a http.Request
swagger:parameters getCourses
func NewGetCoursesParams ¶
func NewGetCoursesParams() GetCoursesParams
NewGetCoursesParams creates a new GetCoursesParams object
There are no default values defined in the spec.
func (*GetCoursesParams) BindRequest ¶
func (o *GetCoursesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetCoursesParams() beforehand.
type GetCoursesURL ¶
type GetCoursesURL struct {
Count *string
EndingBefore *string
Limit *int64
StartingAfter *string
// contains filtered or unexported fields
}
GetCoursesURL generates an URL for the get courses operation
func (*GetCoursesURL) Build ¶
func (o *GetCoursesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetCoursesURL) BuildFull ¶
func (o *GetCoursesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetCoursesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetCoursesURL) SetBasePath ¶
func (o *GetCoursesURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetCoursesURL) String ¶
func (o *GetCoursesURL) String() string
String returns the string representation of the path with query string
func (*GetCoursesURL) StringFull ¶
func (o *GetCoursesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetCoursesURL) WithBasePath ¶
func (o *GetCoursesURL) WithBasePath(bp string) *GetCoursesURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetDistrictForCourse ¶
type GetDistrictForCourse struct {
Context *middleware.Context
Handler GetDistrictForCourseHandler
}
GetDistrictForCourse swagger:route GET /courses/{id}/district Courses getDistrictForCourse
Returns the district for a course
func NewGetDistrictForCourse ¶
func NewGetDistrictForCourse(ctx *middleware.Context, handler GetDistrictForCourseHandler) *GetDistrictForCourse
NewGetDistrictForCourse creates a new http.Handler for the get district for course operation
func (*GetDistrictForCourse) ServeHTTP ¶
func (o *GetDistrictForCourse) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetDistrictForCourseHandler ¶
type GetDistrictForCourseHandler interface {
Handle(GetDistrictForCourseParams, interface{}) middleware.Responder
}
GetDistrictForCourseHandler interface for that can handle valid get district for course params
type GetDistrictForCourseHandlerFunc ¶
type GetDistrictForCourseHandlerFunc func(GetDistrictForCourseParams, interface{}) middleware.Responder
GetDistrictForCourseHandlerFunc turns a function with the right signature into a get district for course handler
func (GetDistrictForCourseHandlerFunc) Handle ¶
func (fn GetDistrictForCourseHandlerFunc) Handle(params GetDistrictForCourseParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetDistrictForCourseNotFound ¶
type GetDistrictForCourseNotFound struct {
/*
In: Body
*/
Payload *models.NotFound `json:"body,omitempty"`
}
GetDistrictForCourseNotFound Entity Not Found
swagger:response getDistrictForCourseNotFound
func NewGetDistrictForCourseNotFound ¶
func NewGetDistrictForCourseNotFound() *GetDistrictForCourseNotFound
NewGetDistrictForCourseNotFound creates GetDistrictForCourseNotFound with default headers values
func (*GetDistrictForCourseNotFound) SetPayload ¶
func (o *GetDistrictForCourseNotFound) SetPayload(payload *models.NotFound)
SetPayload sets the payload to the get district for course not found response
func (*GetDistrictForCourseNotFound) WithPayload ¶
func (o *GetDistrictForCourseNotFound) WithPayload(payload *models.NotFound) *GetDistrictForCourseNotFound
WithPayload adds the payload to the get district for course not found response
func (*GetDistrictForCourseNotFound) WriteResponse ¶
func (o *GetDistrictForCourseNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDistrictForCourseOK ¶
type GetDistrictForCourseOK struct {
/*
In: Body
*/
Payload *models.DistrictResponse `json:"body,omitempty"`
}
GetDistrictForCourseOK OK Response
swagger:response getDistrictForCourseOK
func NewGetDistrictForCourseOK ¶
func NewGetDistrictForCourseOK() *GetDistrictForCourseOK
NewGetDistrictForCourseOK creates GetDistrictForCourseOK with default headers values
func (*GetDistrictForCourseOK) SetPayload ¶
func (o *GetDistrictForCourseOK) SetPayload(payload *models.DistrictResponse)
SetPayload sets the payload to the get district for course o k response
func (*GetDistrictForCourseOK) WithPayload ¶
func (o *GetDistrictForCourseOK) WithPayload(payload *models.DistrictResponse) *GetDistrictForCourseOK
WithPayload adds the payload to the get district for course o k response
func (*GetDistrictForCourseOK) WriteResponse ¶
func (o *GetDistrictForCourseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDistrictForCourseParams ¶
type GetDistrictForCourseParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
Required: true
In: path
*/
ID string
}
GetDistrictForCourseParams contains all the bound params for the get district for course operation typically these are obtained from a http.Request
swagger:parameters getDistrictForCourse
func NewGetDistrictForCourseParams ¶
func NewGetDistrictForCourseParams() GetDistrictForCourseParams
NewGetDistrictForCourseParams creates a new GetDistrictForCourseParams object
There are no default values defined in the spec.
func (*GetDistrictForCourseParams) BindRequest ¶
func (o *GetDistrictForCourseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetDistrictForCourseParams() beforehand.
type GetDistrictForCourseURL ¶
type GetDistrictForCourseURL struct {
ID string
// contains filtered or unexported fields
}
GetDistrictForCourseURL generates an URL for the get district for course operation
func (*GetDistrictForCourseURL) Build ¶
func (o *GetDistrictForCourseURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetDistrictForCourseURL) BuildFull ¶
func (o *GetDistrictForCourseURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetDistrictForCourseURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetDistrictForCourseURL) SetBasePath ¶
func (o *GetDistrictForCourseURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetDistrictForCourseURL) String ¶
func (o *GetDistrictForCourseURL) String() string
String returns the string representation of the path with query string
func (*GetDistrictForCourseURL) StringFull ¶
func (o *GetDistrictForCourseURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetDistrictForCourseURL) WithBasePath ¶
func (o *GetDistrictForCourseURL) WithBasePath(bp string) *GetDistrictForCourseURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetResourcesForCourse ¶
type GetResourcesForCourse struct {
Context *middleware.Context
Handler GetResourcesForCourseHandler
}
GetResourcesForCourse swagger:route GET /courses/{id}/resources Courses getResourcesForCourse
Returns the resources for a course
func NewGetResourcesForCourse ¶
func NewGetResourcesForCourse(ctx *middleware.Context, handler GetResourcesForCourseHandler) *GetResourcesForCourse
NewGetResourcesForCourse creates a new http.Handler for the get resources for course operation
func (*GetResourcesForCourse) ServeHTTP ¶
func (o *GetResourcesForCourse) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetResourcesForCourseHandler ¶
type GetResourcesForCourseHandler interface {
Handle(GetResourcesForCourseParams, interface{}) middleware.Responder
}
GetResourcesForCourseHandler interface for that can handle valid get resources for course params
type GetResourcesForCourseHandlerFunc ¶
type GetResourcesForCourseHandlerFunc func(GetResourcesForCourseParams, interface{}) middleware.Responder
GetResourcesForCourseHandlerFunc turns a function with the right signature into a get resources for course handler
func (GetResourcesForCourseHandlerFunc) Handle ¶
func (fn GetResourcesForCourseHandlerFunc) Handle(params GetResourcesForCourseParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetResourcesForCourseNotFound ¶
type GetResourcesForCourseNotFound struct {
/*
In: Body
*/
Payload *models.NotFound `json:"body,omitempty"`
}
GetResourcesForCourseNotFound Entity Not Found
swagger:response getResourcesForCourseNotFound
func NewGetResourcesForCourseNotFound ¶
func NewGetResourcesForCourseNotFound() *GetResourcesForCourseNotFound
NewGetResourcesForCourseNotFound creates GetResourcesForCourseNotFound with default headers values
func (*GetResourcesForCourseNotFound) SetPayload ¶
func (o *GetResourcesForCourseNotFound) SetPayload(payload *models.NotFound)
SetPayload sets the payload to the get resources for course not found response
func (*GetResourcesForCourseNotFound) WithPayload ¶
func (o *GetResourcesForCourseNotFound) WithPayload(payload *models.NotFound) *GetResourcesForCourseNotFound
WithPayload adds the payload to the get resources for course not found response
func (*GetResourcesForCourseNotFound) WriteResponse ¶
func (o *GetResourcesForCourseNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetResourcesForCourseOK ¶
type GetResourcesForCourseOK struct {
/*
In: Body
*/
Payload *models.ResourcesResponse `json:"body,omitempty"`
}
GetResourcesForCourseOK OK Response
swagger:response getResourcesForCourseOK
func NewGetResourcesForCourseOK ¶
func NewGetResourcesForCourseOK() *GetResourcesForCourseOK
NewGetResourcesForCourseOK creates GetResourcesForCourseOK with default headers values
func (*GetResourcesForCourseOK) SetPayload ¶
func (o *GetResourcesForCourseOK) SetPayload(payload *models.ResourcesResponse)
SetPayload sets the payload to the get resources for course o k response
func (*GetResourcesForCourseOK) WithPayload ¶
func (o *GetResourcesForCourseOK) WithPayload(payload *models.ResourcesResponse) *GetResourcesForCourseOK
WithPayload adds the payload to the get resources for course o k response
func (*GetResourcesForCourseOK) WriteResponse ¶
func (o *GetResourcesForCourseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetResourcesForCourseParams ¶
type GetResourcesForCourseParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: query
*/
EndingBefore *string
/*
Required: true
In: path
*/
ID string
/*
In: query
*/
Limit *int64
/*
In: query
*/
StartingAfter *string
}
GetResourcesForCourseParams contains all the bound params for the get resources for course operation typically these are obtained from a http.Request
swagger:parameters getResourcesForCourse
func NewGetResourcesForCourseParams ¶
func NewGetResourcesForCourseParams() GetResourcesForCourseParams
NewGetResourcesForCourseParams creates a new GetResourcesForCourseParams object
There are no default values defined in the spec.
func (*GetResourcesForCourseParams) BindRequest ¶
func (o *GetResourcesForCourseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetResourcesForCourseParams() beforehand.
type GetResourcesForCourseURL ¶
type GetResourcesForCourseURL struct {
ID string
EndingBefore *string
Limit *int64
StartingAfter *string
// contains filtered or unexported fields
}
GetResourcesForCourseURL generates an URL for the get resources for course operation
func (*GetResourcesForCourseURL) Build ¶
func (o *GetResourcesForCourseURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetResourcesForCourseURL) BuildFull ¶
func (o *GetResourcesForCourseURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetResourcesForCourseURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetResourcesForCourseURL) SetBasePath ¶
func (o *GetResourcesForCourseURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetResourcesForCourseURL) String ¶
func (o *GetResourcesForCourseURL) String() string
String returns the string representation of the path with query string
func (*GetResourcesForCourseURL) StringFull ¶
func (o *GetResourcesForCourseURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetResourcesForCourseURL) WithBasePath ¶
func (o *GetResourcesForCourseURL) WithBasePath(bp string) *GetResourcesForCourseURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetSchoolsForCourse ¶
type GetSchoolsForCourse struct {
Context *middleware.Context
Handler GetSchoolsForCourseHandler
}
GetSchoolsForCourse swagger:route GET /courses/{id}/schools Courses getSchoolsForCourse
Returns the schools for a course
func NewGetSchoolsForCourse ¶
func NewGetSchoolsForCourse(ctx *middleware.Context, handler GetSchoolsForCourseHandler) *GetSchoolsForCourse
NewGetSchoolsForCourse creates a new http.Handler for the get schools for course operation
func (*GetSchoolsForCourse) ServeHTTP ¶
func (o *GetSchoolsForCourse) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSchoolsForCourseHandler ¶
type GetSchoolsForCourseHandler interface {
Handle(GetSchoolsForCourseParams, interface{}) middleware.Responder
}
GetSchoolsForCourseHandler interface for that can handle valid get schools for course params
type GetSchoolsForCourseHandlerFunc ¶
type GetSchoolsForCourseHandlerFunc func(GetSchoolsForCourseParams, interface{}) middleware.Responder
GetSchoolsForCourseHandlerFunc turns a function with the right signature into a get schools for course handler
func (GetSchoolsForCourseHandlerFunc) Handle ¶
func (fn GetSchoolsForCourseHandlerFunc) Handle(params GetSchoolsForCourseParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetSchoolsForCourseNotFound ¶
type GetSchoolsForCourseNotFound struct {
/*
In: Body
*/
Payload *models.NotFound `json:"body,omitempty"`
}
GetSchoolsForCourseNotFound Entity Not Found
swagger:response getSchoolsForCourseNotFound
func NewGetSchoolsForCourseNotFound ¶
func NewGetSchoolsForCourseNotFound() *GetSchoolsForCourseNotFound
NewGetSchoolsForCourseNotFound creates GetSchoolsForCourseNotFound with default headers values
func (*GetSchoolsForCourseNotFound) SetPayload ¶
func (o *GetSchoolsForCourseNotFound) SetPayload(payload *models.NotFound)
SetPayload sets the payload to the get schools for course not found response
func (*GetSchoolsForCourseNotFound) WithPayload ¶
func (o *GetSchoolsForCourseNotFound) WithPayload(payload *models.NotFound) *GetSchoolsForCourseNotFound
WithPayload adds the payload to the get schools for course not found response
func (*GetSchoolsForCourseNotFound) WriteResponse ¶
func (o *GetSchoolsForCourseNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSchoolsForCourseOK ¶
type GetSchoolsForCourseOK struct {
/*
In: Body
*/
Payload *models.SchoolsResponse `json:"body,omitempty"`
}
GetSchoolsForCourseOK OK Response
swagger:response getSchoolsForCourseOK
func NewGetSchoolsForCourseOK ¶
func NewGetSchoolsForCourseOK() *GetSchoolsForCourseOK
NewGetSchoolsForCourseOK creates GetSchoolsForCourseOK with default headers values
func (*GetSchoolsForCourseOK) SetPayload ¶
func (o *GetSchoolsForCourseOK) SetPayload(payload *models.SchoolsResponse)
SetPayload sets the payload to the get schools for course o k response
func (*GetSchoolsForCourseOK) WithPayload ¶
func (o *GetSchoolsForCourseOK) WithPayload(payload *models.SchoolsResponse) *GetSchoolsForCourseOK
WithPayload adds the payload to the get schools for course o k response
func (*GetSchoolsForCourseOK) WriteResponse ¶
func (o *GetSchoolsForCourseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSchoolsForCourseParams ¶
type GetSchoolsForCourseParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: query
*/
EndingBefore *string
/*
Required: true
In: path
*/
ID string
/*
In: query
*/
Limit *int64
/*
In: query
*/
StartingAfter *string
}
GetSchoolsForCourseParams contains all the bound params for the get schools for course operation typically these are obtained from a http.Request
swagger:parameters getSchoolsForCourse
func NewGetSchoolsForCourseParams ¶
func NewGetSchoolsForCourseParams() GetSchoolsForCourseParams
NewGetSchoolsForCourseParams creates a new GetSchoolsForCourseParams object
There are no default values defined in the spec.
func (*GetSchoolsForCourseParams) BindRequest ¶
func (o *GetSchoolsForCourseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetSchoolsForCourseParams() beforehand.
type GetSchoolsForCourseURL ¶
type GetSchoolsForCourseURL struct {
ID string
EndingBefore *string
Limit *int64
StartingAfter *string
// contains filtered or unexported fields
}
GetSchoolsForCourseURL generates an URL for the get schools for course operation
func (*GetSchoolsForCourseURL) Build ¶
func (o *GetSchoolsForCourseURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSchoolsForCourseURL) BuildFull ¶
func (o *GetSchoolsForCourseURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSchoolsForCourseURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSchoolsForCourseURL) SetBasePath ¶
func (o *GetSchoolsForCourseURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetSchoolsForCourseURL) String ¶
func (o *GetSchoolsForCourseURL) String() string
String returns the string representation of the path with query string
func (*GetSchoolsForCourseURL) StringFull ¶
func (o *GetSchoolsForCourseURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSchoolsForCourseURL) WithBasePath ¶
func (o *GetSchoolsForCourseURL) WithBasePath(bp string) *GetSchoolsForCourseURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetSectionsForCourse ¶
type GetSectionsForCourse struct {
Context *middleware.Context
Handler GetSectionsForCourseHandler
}
GetSectionsForCourse swagger:route GET /courses/{id}/sections Courses getSectionsForCourse
Returns the sections for a course
func NewGetSectionsForCourse ¶
func NewGetSectionsForCourse(ctx *middleware.Context, handler GetSectionsForCourseHandler) *GetSectionsForCourse
NewGetSectionsForCourse creates a new http.Handler for the get sections for course operation
func (*GetSectionsForCourse) ServeHTTP ¶
func (o *GetSectionsForCourse) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetSectionsForCourseHandler ¶
type GetSectionsForCourseHandler interface {
Handle(GetSectionsForCourseParams, interface{}) middleware.Responder
}
GetSectionsForCourseHandler interface for that can handle valid get sections for course params
type GetSectionsForCourseHandlerFunc ¶
type GetSectionsForCourseHandlerFunc func(GetSectionsForCourseParams, interface{}) middleware.Responder
GetSectionsForCourseHandlerFunc turns a function with the right signature into a get sections for course handler
func (GetSectionsForCourseHandlerFunc) Handle ¶
func (fn GetSectionsForCourseHandlerFunc) Handle(params GetSectionsForCourseParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetSectionsForCourseNotFound ¶
type GetSectionsForCourseNotFound struct {
/*
In: Body
*/
Payload *models.NotFound `json:"body,omitempty"`
}
GetSectionsForCourseNotFound Entity Not Found
swagger:response getSectionsForCourseNotFound
func NewGetSectionsForCourseNotFound ¶
func NewGetSectionsForCourseNotFound() *GetSectionsForCourseNotFound
NewGetSectionsForCourseNotFound creates GetSectionsForCourseNotFound with default headers values
func (*GetSectionsForCourseNotFound) SetPayload ¶
func (o *GetSectionsForCourseNotFound) SetPayload(payload *models.NotFound)
SetPayload sets the payload to the get sections for course not found response
func (*GetSectionsForCourseNotFound) WithPayload ¶
func (o *GetSectionsForCourseNotFound) WithPayload(payload *models.NotFound) *GetSectionsForCourseNotFound
WithPayload adds the payload to the get sections for course not found response
func (*GetSectionsForCourseNotFound) WriteResponse ¶
func (o *GetSectionsForCourseNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSectionsForCourseOK ¶
type GetSectionsForCourseOK struct {
/*
In: Body
*/
Payload *models.SectionsResponse `json:"body,omitempty"`
}
GetSectionsForCourseOK OK Response
swagger:response getSectionsForCourseOK
func NewGetSectionsForCourseOK ¶
func NewGetSectionsForCourseOK() *GetSectionsForCourseOK
NewGetSectionsForCourseOK creates GetSectionsForCourseOK with default headers values
func (*GetSectionsForCourseOK) SetPayload ¶
func (o *GetSectionsForCourseOK) SetPayload(payload *models.SectionsResponse)
SetPayload sets the payload to the get sections for course o k response
func (*GetSectionsForCourseOK) WithPayload ¶
func (o *GetSectionsForCourseOK) WithPayload(payload *models.SectionsResponse) *GetSectionsForCourseOK
WithPayload adds the payload to the get sections for course o k response
func (*GetSectionsForCourseOK) WriteResponse ¶
func (o *GetSectionsForCourseOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetSectionsForCourseParams ¶
type GetSectionsForCourseParams struct {
// HTTP Request Object
HTTPRequest *http.Request `json:"-"`
/*
In: query
*/
EndingBefore *string
/*
Required: true
In: path
*/
ID string
/*
In: query
*/
Limit *int64
/*
In: query
*/
StartingAfter *string
}
GetSectionsForCourseParams contains all the bound params for the get sections for course operation typically these are obtained from a http.Request
swagger:parameters getSectionsForCourse
func NewGetSectionsForCourseParams ¶
func NewGetSectionsForCourseParams() GetSectionsForCourseParams
NewGetSectionsForCourseParams creates a new GetSectionsForCourseParams object
There are no default values defined in the spec.
func (*GetSectionsForCourseParams) BindRequest ¶
func (o *GetSectionsForCourseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetSectionsForCourseParams() beforehand.
type GetSectionsForCourseURL ¶
type GetSectionsForCourseURL struct {
ID string
EndingBefore *string
Limit *int64
StartingAfter *string
// contains filtered or unexported fields
}
GetSectionsForCourseURL generates an URL for the get sections for course operation
func (*GetSectionsForCourseURL) Build ¶
func (o *GetSectionsForCourseURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetSectionsForCourseURL) BuildFull ¶
func (o *GetSectionsForCourseURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetSectionsForCourseURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetSectionsForCourseURL) SetBasePath ¶
func (o *GetSectionsForCourseURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetSectionsForCourseURL) String ¶
func (o *GetSectionsForCourseURL) String() string
String returns the string representation of the path with query string
func (*GetSectionsForCourseURL) StringFull ¶
func (o *GetSectionsForCourseURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetSectionsForCourseURL) WithBasePath ¶
func (o *GetSectionsForCourseURL) WithBasePath(bp string) *GetSectionsForCourseURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
Source Files
¶
- get_course.go
- get_course_parameters.go
- get_course_responses.go
- get_course_urlbuilder.go
- get_courses.go
- get_courses_parameters.go
- get_courses_responses.go
- get_courses_urlbuilder.go
- get_district_for_course.go
- get_district_for_course_parameters.go
- get_district_for_course_responses.go
- get_district_for_course_urlbuilder.go
- get_resources_for_course.go
- get_resources_for_course_parameters.go
- get_resources_for_course_responses.go
- get_resources_for_course_urlbuilder.go
- get_schools_for_course.go
- get_schools_for_course_parameters.go
- get_schools_for_course_responses.go
- get_schools_for_course_urlbuilder.go
- get_sections_for_course.go
- get_sections_for_course_parameters.go
- get_sections_for_course_responses.go
- get_sections_for_course_urlbuilder.go