operations

package
v0.0.0-...-f0bbf45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AddStudentConflictCode int = 409

AddStudentConflictCode is the HTTP code returned for type AddStudentConflict

View Source
const AddStudentCreatedCode int = 201

AddStudentCreatedCode is the HTTP code returned for type AddStudentCreated

View Source
const AddStudentInternalServerErrorCode int = 500

AddStudentInternalServerErrorCode is the HTTP code returned for type AddStudentInternalServerError

View Source
const AddTeacherConflictCode int = 409

AddTeacherConflictCode is the HTTP code returned for type AddTeacherConflict

View Source
const AddTeacherCreatedCode int = 201

AddTeacherCreatedCode is the HTTP code returned for type AddTeacherCreated

View Source
const AddTeacherInternalServerErrorCode int = 500

AddTeacherInternalServerErrorCode is the HTTP code returned for type AddTeacherInternalServerError

View Source
const DeleteStudentInternalServerErrorCode int = 500

DeleteStudentInternalServerErrorCode is the HTTP code returned for type DeleteStudentInternalServerError

View Source
const DeleteStudentNoContentCode int = 204

DeleteStudentNoContentCode is the HTTP code returned for type DeleteStudentNoContent

View Source
const DeleteStudentNotFoundCode int = 404

DeleteStudentNotFoundCode is the HTTP code returned for type DeleteStudentNotFound

View Source
const DeleteTeacherInternalServerErrorCode int = 500

DeleteTeacherInternalServerErrorCode is the HTTP code returned for type DeleteTeacherInternalServerError

View Source
const DeleteTeacherNoContentCode int = 204

DeleteTeacherNoContentCode is the HTTP code returned for type DeleteTeacherNoContent

View Source
const DeleteTeacherNotFoundCode int = 404

DeleteTeacherNotFoundCode is the HTTP code returned for type DeleteTeacherNotFound

View Source
const EditStudentInternalServerErrorCode int = 500

EditStudentInternalServerErrorCode is the HTTP code returned for type EditStudentInternalServerError

View Source
const EditStudentOKCode int = 200

EditStudentOKCode is the HTTP code returned for type EditStudentOK

View Source
const EditTeacherInternalServerErrorCode int = 500

EditTeacherInternalServerErrorCode is the HTTP code returned for type EditTeacherInternalServerError

View Source
const EditTeacherOKCode int = 200

EditTeacherOKCode is the HTTP code returned for type EditTeacherOK

View Source
const GetStudentInternalServerErrorCode int = 500

GetStudentInternalServerErrorCode is the HTTP code returned for type GetStudentInternalServerError

View Source
const GetStudentNotFoundCode int = 404

GetStudentNotFoundCode is the HTTP code returned for type GetStudentNotFound

View Source
const GetStudentOKCode int = 200

GetStudentOKCode is the HTTP code returned for type GetStudentOK

View Source
const GetTeacherInternalServerErrorCode int = 500

GetTeacherInternalServerErrorCode is the HTTP code returned for type GetTeacherInternalServerError

View Source
const GetTeacherNotFoundCode int = 404

GetTeacherNotFoundCode is the HTTP code returned for type GetTeacherNotFound

View Source
const GetTeacherOKCode int = 200

GetTeacherOKCode is the HTTP code returned for type GetTeacherOK

Variables

This section is empty.

Functions

This section is empty.

Types

type AddStudent

type AddStudent struct {
	Context *middleware.Context
	Handler AddStudentHandler
}

AddStudent swagger:route POST /student addStudent

AddStudent add student API

func NewAddStudent

func NewAddStudent(ctx *middleware.Context, handler AddStudentHandler) *AddStudent

NewAddStudent creates a new http.Handler for the add student operation

func (*AddStudent) ServeHTTP

func (o *AddStudent) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type AddStudentConflict

type AddStudentConflict struct {
}

AddStudentConflict student already exists

swagger:response addStudentConflict

func NewAddStudentConflict

func NewAddStudentConflict() *AddStudentConflict

NewAddStudentConflict creates AddStudentConflict with default headers values

func (*AddStudentConflict) WriteResponse

func (o *AddStudentConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddStudentCreated

type AddStudentCreated struct {

	/*
	  In: Body
	*/
	Payload *models.Student `json:"body,omitempty"`
}

AddStudentCreated student added

swagger:response addStudentCreated

func NewAddStudentCreated

func NewAddStudentCreated() *AddStudentCreated

NewAddStudentCreated creates AddStudentCreated with default headers values

func (*AddStudentCreated) SetPayload

func (o *AddStudentCreated) SetPayload(payload *models.Student)

SetPayload sets the payload to the add student created response

func (*AddStudentCreated) WithPayload

func (o *AddStudentCreated) WithPayload(payload *models.Student) *AddStudentCreated

WithPayload adds the payload to the add student created response

func (*AddStudentCreated) WriteResponse

func (o *AddStudentCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddStudentHandler

type AddStudentHandler interface {
	Handle(AddStudentParams) middleware.Responder
}

AddStudentHandler interface for that can handle valid add student params

type AddStudentHandlerFunc

type AddStudentHandlerFunc func(AddStudentParams) middleware.Responder

AddStudentHandlerFunc turns a function with the right signature into a add student handler

func (AddStudentHandlerFunc) Handle

Handle executing the request and returning a response

type AddStudentInternalServerError

type AddStudentInternalServerError struct {
}

AddStudentInternalServerError internal server error

swagger:response addStudentInternalServerError

func NewAddStudentInternalServerError

func NewAddStudentInternalServerError() *AddStudentInternalServerError

NewAddStudentInternalServerError creates AddStudentInternalServerError with default headers values

func (*AddStudentInternalServerError) WriteResponse

func (o *AddStudentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddStudentParams

type AddStudentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*student's details
	  In: body
	*/
	Student *models.Student
}

AddStudentParams contains all the bound params for the add student operation typically these are obtained from a http.Request

swagger:parameters addStudent

func NewAddStudentParams

func NewAddStudentParams() AddStudentParams

NewAddStudentParams creates a new AddStudentParams object no default values defined in spec.

func (*AddStudentParams) BindRequest

func (o *AddStudentParams) 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 NewAddStudentParams() beforehand.

type AddStudentURL

type AddStudentURL struct {
	// contains filtered or unexported fields
}

AddStudentURL generates an URL for the add student operation

func (*AddStudentURL) Build

func (o *AddStudentURL) Build() (*url.URL, error)

Build a url path and query string

func (*AddStudentURL) BuildFull

func (o *AddStudentURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AddStudentURL) Must

func (o *AddStudentURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*AddStudentURL) SetBasePath

func (o *AddStudentURL) 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 (*AddStudentURL) String

func (o *AddStudentURL) String() string

String returns the string representation of the path with query string

func (*AddStudentURL) StringFull

func (o *AddStudentURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AddStudentURL) WithBasePath

func (o *AddStudentURL) WithBasePath(bp string) *AddStudentURL

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 AddTeacher

type AddTeacher struct {
	Context *middleware.Context
	Handler AddTeacherHandler
}

AddTeacher swagger:route POST /teacher addTeacher

AddTeacher add teacher API

func NewAddTeacher

func NewAddTeacher(ctx *middleware.Context, handler AddTeacherHandler) *AddTeacher

NewAddTeacher creates a new http.Handler for the add teacher operation

func (*AddTeacher) ServeHTTP

func (o *AddTeacher) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type AddTeacherConflict

type AddTeacherConflict struct {
}

AddTeacherConflict teacher already exists

swagger:response addTeacherConflict

func NewAddTeacherConflict

func NewAddTeacherConflict() *AddTeacherConflict

NewAddTeacherConflict creates AddTeacherConflict with default headers values

func (*AddTeacherConflict) WriteResponse

func (o *AddTeacherConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddTeacherCreated

type AddTeacherCreated struct {

	/*
	  In: Body
	*/
	Payload *models.Teacher `json:"body,omitempty"`
}

AddTeacherCreated teacher added

swagger:response addTeacherCreated

func NewAddTeacherCreated

func NewAddTeacherCreated() *AddTeacherCreated

NewAddTeacherCreated creates AddTeacherCreated with default headers values

func (*AddTeacherCreated) SetPayload

func (o *AddTeacherCreated) SetPayload(payload *models.Teacher)

SetPayload sets the payload to the add teacher created response

func (*AddTeacherCreated) WithPayload

func (o *AddTeacherCreated) WithPayload(payload *models.Teacher) *AddTeacherCreated

WithPayload adds the payload to the add teacher created response

func (*AddTeacherCreated) WriteResponse

func (o *AddTeacherCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddTeacherHandler

type AddTeacherHandler interface {
	Handle(AddTeacherParams) middleware.Responder
}

AddTeacherHandler interface for that can handle valid add teacher params

type AddTeacherHandlerFunc

type AddTeacherHandlerFunc func(AddTeacherParams) middleware.Responder

AddTeacherHandlerFunc turns a function with the right signature into a add teacher handler

func (AddTeacherHandlerFunc) Handle

Handle executing the request and returning a response

type AddTeacherInternalServerError

type AddTeacherInternalServerError struct {
}

AddTeacherInternalServerError internal server error

swagger:response addTeacherInternalServerError

func NewAddTeacherInternalServerError

func NewAddTeacherInternalServerError() *AddTeacherInternalServerError

NewAddTeacherInternalServerError creates AddTeacherInternalServerError with default headers values

func (*AddTeacherInternalServerError) WriteResponse

func (o *AddTeacherInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type AddTeacherParams

type AddTeacherParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*teacher's details
	  In: body
	*/
	Teacher *models.Teacher
}

AddTeacherParams contains all the bound params for the add teacher operation typically these are obtained from a http.Request

swagger:parameters addTeacher

func NewAddTeacherParams

func NewAddTeacherParams() AddTeacherParams

NewAddTeacherParams creates a new AddTeacherParams object no default values defined in spec.

func (*AddTeacherParams) BindRequest

func (o *AddTeacherParams) 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 NewAddTeacherParams() beforehand.

type AddTeacherURL

type AddTeacherURL struct {
	// contains filtered or unexported fields
}

AddTeacherURL generates an URL for the add teacher operation

func (*AddTeacherURL) Build

func (o *AddTeacherURL) Build() (*url.URL, error)

Build a url path and query string

func (*AddTeacherURL) BuildFull

func (o *AddTeacherURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*AddTeacherURL) Must

func (o *AddTeacherURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*AddTeacherURL) SetBasePath

func (o *AddTeacherURL) 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 (*AddTeacherURL) String

func (o *AddTeacherURL) String() string

String returns the string representation of the path with query string

func (*AddTeacherURL) StringFull

func (o *AddTeacherURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*AddTeacherURL) WithBasePath

func (o *AddTeacherURL) WithBasePath(bp string) *AddTeacherURL

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 ApnaSchoolAPI

type ApnaSchoolAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator
	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator
	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for a "application/json" mime type
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for a "application/json" mime type
	JSONProducer runtime.Producer

	// AddStudentHandler sets the operation handler for the add student operation
	AddStudentHandler AddStudentHandler
	// AddTeacherHandler sets the operation handler for the add teacher operation
	AddTeacherHandler AddTeacherHandler
	// DeleteStudentHandler sets the operation handler for the delete student operation
	DeleteStudentHandler DeleteStudentHandler
	// DeleteTeacherHandler sets the operation handler for the delete teacher operation
	DeleteTeacherHandler DeleteTeacherHandler
	// EditStudentHandler sets the operation handler for the edit student operation
	EditStudentHandler EditStudentHandler
	// EditTeacherHandler sets the operation handler for the edit teacher operation
	EditTeacherHandler EditTeacherHandler
	// GetStudentHandler sets the operation handler for the get student operation
	GetStudentHandler GetStudentHandler
	// GetTeacherHandler sets the operation handler for the get teacher operation
	GetTeacherHandler GetTeacherHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

ApnaSchoolAPI A School Management System

func NewApnaSchoolAPI

func NewApnaSchoolAPI(spec *loads.Document) *ApnaSchoolAPI

NewApnaSchoolAPI creates a new ApnaSchool instance

func (*ApnaSchoolAPI) AuthenticatorsFor

func (o *ApnaSchoolAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*ApnaSchoolAPI) Authorizer

func (o *ApnaSchoolAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*ApnaSchoolAPI) ConsumersFor

func (o *ApnaSchoolAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types

func (*ApnaSchoolAPI) Context

func (o *ApnaSchoolAPI) Context() *middleware.Context

Context returns the middleware context for the apna school API

func (*ApnaSchoolAPI) DefaultConsumes

func (o *ApnaSchoolAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*ApnaSchoolAPI) DefaultProduces

func (o *ApnaSchoolAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*ApnaSchoolAPI) Formats

func (o *ApnaSchoolAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*ApnaSchoolAPI) HandlerFor

func (o *ApnaSchoolAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*ApnaSchoolAPI) Init

func (o *ApnaSchoolAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*ApnaSchoolAPI) ProducersFor

func (o *ApnaSchoolAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types

func (*ApnaSchoolAPI) RegisterConsumer

func (o *ApnaSchoolAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*ApnaSchoolAPI) RegisterFormat

func (o *ApnaSchoolAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*ApnaSchoolAPI) RegisterProducer

func (o *ApnaSchoolAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*ApnaSchoolAPI) Serve

func (o *ApnaSchoolAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*ApnaSchoolAPI) ServeErrorFor

func (o *ApnaSchoolAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*ApnaSchoolAPI) SetDefaultConsumes

func (o *ApnaSchoolAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*ApnaSchoolAPI) SetDefaultProduces

func (o *ApnaSchoolAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*ApnaSchoolAPI) SetSpec

func (o *ApnaSchoolAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*ApnaSchoolAPI) Validate

func (o *ApnaSchoolAPI) Validate() error

Validate validates the registrations in the ApnaSchoolAPI

type DeleteStudent

type DeleteStudent struct {
	Context *middleware.Context
	Handler DeleteStudentHandler
}

DeleteStudent swagger:route DELETE /student/{ID} deleteStudent

DeleteStudent delete student API

func NewDeleteStudent

func NewDeleteStudent(ctx *middleware.Context, handler DeleteStudentHandler) *DeleteStudent

NewDeleteStudent creates a new http.Handler for the delete student operation

func (*DeleteStudent) ServeHTTP

func (o *DeleteStudent) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteStudentHandler

type DeleteStudentHandler interface {
	Handle(DeleteStudentParams) middleware.Responder
}

DeleteStudentHandler interface for that can handle valid delete student params

type DeleteStudentHandlerFunc

type DeleteStudentHandlerFunc func(DeleteStudentParams) middleware.Responder

DeleteStudentHandlerFunc turns a function with the right signature into a delete student handler

func (DeleteStudentHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteStudentInternalServerError

type DeleteStudentInternalServerError struct {
}

DeleteStudentInternalServerError internal server error

swagger:response deleteStudentInternalServerError

func NewDeleteStudentInternalServerError

func NewDeleteStudentInternalServerError() *DeleteStudentInternalServerError

NewDeleteStudentInternalServerError creates DeleteStudentInternalServerError with default headers values

func (*DeleteStudentInternalServerError) WriteResponse

func (o *DeleteStudentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteStudentNoContent

type DeleteStudentNoContent struct {
}

DeleteStudentNoContent student deleted

swagger:response deleteStudentNoContent

func NewDeleteStudentNoContent

func NewDeleteStudentNoContent() *DeleteStudentNoContent

NewDeleteStudentNoContent creates DeleteStudentNoContent with default headers values

func (*DeleteStudentNoContent) WriteResponse

func (o *DeleteStudentNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteStudentNotFound

type DeleteStudentNotFound struct {
}

DeleteStudentNotFound student not found

swagger:response deleteStudentNotFound

func NewDeleteStudentNotFound

func NewDeleteStudentNotFound() *DeleteStudentNotFound

NewDeleteStudentNotFound creates DeleteStudentNotFound with default headers values

func (*DeleteStudentNotFound) WriteResponse

func (o *DeleteStudentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteStudentParams

type DeleteStudentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*UUID of the student
	  Required: true
	  In: path
	*/
	ID string
}

DeleteStudentParams contains all the bound params for the delete student operation typically these are obtained from a http.Request

swagger:parameters deleteStudent

func NewDeleteStudentParams

func NewDeleteStudentParams() DeleteStudentParams

NewDeleteStudentParams creates a new DeleteStudentParams object no default values defined in spec.

func (*DeleteStudentParams) BindRequest

func (o *DeleteStudentParams) 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 NewDeleteStudentParams() beforehand.

type DeleteStudentURL

type DeleteStudentURL struct {
	ID string
	// contains filtered or unexported fields
}

DeleteStudentURL generates an URL for the delete student operation

func (*DeleteStudentURL) Build

func (o *DeleteStudentURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteStudentURL) BuildFull

func (o *DeleteStudentURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteStudentURL) Must

func (o *DeleteStudentURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteStudentURL) SetBasePath

func (o *DeleteStudentURL) 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 (*DeleteStudentURL) String

func (o *DeleteStudentURL) String() string

String returns the string representation of the path with query string

func (*DeleteStudentURL) StringFull

func (o *DeleteStudentURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteStudentURL) WithBasePath

func (o *DeleteStudentURL) WithBasePath(bp string) *DeleteStudentURL

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 DeleteTeacher

type DeleteTeacher struct {
	Context *middleware.Context
	Handler DeleteTeacherHandler
}

DeleteTeacher swagger:route DELETE /teacher/{ID} deleteTeacher

DeleteTeacher delete teacher API

func NewDeleteTeacher

func NewDeleteTeacher(ctx *middleware.Context, handler DeleteTeacherHandler) *DeleteTeacher

NewDeleteTeacher creates a new http.Handler for the delete teacher operation

func (*DeleteTeacher) ServeHTTP

func (o *DeleteTeacher) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteTeacherHandler

type DeleteTeacherHandler interface {
	Handle(DeleteTeacherParams) middleware.Responder
}

DeleteTeacherHandler interface for that can handle valid delete teacher params

type DeleteTeacherHandlerFunc

type DeleteTeacherHandlerFunc func(DeleteTeacherParams) middleware.Responder

DeleteTeacherHandlerFunc turns a function with the right signature into a delete teacher handler

func (DeleteTeacherHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteTeacherInternalServerError

type DeleteTeacherInternalServerError struct {
}

DeleteTeacherInternalServerError internal server error

swagger:response deleteTeacherInternalServerError

func NewDeleteTeacherInternalServerError

func NewDeleteTeacherInternalServerError() *DeleteTeacherInternalServerError

NewDeleteTeacherInternalServerError creates DeleteTeacherInternalServerError with default headers values

func (*DeleteTeacherInternalServerError) WriteResponse

func (o *DeleteTeacherInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteTeacherNoContent

type DeleteTeacherNoContent struct {
}

DeleteTeacherNoContent teacher deleted

swagger:response deleteTeacherNoContent

func NewDeleteTeacherNoContent

func NewDeleteTeacherNoContent() *DeleteTeacherNoContent

NewDeleteTeacherNoContent creates DeleteTeacherNoContent with default headers values

func (*DeleteTeacherNoContent) WriteResponse

func (o *DeleteTeacherNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteTeacherNotFound

type DeleteTeacherNotFound struct {
}

DeleteTeacherNotFound teacher not found

swagger:response deleteTeacherNotFound

func NewDeleteTeacherNotFound

func NewDeleteTeacherNotFound() *DeleteTeacherNotFound

NewDeleteTeacherNotFound creates DeleteTeacherNotFound with default headers values

func (*DeleteTeacherNotFound) WriteResponse

func (o *DeleteTeacherNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteTeacherParams

type DeleteTeacherParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*UUID of the teacher
	  Required: true
	  In: path
	*/
	ID string
}

DeleteTeacherParams contains all the bound params for the delete teacher operation typically these are obtained from a http.Request

swagger:parameters deleteTeacher

func NewDeleteTeacherParams

func NewDeleteTeacherParams() DeleteTeacherParams

NewDeleteTeacherParams creates a new DeleteTeacherParams object no default values defined in spec.

func (*DeleteTeacherParams) BindRequest

func (o *DeleteTeacherParams) 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 NewDeleteTeacherParams() beforehand.

type DeleteTeacherURL

type DeleteTeacherURL struct {
	ID string
	// contains filtered or unexported fields
}

DeleteTeacherURL generates an URL for the delete teacher operation

func (*DeleteTeacherURL) Build

func (o *DeleteTeacherURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteTeacherURL) BuildFull

func (o *DeleteTeacherURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteTeacherURL) Must

func (o *DeleteTeacherURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteTeacherURL) SetBasePath

func (o *DeleteTeacherURL) 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 (*DeleteTeacherURL) String

func (o *DeleteTeacherURL) String() string

String returns the string representation of the path with query string

func (*DeleteTeacherURL) StringFull

func (o *DeleteTeacherURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteTeacherURL) WithBasePath

func (o *DeleteTeacherURL) WithBasePath(bp string) *DeleteTeacherURL

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 EditStudent

type EditStudent struct {
	Context *middleware.Context
	Handler EditStudentHandler
}

EditStudent swagger:route PUT /student/{ID} editStudent

EditStudent edit student API

func NewEditStudent

func NewEditStudent(ctx *middleware.Context, handler EditStudentHandler) *EditStudent

NewEditStudent creates a new http.Handler for the edit student operation

func (*EditStudent) ServeHTTP

func (o *EditStudent) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type EditStudentHandler

type EditStudentHandler interface {
	Handle(EditStudentParams) middleware.Responder
}

EditStudentHandler interface for that can handle valid edit student params

type EditStudentHandlerFunc

type EditStudentHandlerFunc func(EditStudentParams) middleware.Responder

EditStudentHandlerFunc turns a function with the right signature into a edit student handler

func (EditStudentHandlerFunc) Handle

Handle executing the request and returning a response

type EditStudentInternalServerError

type EditStudentInternalServerError struct {
}

EditStudentInternalServerError internal server error

swagger:response editStudentInternalServerError

func NewEditStudentInternalServerError

func NewEditStudentInternalServerError() *EditStudentInternalServerError

NewEditStudentInternalServerError creates EditStudentInternalServerError with default headers values

func (*EditStudentInternalServerError) WriteResponse

func (o *EditStudentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type EditStudentOK

type EditStudentOK struct {

	/*
	  In: Body
	*/
	Payload *models.Student `json:"body,omitempty"`
}

EditStudentOK student updated

swagger:response editStudentOK

func NewEditStudentOK

func NewEditStudentOK() *EditStudentOK

NewEditStudentOK creates EditStudentOK with default headers values

func (*EditStudentOK) SetPayload

func (o *EditStudentOK) SetPayload(payload *models.Student)

SetPayload sets the payload to the edit student o k response

func (*EditStudentOK) WithPayload

func (o *EditStudentOK) WithPayload(payload *models.Student) *EditStudentOK

WithPayload adds the payload to the edit student o k response

func (*EditStudentOK) WriteResponse

func (o *EditStudentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type EditStudentParams

type EditStudentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*UUID of the student
	  Required: true
	  In: path
	*/
	ID string
}

EditStudentParams contains all the bound params for the edit student operation typically these are obtained from a http.Request

swagger:parameters editStudent

func NewEditStudentParams

func NewEditStudentParams() EditStudentParams

NewEditStudentParams creates a new EditStudentParams object no default values defined in spec.

func (*EditStudentParams) BindRequest

func (o *EditStudentParams) 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 NewEditStudentParams() beforehand.

type EditStudentURL

type EditStudentURL struct {
	ID string
	// contains filtered or unexported fields
}

EditStudentURL generates an URL for the edit student operation

func (*EditStudentURL) Build

func (o *EditStudentURL) Build() (*url.URL, error)

Build a url path and query string

func (*EditStudentURL) BuildFull

func (o *EditStudentURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*EditStudentURL) Must

func (o *EditStudentURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*EditStudentURL) SetBasePath

func (o *EditStudentURL) 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 (*EditStudentURL) String

func (o *EditStudentURL) String() string

String returns the string representation of the path with query string

func (*EditStudentURL) StringFull

func (o *EditStudentURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*EditStudentURL) WithBasePath

func (o *EditStudentURL) WithBasePath(bp string) *EditStudentURL

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 EditTeacher

type EditTeacher struct {
	Context *middleware.Context
	Handler EditTeacherHandler
}

EditTeacher swagger:route PUT /teacher/{ID} editTeacher

EditTeacher edit teacher API

func NewEditTeacher

func NewEditTeacher(ctx *middleware.Context, handler EditTeacherHandler) *EditTeacher

NewEditTeacher creates a new http.Handler for the edit teacher operation

func (*EditTeacher) ServeHTTP

func (o *EditTeacher) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type EditTeacherHandler

type EditTeacherHandler interface {
	Handle(EditTeacherParams) middleware.Responder
}

EditTeacherHandler interface for that can handle valid edit teacher params

type EditTeacherHandlerFunc

type EditTeacherHandlerFunc func(EditTeacherParams) middleware.Responder

EditTeacherHandlerFunc turns a function with the right signature into a edit teacher handler

func (EditTeacherHandlerFunc) Handle

Handle executing the request and returning a response

type EditTeacherInternalServerError

type EditTeacherInternalServerError struct {
}

EditTeacherInternalServerError internal server error

swagger:response editTeacherInternalServerError

func NewEditTeacherInternalServerError

func NewEditTeacherInternalServerError() *EditTeacherInternalServerError

NewEditTeacherInternalServerError creates EditTeacherInternalServerError with default headers values

func (*EditTeacherInternalServerError) WriteResponse

func (o *EditTeacherInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type EditTeacherOK

type EditTeacherOK struct {

	/*
	  In: Body
	*/
	Payload *models.Teacher `json:"body,omitempty"`
}

EditTeacherOK teacher updated

swagger:response editTeacherOK

func NewEditTeacherOK

func NewEditTeacherOK() *EditTeacherOK

NewEditTeacherOK creates EditTeacherOK with default headers values

func (*EditTeacherOK) SetPayload

func (o *EditTeacherOK) SetPayload(payload *models.Teacher)

SetPayload sets the payload to the edit teacher o k response

func (*EditTeacherOK) WithPayload

func (o *EditTeacherOK) WithPayload(payload *models.Teacher) *EditTeacherOK

WithPayload adds the payload to the edit teacher o k response

func (*EditTeacherOK) WriteResponse

func (o *EditTeacherOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type EditTeacherParams

type EditTeacherParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*UUID of the teacher
	  Required: true
	  In: path
	*/
	ID string
}

EditTeacherParams contains all the bound params for the edit teacher operation typically these are obtained from a http.Request

swagger:parameters editTeacher

func NewEditTeacherParams

func NewEditTeacherParams() EditTeacherParams

NewEditTeacherParams creates a new EditTeacherParams object no default values defined in spec.

func (*EditTeacherParams) BindRequest

func (o *EditTeacherParams) 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 NewEditTeacherParams() beforehand.

type EditTeacherURL

type EditTeacherURL struct {
	ID string
	// contains filtered or unexported fields
}

EditTeacherURL generates an URL for the edit teacher operation

func (*EditTeacherURL) Build

func (o *EditTeacherURL) Build() (*url.URL, error)

Build a url path and query string

func (*EditTeacherURL) BuildFull

func (o *EditTeacherURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*EditTeacherURL) Must

func (o *EditTeacherURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*EditTeacherURL) SetBasePath

func (o *EditTeacherURL) 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 (*EditTeacherURL) String

func (o *EditTeacherURL) String() string

String returns the string representation of the path with query string

func (*EditTeacherURL) StringFull

func (o *EditTeacherURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*EditTeacherURL) WithBasePath

func (o *EditTeacherURL) WithBasePath(bp string) *EditTeacherURL

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 GetStudent

type GetStudent struct {
	Context *middleware.Context
	Handler GetStudentHandler
}

GetStudent swagger:route GET /student/{ID} getStudent

return student based on UUID

func NewGetStudent

func NewGetStudent(ctx *middleware.Context, handler GetStudentHandler) *GetStudent

NewGetStudent creates a new http.Handler for the get student operation

func (*GetStudent) ServeHTTP

func (o *GetStudent) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetStudentHandler

type GetStudentHandler interface {
	Handle(GetStudentParams) middleware.Responder
}

GetStudentHandler interface for that can handle valid get student params

type GetStudentHandlerFunc

type GetStudentHandlerFunc func(GetStudentParams) middleware.Responder

GetStudentHandlerFunc turns a function with the right signature into a get student handler

func (GetStudentHandlerFunc) Handle

Handle executing the request and returning a response

type GetStudentInternalServerError

type GetStudentInternalServerError struct {
}

GetStudentInternalServerError internal server error

swagger:response getStudentInternalServerError

func NewGetStudentInternalServerError

func NewGetStudentInternalServerError() *GetStudentInternalServerError

NewGetStudentInternalServerError creates GetStudentInternalServerError with default headers values

func (*GetStudentInternalServerError) WriteResponse

func (o *GetStudentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetStudentNotFound

type GetStudentNotFound struct {
}

GetStudentNotFound student not found

swagger:response getStudentNotFound

func NewGetStudentNotFound

func NewGetStudentNotFound() *GetStudentNotFound

NewGetStudentNotFound creates GetStudentNotFound with default headers values

func (*GetStudentNotFound) WriteResponse

func (o *GetStudentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetStudentOK

type GetStudentOK struct {

	/*
	  In: Body
	*/
	Payload *models.Student `json:"body,omitempty"`
}

GetStudentOK student response

swagger:response getStudentOK

func NewGetStudentOK

func NewGetStudentOK() *GetStudentOK

NewGetStudentOK creates GetStudentOK with default headers values

func (*GetStudentOK) SetPayload

func (o *GetStudentOK) SetPayload(payload *models.Student)

SetPayload sets the payload to the get student o k response

func (*GetStudentOK) WithPayload

func (o *GetStudentOK) WithPayload(payload *models.Student) *GetStudentOK

WithPayload adds the payload to the get student o k response

func (*GetStudentOK) WriteResponse

func (o *GetStudentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetStudentParams

type GetStudentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*UUID of the student
	  Required: true
	  In: path
	*/
	ID string
}

GetStudentParams contains all the bound params for the get student operation typically these are obtained from a http.Request

swagger:parameters getStudent

func NewGetStudentParams

func NewGetStudentParams() GetStudentParams

NewGetStudentParams creates a new GetStudentParams object no default values defined in spec.

func (*GetStudentParams) BindRequest

func (o *GetStudentParams) 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 NewGetStudentParams() beforehand.

type GetStudentURL

type GetStudentURL struct {
	ID string
	// contains filtered or unexported fields
}

GetStudentURL generates an URL for the get student operation

func (*GetStudentURL) Build

func (o *GetStudentURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetStudentURL) BuildFull

func (o *GetStudentURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetStudentURL) Must

func (o *GetStudentURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetStudentURL) SetBasePath

func (o *GetStudentURL) 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 (*GetStudentURL) String

func (o *GetStudentURL) String() string

String returns the string representation of the path with query string

func (*GetStudentURL) StringFull

func (o *GetStudentURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetStudentURL) WithBasePath

func (o *GetStudentURL) WithBasePath(bp string) *GetStudentURL

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 GetTeacher

type GetTeacher struct {
	Context *middleware.Context
	Handler GetTeacherHandler
}

GetTeacher swagger:route GET /teacher/{ID} getTeacher

return teacher based on UUID

func NewGetTeacher

func NewGetTeacher(ctx *middleware.Context, handler GetTeacherHandler) *GetTeacher

NewGetTeacher creates a new http.Handler for the get teacher operation

func (*GetTeacher) ServeHTTP

func (o *GetTeacher) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetTeacherHandler

type GetTeacherHandler interface {
	Handle(GetTeacherParams) middleware.Responder
}

GetTeacherHandler interface for that can handle valid get teacher params

type GetTeacherHandlerFunc

type GetTeacherHandlerFunc func(GetTeacherParams) middleware.Responder

GetTeacherHandlerFunc turns a function with the right signature into a get teacher handler

func (GetTeacherHandlerFunc) Handle

Handle executing the request and returning a response

type GetTeacherInternalServerError

type GetTeacherInternalServerError struct {
}

GetTeacherInternalServerError internal server error

swagger:response getTeacherInternalServerError

func NewGetTeacherInternalServerError

func NewGetTeacherInternalServerError() *GetTeacherInternalServerError

NewGetTeacherInternalServerError creates GetTeacherInternalServerError with default headers values

func (*GetTeacherInternalServerError) WriteResponse

func (o *GetTeacherInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTeacherNotFound

type GetTeacherNotFound struct {
}

GetTeacherNotFound teacher not found

swagger:response getTeacherNotFound

func NewGetTeacherNotFound

func NewGetTeacherNotFound() *GetTeacherNotFound

NewGetTeacherNotFound creates GetTeacherNotFound with default headers values

func (*GetTeacherNotFound) WriteResponse

func (o *GetTeacherNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTeacherOK

type GetTeacherOK struct {

	/*
	  In: Body
	*/
	Payload *models.Teacher `json:"body,omitempty"`
}

GetTeacherOK teacher response

swagger:response getTeacherOK

func NewGetTeacherOK

func NewGetTeacherOK() *GetTeacherOK

NewGetTeacherOK creates GetTeacherOK with default headers values

func (*GetTeacherOK) SetPayload

func (o *GetTeacherOK) SetPayload(payload *models.Teacher)

SetPayload sets the payload to the get teacher o k response

func (*GetTeacherOK) WithPayload

func (o *GetTeacherOK) WithPayload(payload *models.Teacher) *GetTeacherOK

WithPayload adds the payload to the get teacher o k response

func (*GetTeacherOK) WriteResponse

func (o *GetTeacherOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTeacherParams

type GetTeacherParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*UUID of the teacher
	  Required: true
	  In: path
	*/
	ID string
}

GetTeacherParams contains all the bound params for the get teacher operation typically these are obtained from a http.Request

swagger:parameters getTeacher

func NewGetTeacherParams

func NewGetTeacherParams() GetTeacherParams

NewGetTeacherParams creates a new GetTeacherParams object no default values defined in spec.

func (*GetTeacherParams) BindRequest

func (o *GetTeacherParams) 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 NewGetTeacherParams() beforehand.

type GetTeacherURL

type GetTeacherURL struct {
	ID string
	// contains filtered or unexported fields
}

GetTeacherURL generates an URL for the get teacher operation

func (*GetTeacherURL) Build

func (o *GetTeacherURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetTeacherURL) BuildFull

func (o *GetTeacherURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetTeacherURL) Must

func (o *GetTeacherURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetTeacherURL) SetBasePath

func (o *GetTeacherURL) 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 (*GetTeacherURL) String

func (o *GetTeacherURL) String() string

String returns the string representation of the path with query string

func (*GetTeacherURL) StringFull

func (o *GetTeacherURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetTeacherURL) WithBasePath

func (o *GetTeacherURL) WithBasePath(bp string) *GetTeacherURL

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL