Documentation
¶
Index ¶
- type AddStudentConflict
- type AddStudentCreated
- type AddStudentInternalServerError
- type AddStudentParams
- func (o *AddStudentParams) SetContext(ctx context.Context)
- func (o *AddStudentParams) SetHTTPClient(client *http.Client)
- func (o *AddStudentParams) SetStudent(student *models.Student)
- func (o *AddStudentParams) SetTimeout(timeout time.Duration)
- func (o *AddStudentParams) WithContext(ctx context.Context) *AddStudentParams
- func (o *AddStudentParams) WithHTTPClient(client *http.Client) *AddStudentParams
- func (o *AddStudentParams) WithStudent(student *models.Student) *AddStudentParams
- func (o *AddStudentParams) WithTimeout(timeout time.Duration) *AddStudentParams
- func (o *AddStudentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddStudentReader
- type AddTeacherConflict
- type AddTeacherCreated
- type AddTeacherInternalServerError
- type AddTeacherParams
- func (o *AddTeacherParams) SetContext(ctx context.Context)
- func (o *AddTeacherParams) SetHTTPClient(client *http.Client)
- func (o *AddTeacherParams) SetTeacher(teacher *models.Teacher)
- func (o *AddTeacherParams) SetTimeout(timeout time.Duration)
- func (o *AddTeacherParams) WithContext(ctx context.Context) *AddTeacherParams
- func (o *AddTeacherParams) WithHTTPClient(client *http.Client) *AddTeacherParams
- func (o *AddTeacherParams) WithTeacher(teacher *models.Teacher) *AddTeacherParams
- func (o *AddTeacherParams) WithTimeout(timeout time.Duration) *AddTeacherParams
- func (o *AddTeacherParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddTeacherReader
- type Client
- func (a *Client) AddStudent(params *AddStudentParams) (*AddStudentCreated, error)
- func (a *Client) AddTeacher(params *AddTeacherParams) (*AddTeacherCreated, error)
- func (a *Client) DeleteStudent(params *DeleteStudentParams) (*DeleteStudentNoContent, error)
- func (a *Client) DeleteTeacher(params *DeleteTeacherParams) (*DeleteTeacherNoContent, error)
- func (a *Client) EditStudent(params *EditStudentParams) (*EditStudentOK, error)
- func (a *Client) EditTeacher(params *EditTeacherParams) (*EditTeacherOK, error)
- func (a *Client) GetStudent(params *GetStudentParams) (*GetStudentOK, error)
- func (a *Client) GetTeacher(params *GetTeacherParams) (*GetTeacherOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type DeleteStudentInternalServerError
- type DeleteStudentNoContent
- type DeleteStudentNotFound
- type DeleteStudentParams
- func (o *DeleteStudentParams) SetContext(ctx context.Context)
- func (o *DeleteStudentParams) SetHTTPClient(client *http.Client)
- func (o *DeleteStudentParams) SetID(id string)
- func (o *DeleteStudentParams) SetTimeout(timeout time.Duration)
- func (o *DeleteStudentParams) WithContext(ctx context.Context) *DeleteStudentParams
- func (o *DeleteStudentParams) WithHTTPClient(client *http.Client) *DeleteStudentParams
- func (o *DeleteStudentParams) WithID(id string) *DeleteStudentParams
- func (o *DeleteStudentParams) WithTimeout(timeout time.Duration) *DeleteStudentParams
- func (o *DeleteStudentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteStudentReader
- type DeleteTeacherInternalServerError
- type DeleteTeacherNoContent
- type DeleteTeacherNotFound
- type DeleteTeacherParams
- func (o *DeleteTeacherParams) SetContext(ctx context.Context)
- func (o *DeleteTeacherParams) SetHTTPClient(client *http.Client)
- func (o *DeleteTeacherParams) SetID(id string)
- func (o *DeleteTeacherParams) SetTimeout(timeout time.Duration)
- func (o *DeleteTeacherParams) WithContext(ctx context.Context) *DeleteTeacherParams
- func (o *DeleteTeacherParams) WithHTTPClient(client *http.Client) *DeleteTeacherParams
- func (o *DeleteTeacherParams) WithID(id string) *DeleteTeacherParams
- func (o *DeleteTeacherParams) WithTimeout(timeout time.Duration) *DeleteTeacherParams
- func (o *DeleteTeacherParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteTeacherReader
- type EditStudentInternalServerError
- type EditStudentOK
- type EditStudentParams
- func (o *EditStudentParams) SetContext(ctx context.Context)
- func (o *EditStudentParams) SetHTTPClient(client *http.Client)
- func (o *EditStudentParams) SetID(id string)
- func (o *EditStudentParams) SetTimeout(timeout time.Duration)
- func (o *EditStudentParams) WithContext(ctx context.Context) *EditStudentParams
- func (o *EditStudentParams) WithHTTPClient(client *http.Client) *EditStudentParams
- func (o *EditStudentParams) WithID(id string) *EditStudentParams
- func (o *EditStudentParams) WithTimeout(timeout time.Duration) *EditStudentParams
- func (o *EditStudentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EditStudentReader
- type EditTeacherInternalServerError
- type EditTeacherOK
- type EditTeacherParams
- func (o *EditTeacherParams) SetContext(ctx context.Context)
- func (o *EditTeacherParams) SetHTTPClient(client *http.Client)
- func (o *EditTeacherParams) SetID(id string)
- func (o *EditTeacherParams) SetTimeout(timeout time.Duration)
- func (o *EditTeacherParams) WithContext(ctx context.Context) *EditTeacherParams
- func (o *EditTeacherParams) WithHTTPClient(client *http.Client) *EditTeacherParams
- func (o *EditTeacherParams) WithID(id string) *EditTeacherParams
- func (o *EditTeacherParams) WithTimeout(timeout time.Duration) *EditTeacherParams
- func (o *EditTeacherParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EditTeacherReader
- type GetStudentInternalServerError
- type GetStudentNotFound
- type GetStudentOK
- type GetStudentParams
- func (o *GetStudentParams) SetContext(ctx context.Context)
- func (o *GetStudentParams) SetHTTPClient(client *http.Client)
- func (o *GetStudentParams) SetID(id string)
- func (o *GetStudentParams) SetTimeout(timeout time.Duration)
- func (o *GetStudentParams) WithContext(ctx context.Context) *GetStudentParams
- func (o *GetStudentParams) WithHTTPClient(client *http.Client) *GetStudentParams
- func (o *GetStudentParams) WithID(id string) *GetStudentParams
- func (o *GetStudentParams) WithTimeout(timeout time.Duration) *GetStudentParams
- func (o *GetStudentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStudentReader
- type GetTeacherInternalServerError
- type GetTeacherNotFound
- type GetTeacherOK
- type GetTeacherParams
- func (o *GetTeacherParams) SetContext(ctx context.Context)
- func (o *GetTeacherParams) SetHTTPClient(client *http.Client)
- func (o *GetTeacherParams) SetID(id string)
- func (o *GetTeacherParams) SetTimeout(timeout time.Duration)
- func (o *GetTeacherParams) WithContext(ctx context.Context) *GetTeacherParams
- func (o *GetTeacherParams) WithHTTPClient(client *http.Client) *GetTeacherParams
- func (o *GetTeacherParams) WithID(id string) *GetTeacherParams
- func (o *GetTeacherParams) WithTimeout(timeout time.Duration) *GetTeacherParams
- func (o *GetTeacherParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTeacherReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddStudentConflict ¶
type AddStudentConflict struct { }
AddStudentConflict handles this case with default header values.
student already exists
func NewAddStudentConflict ¶
func NewAddStudentConflict() *AddStudentConflict
NewAddStudentConflict creates a AddStudentConflict with default headers values
func (*AddStudentConflict) Error ¶
func (o *AddStudentConflict) Error() string
type AddStudentCreated ¶
AddStudentCreated handles this case with default header values.
student added
func NewAddStudentCreated ¶
func NewAddStudentCreated() *AddStudentCreated
NewAddStudentCreated creates a AddStudentCreated with default headers values
func (*AddStudentCreated) Error ¶
func (o *AddStudentCreated) Error() string
func (*AddStudentCreated) GetPayload ¶
func (o *AddStudentCreated) GetPayload() *models.Student
type AddStudentInternalServerError ¶
type AddStudentInternalServerError struct { }
AddStudentInternalServerError handles this case with default header values.
internal server error
func NewAddStudentInternalServerError ¶
func NewAddStudentInternalServerError() *AddStudentInternalServerError
NewAddStudentInternalServerError creates a AddStudentInternalServerError with default headers values
func (*AddStudentInternalServerError) Error ¶
func (o *AddStudentInternalServerError) Error() string
type AddStudentParams ¶
type AddStudentParams struct { /*Student student's details */ Student *models.Student Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddStudentParams contains all the parameters to send to the API endpoint for the add student operation typically these are written to a http.Request
func NewAddStudentParams ¶
func NewAddStudentParams() *AddStudentParams
NewAddStudentParams creates a new AddStudentParams object with the default values initialized.
func NewAddStudentParamsWithContext ¶
func NewAddStudentParamsWithContext(ctx context.Context) *AddStudentParams
NewAddStudentParamsWithContext creates a new AddStudentParams object with the default values initialized, and the ability to set a context for a request
func NewAddStudentParamsWithHTTPClient ¶
func NewAddStudentParamsWithHTTPClient(client *http.Client) *AddStudentParams
NewAddStudentParamsWithHTTPClient creates a new AddStudentParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddStudentParamsWithTimeout ¶
func NewAddStudentParamsWithTimeout(timeout time.Duration) *AddStudentParams
NewAddStudentParamsWithTimeout creates a new AddStudentParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddStudentParams) SetContext ¶
func (o *AddStudentParams) SetContext(ctx context.Context)
SetContext adds the context to the add student params
func (*AddStudentParams) SetHTTPClient ¶
func (o *AddStudentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add student params
func (*AddStudentParams) SetStudent ¶
func (o *AddStudentParams) SetStudent(student *models.Student)
SetStudent adds the student to the add student params
func (*AddStudentParams) SetTimeout ¶
func (o *AddStudentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add student params
func (*AddStudentParams) WithContext ¶
func (o *AddStudentParams) WithContext(ctx context.Context) *AddStudentParams
WithContext adds the context to the add student params
func (*AddStudentParams) WithHTTPClient ¶
func (o *AddStudentParams) WithHTTPClient(client *http.Client) *AddStudentParams
WithHTTPClient adds the HTTPClient to the add student params
func (*AddStudentParams) WithStudent ¶
func (o *AddStudentParams) WithStudent(student *models.Student) *AddStudentParams
WithStudent adds the student to the add student params
func (*AddStudentParams) WithTimeout ¶
func (o *AddStudentParams) WithTimeout(timeout time.Duration) *AddStudentParams
WithTimeout adds the timeout to the add student params
func (*AddStudentParams) WriteToRequest ¶
func (o *AddStudentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddStudentReader ¶
type AddStudentReader struct {
// contains filtered or unexported fields
}
AddStudentReader is a Reader for the AddStudent structure.
func (*AddStudentReader) ReadResponse ¶
func (o *AddStudentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddTeacherConflict ¶
type AddTeacherConflict struct { }
AddTeacherConflict handles this case with default header values.
teacher already exists
func NewAddTeacherConflict ¶
func NewAddTeacherConflict() *AddTeacherConflict
NewAddTeacherConflict creates a AddTeacherConflict with default headers values
func (*AddTeacherConflict) Error ¶
func (o *AddTeacherConflict) Error() string
type AddTeacherCreated ¶
AddTeacherCreated handles this case with default header values.
teacher added
func NewAddTeacherCreated ¶
func NewAddTeacherCreated() *AddTeacherCreated
NewAddTeacherCreated creates a AddTeacherCreated with default headers values
func (*AddTeacherCreated) Error ¶
func (o *AddTeacherCreated) Error() string
func (*AddTeacherCreated) GetPayload ¶
func (o *AddTeacherCreated) GetPayload() *models.Teacher
type AddTeacherInternalServerError ¶
type AddTeacherInternalServerError struct { }
AddTeacherInternalServerError handles this case with default header values.
internal server error
func NewAddTeacherInternalServerError ¶
func NewAddTeacherInternalServerError() *AddTeacherInternalServerError
NewAddTeacherInternalServerError creates a AddTeacherInternalServerError with default headers values
func (*AddTeacherInternalServerError) Error ¶
func (o *AddTeacherInternalServerError) Error() string
type AddTeacherParams ¶
type AddTeacherParams struct { /*Teacher teacher's details */ Teacher *models.Teacher Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddTeacherParams contains all the parameters to send to the API endpoint for the add teacher operation typically these are written to a http.Request
func NewAddTeacherParams ¶
func NewAddTeacherParams() *AddTeacherParams
NewAddTeacherParams creates a new AddTeacherParams object with the default values initialized.
func NewAddTeacherParamsWithContext ¶
func NewAddTeacherParamsWithContext(ctx context.Context) *AddTeacherParams
NewAddTeacherParamsWithContext creates a new AddTeacherParams object with the default values initialized, and the ability to set a context for a request
func NewAddTeacherParamsWithHTTPClient ¶
func NewAddTeacherParamsWithHTTPClient(client *http.Client) *AddTeacherParams
NewAddTeacherParamsWithHTTPClient creates a new AddTeacherParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddTeacherParamsWithTimeout ¶
func NewAddTeacherParamsWithTimeout(timeout time.Duration) *AddTeacherParams
NewAddTeacherParamsWithTimeout creates a new AddTeacherParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddTeacherParams) SetContext ¶
func (o *AddTeacherParams) SetContext(ctx context.Context)
SetContext adds the context to the add teacher params
func (*AddTeacherParams) SetHTTPClient ¶
func (o *AddTeacherParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add teacher params
func (*AddTeacherParams) SetTeacher ¶
func (o *AddTeacherParams) SetTeacher(teacher *models.Teacher)
SetTeacher adds the teacher to the add teacher params
func (*AddTeacherParams) SetTimeout ¶
func (o *AddTeacherParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add teacher params
func (*AddTeacherParams) WithContext ¶
func (o *AddTeacherParams) WithContext(ctx context.Context) *AddTeacherParams
WithContext adds the context to the add teacher params
func (*AddTeacherParams) WithHTTPClient ¶
func (o *AddTeacherParams) WithHTTPClient(client *http.Client) *AddTeacherParams
WithHTTPClient adds the HTTPClient to the add teacher params
func (*AddTeacherParams) WithTeacher ¶
func (o *AddTeacherParams) WithTeacher(teacher *models.Teacher) *AddTeacherParams
WithTeacher adds the teacher to the add teacher params
func (*AddTeacherParams) WithTimeout ¶
func (o *AddTeacherParams) WithTimeout(timeout time.Duration) *AddTeacherParams
WithTimeout adds the timeout to the add teacher params
func (*AddTeacherParams) WriteToRequest ¶
func (o *AddTeacherParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddTeacherReader ¶
type AddTeacherReader struct {
// contains filtered or unexported fields
}
AddTeacherReader is a Reader for the AddTeacher structure.
func (*AddTeacherReader) ReadResponse ¶
func (o *AddTeacherReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for operations API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new operations API client.
func (*Client) AddStudent ¶
func (a *Client) AddStudent(params *AddStudentParams) (*AddStudentCreated, error)
AddStudent add student API
func (*Client) AddTeacher ¶
func (a *Client) AddTeacher(params *AddTeacherParams) (*AddTeacherCreated, error)
AddTeacher add teacher API
func (*Client) DeleteStudent ¶
func (a *Client) DeleteStudent(params *DeleteStudentParams) (*DeleteStudentNoContent, error)
DeleteStudent delete student API
func (*Client) DeleteTeacher ¶
func (a *Client) DeleteTeacher(params *DeleteTeacherParams) (*DeleteTeacherNoContent, error)
DeleteTeacher delete teacher API
func (*Client) EditStudent ¶
func (a *Client) EditStudent(params *EditStudentParams) (*EditStudentOK, error)
EditStudent edit student API
func (*Client) EditTeacher ¶
func (a *Client) EditTeacher(params *EditTeacherParams) (*EditTeacherOK, error)
EditTeacher edit teacher API
func (*Client) GetStudent ¶
func (a *Client) GetStudent(params *GetStudentParams) (*GetStudentOK, error)
GetStudent return student based on UUID
func (*Client) GetTeacher ¶
func (a *Client) GetTeacher(params *GetTeacherParams) (*GetTeacherOK, error)
GetTeacher return teacher based on UUID
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type DeleteStudentInternalServerError ¶
type DeleteStudentInternalServerError struct { }
DeleteStudentInternalServerError handles this case with default header values.
internal server error
func NewDeleteStudentInternalServerError ¶
func NewDeleteStudentInternalServerError() *DeleteStudentInternalServerError
NewDeleteStudentInternalServerError creates a DeleteStudentInternalServerError with default headers values
func (*DeleteStudentInternalServerError) Error ¶
func (o *DeleteStudentInternalServerError) Error() string
type DeleteStudentNoContent ¶
type DeleteStudentNoContent struct { }
DeleteStudentNoContent handles this case with default header values.
student deleted
func NewDeleteStudentNoContent ¶
func NewDeleteStudentNoContent() *DeleteStudentNoContent
NewDeleteStudentNoContent creates a DeleteStudentNoContent with default headers values
func (*DeleteStudentNoContent) Error ¶
func (o *DeleteStudentNoContent) Error() string
type DeleteStudentNotFound ¶
type DeleteStudentNotFound struct { }
DeleteStudentNotFound handles this case with default header values.
student not found
func NewDeleteStudentNotFound ¶
func NewDeleteStudentNotFound() *DeleteStudentNotFound
NewDeleteStudentNotFound creates a DeleteStudentNotFound with default headers values
func (*DeleteStudentNotFound) Error ¶
func (o *DeleteStudentNotFound) Error() string
type DeleteStudentParams ¶
type DeleteStudentParams struct { /*ID UUID of the student */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteStudentParams contains all the parameters to send to the API endpoint for the delete student operation typically these are written to a http.Request
func NewDeleteStudentParams ¶
func NewDeleteStudentParams() *DeleteStudentParams
NewDeleteStudentParams creates a new DeleteStudentParams object with the default values initialized.
func NewDeleteStudentParamsWithContext ¶
func NewDeleteStudentParamsWithContext(ctx context.Context) *DeleteStudentParams
NewDeleteStudentParamsWithContext creates a new DeleteStudentParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteStudentParamsWithHTTPClient ¶
func NewDeleteStudentParamsWithHTTPClient(client *http.Client) *DeleteStudentParams
NewDeleteStudentParamsWithHTTPClient creates a new DeleteStudentParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteStudentParamsWithTimeout ¶
func NewDeleteStudentParamsWithTimeout(timeout time.Duration) *DeleteStudentParams
NewDeleteStudentParamsWithTimeout creates a new DeleteStudentParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteStudentParams) SetContext ¶
func (o *DeleteStudentParams) SetContext(ctx context.Context)
SetContext adds the context to the delete student params
func (*DeleteStudentParams) SetHTTPClient ¶
func (o *DeleteStudentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete student params
func (*DeleteStudentParams) SetID ¶
func (o *DeleteStudentParams) SetID(id string)
SetID adds the id to the delete student params
func (*DeleteStudentParams) SetTimeout ¶
func (o *DeleteStudentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete student params
func (*DeleteStudentParams) WithContext ¶
func (o *DeleteStudentParams) WithContext(ctx context.Context) *DeleteStudentParams
WithContext adds the context to the delete student params
func (*DeleteStudentParams) WithHTTPClient ¶
func (o *DeleteStudentParams) WithHTTPClient(client *http.Client) *DeleteStudentParams
WithHTTPClient adds the HTTPClient to the delete student params
func (*DeleteStudentParams) WithID ¶
func (o *DeleteStudentParams) WithID(id string) *DeleteStudentParams
WithID adds the id to the delete student params
func (*DeleteStudentParams) WithTimeout ¶
func (o *DeleteStudentParams) WithTimeout(timeout time.Duration) *DeleteStudentParams
WithTimeout adds the timeout to the delete student params
func (*DeleteStudentParams) WriteToRequest ¶
func (o *DeleteStudentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteStudentReader ¶
type DeleteStudentReader struct {
// contains filtered or unexported fields
}
DeleteStudentReader is a Reader for the DeleteStudent structure.
func (*DeleteStudentReader) ReadResponse ¶
func (o *DeleteStudentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteTeacherInternalServerError ¶
type DeleteTeacherInternalServerError struct { }
DeleteTeacherInternalServerError handles this case with default header values.
internal server error
func NewDeleteTeacherInternalServerError ¶
func NewDeleteTeacherInternalServerError() *DeleteTeacherInternalServerError
NewDeleteTeacherInternalServerError creates a DeleteTeacherInternalServerError with default headers values
func (*DeleteTeacherInternalServerError) Error ¶
func (o *DeleteTeacherInternalServerError) Error() string
type DeleteTeacherNoContent ¶
type DeleteTeacherNoContent struct { }
DeleteTeacherNoContent handles this case with default header values.
teacher deleted
func NewDeleteTeacherNoContent ¶
func NewDeleteTeacherNoContent() *DeleteTeacherNoContent
NewDeleteTeacherNoContent creates a DeleteTeacherNoContent with default headers values
func (*DeleteTeacherNoContent) Error ¶
func (o *DeleteTeacherNoContent) Error() string
type DeleteTeacherNotFound ¶
type DeleteTeacherNotFound struct { }
DeleteTeacherNotFound handles this case with default header values.
teacher not found
func NewDeleteTeacherNotFound ¶
func NewDeleteTeacherNotFound() *DeleteTeacherNotFound
NewDeleteTeacherNotFound creates a DeleteTeacherNotFound with default headers values
func (*DeleteTeacherNotFound) Error ¶
func (o *DeleteTeacherNotFound) Error() string
type DeleteTeacherParams ¶
type DeleteTeacherParams struct { /*ID UUID of the teacher */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteTeacherParams contains all the parameters to send to the API endpoint for the delete teacher operation typically these are written to a http.Request
func NewDeleteTeacherParams ¶
func NewDeleteTeacherParams() *DeleteTeacherParams
NewDeleteTeacherParams creates a new DeleteTeacherParams object with the default values initialized.
func NewDeleteTeacherParamsWithContext ¶
func NewDeleteTeacherParamsWithContext(ctx context.Context) *DeleteTeacherParams
NewDeleteTeacherParamsWithContext creates a new DeleteTeacherParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteTeacherParamsWithHTTPClient ¶
func NewDeleteTeacherParamsWithHTTPClient(client *http.Client) *DeleteTeacherParams
NewDeleteTeacherParamsWithHTTPClient creates a new DeleteTeacherParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteTeacherParamsWithTimeout ¶
func NewDeleteTeacherParamsWithTimeout(timeout time.Duration) *DeleteTeacherParams
NewDeleteTeacherParamsWithTimeout creates a new DeleteTeacherParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteTeacherParams) SetContext ¶
func (o *DeleteTeacherParams) SetContext(ctx context.Context)
SetContext adds the context to the delete teacher params
func (*DeleteTeacherParams) SetHTTPClient ¶
func (o *DeleteTeacherParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete teacher params
func (*DeleteTeacherParams) SetID ¶
func (o *DeleteTeacherParams) SetID(id string)
SetID adds the id to the delete teacher params
func (*DeleteTeacherParams) SetTimeout ¶
func (o *DeleteTeacherParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete teacher params
func (*DeleteTeacherParams) WithContext ¶
func (o *DeleteTeacherParams) WithContext(ctx context.Context) *DeleteTeacherParams
WithContext adds the context to the delete teacher params
func (*DeleteTeacherParams) WithHTTPClient ¶
func (o *DeleteTeacherParams) WithHTTPClient(client *http.Client) *DeleteTeacherParams
WithHTTPClient adds the HTTPClient to the delete teacher params
func (*DeleteTeacherParams) WithID ¶
func (o *DeleteTeacherParams) WithID(id string) *DeleteTeacherParams
WithID adds the id to the delete teacher params
func (*DeleteTeacherParams) WithTimeout ¶
func (o *DeleteTeacherParams) WithTimeout(timeout time.Duration) *DeleteTeacherParams
WithTimeout adds the timeout to the delete teacher params
func (*DeleteTeacherParams) WriteToRequest ¶
func (o *DeleteTeacherParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteTeacherReader ¶
type DeleteTeacherReader struct {
// contains filtered or unexported fields
}
DeleteTeacherReader is a Reader for the DeleteTeacher structure.
func (*DeleteTeacherReader) ReadResponse ¶
func (o *DeleteTeacherReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type EditStudentInternalServerError ¶
type EditStudentInternalServerError struct { }
EditStudentInternalServerError handles this case with default header values.
internal server error
func NewEditStudentInternalServerError ¶
func NewEditStudentInternalServerError() *EditStudentInternalServerError
NewEditStudentInternalServerError creates a EditStudentInternalServerError with default headers values
func (*EditStudentInternalServerError) Error ¶
func (o *EditStudentInternalServerError) Error() string
type EditStudentOK ¶
EditStudentOK handles this case with default header values.
student updated
func NewEditStudentOK ¶
func NewEditStudentOK() *EditStudentOK
NewEditStudentOK creates a EditStudentOK with default headers values
func (*EditStudentOK) Error ¶
func (o *EditStudentOK) Error() string
func (*EditStudentOK) GetPayload ¶
func (o *EditStudentOK) GetPayload() *models.Student
type EditStudentParams ¶
type EditStudentParams struct { /*ID UUID of the student */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
EditStudentParams contains all the parameters to send to the API endpoint for the edit student operation typically these are written to a http.Request
func NewEditStudentParams ¶
func NewEditStudentParams() *EditStudentParams
NewEditStudentParams creates a new EditStudentParams object with the default values initialized.
func NewEditStudentParamsWithContext ¶
func NewEditStudentParamsWithContext(ctx context.Context) *EditStudentParams
NewEditStudentParamsWithContext creates a new EditStudentParams object with the default values initialized, and the ability to set a context for a request
func NewEditStudentParamsWithHTTPClient ¶
func NewEditStudentParamsWithHTTPClient(client *http.Client) *EditStudentParams
NewEditStudentParamsWithHTTPClient creates a new EditStudentParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewEditStudentParamsWithTimeout ¶
func NewEditStudentParamsWithTimeout(timeout time.Duration) *EditStudentParams
NewEditStudentParamsWithTimeout creates a new EditStudentParams object with the default values initialized, and the ability to set a timeout on a request
func (*EditStudentParams) SetContext ¶
func (o *EditStudentParams) SetContext(ctx context.Context)
SetContext adds the context to the edit student params
func (*EditStudentParams) SetHTTPClient ¶
func (o *EditStudentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the edit student params
func (*EditStudentParams) SetID ¶
func (o *EditStudentParams) SetID(id string)
SetID adds the id to the edit student params
func (*EditStudentParams) SetTimeout ¶
func (o *EditStudentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the edit student params
func (*EditStudentParams) WithContext ¶
func (o *EditStudentParams) WithContext(ctx context.Context) *EditStudentParams
WithContext adds the context to the edit student params
func (*EditStudentParams) WithHTTPClient ¶
func (o *EditStudentParams) WithHTTPClient(client *http.Client) *EditStudentParams
WithHTTPClient adds the HTTPClient to the edit student params
func (*EditStudentParams) WithID ¶
func (o *EditStudentParams) WithID(id string) *EditStudentParams
WithID adds the id to the edit student params
func (*EditStudentParams) WithTimeout ¶
func (o *EditStudentParams) WithTimeout(timeout time.Duration) *EditStudentParams
WithTimeout adds the timeout to the edit student params
func (*EditStudentParams) WriteToRequest ¶
func (o *EditStudentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type EditStudentReader ¶
type EditStudentReader struct {
// contains filtered or unexported fields
}
EditStudentReader is a Reader for the EditStudent structure.
func (*EditStudentReader) ReadResponse ¶
func (o *EditStudentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type EditTeacherInternalServerError ¶
type EditTeacherInternalServerError struct { }
EditTeacherInternalServerError handles this case with default header values.
internal server error
func NewEditTeacherInternalServerError ¶
func NewEditTeacherInternalServerError() *EditTeacherInternalServerError
NewEditTeacherInternalServerError creates a EditTeacherInternalServerError with default headers values
func (*EditTeacherInternalServerError) Error ¶
func (o *EditTeacherInternalServerError) Error() string
type EditTeacherOK ¶
EditTeacherOK handles this case with default header values.
teacher updated
func NewEditTeacherOK ¶
func NewEditTeacherOK() *EditTeacherOK
NewEditTeacherOK creates a EditTeacherOK with default headers values
func (*EditTeacherOK) Error ¶
func (o *EditTeacherOK) Error() string
func (*EditTeacherOK) GetPayload ¶
func (o *EditTeacherOK) GetPayload() *models.Teacher
type EditTeacherParams ¶
type EditTeacherParams struct { /*ID UUID of the teacher */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
EditTeacherParams contains all the parameters to send to the API endpoint for the edit teacher operation typically these are written to a http.Request
func NewEditTeacherParams ¶
func NewEditTeacherParams() *EditTeacherParams
NewEditTeacherParams creates a new EditTeacherParams object with the default values initialized.
func NewEditTeacherParamsWithContext ¶
func NewEditTeacherParamsWithContext(ctx context.Context) *EditTeacherParams
NewEditTeacherParamsWithContext creates a new EditTeacherParams object with the default values initialized, and the ability to set a context for a request
func NewEditTeacherParamsWithHTTPClient ¶
func NewEditTeacherParamsWithHTTPClient(client *http.Client) *EditTeacherParams
NewEditTeacherParamsWithHTTPClient creates a new EditTeacherParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewEditTeacherParamsWithTimeout ¶
func NewEditTeacherParamsWithTimeout(timeout time.Duration) *EditTeacherParams
NewEditTeacherParamsWithTimeout creates a new EditTeacherParams object with the default values initialized, and the ability to set a timeout on a request
func (*EditTeacherParams) SetContext ¶
func (o *EditTeacherParams) SetContext(ctx context.Context)
SetContext adds the context to the edit teacher params
func (*EditTeacherParams) SetHTTPClient ¶
func (o *EditTeacherParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the edit teacher params
func (*EditTeacherParams) SetID ¶
func (o *EditTeacherParams) SetID(id string)
SetID adds the id to the edit teacher params
func (*EditTeacherParams) SetTimeout ¶
func (o *EditTeacherParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the edit teacher params
func (*EditTeacherParams) WithContext ¶
func (o *EditTeacherParams) WithContext(ctx context.Context) *EditTeacherParams
WithContext adds the context to the edit teacher params
func (*EditTeacherParams) WithHTTPClient ¶
func (o *EditTeacherParams) WithHTTPClient(client *http.Client) *EditTeacherParams
WithHTTPClient adds the HTTPClient to the edit teacher params
func (*EditTeacherParams) WithID ¶
func (o *EditTeacherParams) WithID(id string) *EditTeacherParams
WithID adds the id to the edit teacher params
func (*EditTeacherParams) WithTimeout ¶
func (o *EditTeacherParams) WithTimeout(timeout time.Duration) *EditTeacherParams
WithTimeout adds the timeout to the edit teacher params
func (*EditTeacherParams) WriteToRequest ¶
func (o *EditTeacherParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type EditTeacherReader ¶
type EditTeacherReader struct {
// contains filtered or unexported fields
}
EditTeacherReader is a Reader for the EditTeacher structure.
func (*EditTeacherReader) ReadResponse ¶
func (o *EditTeacherReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetStudentInternalServerError ¶
type GetStudentInternalServerError struct { }
GetStudentInternalServerError handles this case with default header values.
internal server error
func NewGetStudentInternalServerError ¶
func NewGetStudentInternalServerError() *GetStudentInternalServerError
NewGetStudentInternalServerError creates a GetStudentInternalServerError with default headers values
func (*GetStudentInternalServerError) Error ¶
func (o *GetStudentInternalServerError) Error() string
type GetStudentNotFound ¶
type GetStudentNotFound struct { }
GetStudentNotFound handles this case with default header values.
student not found
func NewGetStudentNotFound ¶
func NewGetStudentNotFound() *GetStudentNotFound
NewGetStudentNotFound creates a GetStudentNotFound with default headers values
func (*GetStudentNotFound) Error ¶
func (o *GetStudentNotFound) Error() string
type GetStudentOK ¶
GetStudentOK handles this case with default header values.
student response
func NewGetStudentOK ¶
func NewGetStudentOK() *GetStudentOK
NewGetStudentOK creates a GetStudentOK with default headers values
func (*GetStudentOK) Error ¶
func (o *GetStudentOK) Error() string
func (*GetStudentOK) GetPayload ¶
func (o *GetStudentOK) GetPayload() *models.Student
type GetStudentParams ¶
type GetStudentParams struct { /*ID UUID of the student */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetStudentParams contains all the parameters to send to the API endpoint for the get student operation typically these are written to a http.Request
func NewGetStudentParams ¶
func NewGetStudentParams() *GetStudentParams
NewGetStudentParams creates a new GetStudentParams object with the default values initialized.
func NewGetStudentParamsWithContext ¶
func NewGetStudentParamsWithContext(ctx context.Context) *GetStudentParams
NewGetStudentParamsWithContext creates a new GetStudentParams object with the default values initialized, and the ability to set a context for a request
func NewGetStudentParamsWithHTTPClient ¶
func NewGetStudentParamsWithHTTPClient(client *http.Client) *GetStudentParams
NewGetStudentParamsWithHTTPClient creates a new GetStudentParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetStudentParamsWithTimeout ¶
func NewGetStudentParamsWithTimeout(timeout time.Duration) *GetStudentParams
NewGetStudentParamsWithTimeout creates a new GetStudentParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetStudentParams) SetContext ¶
func (o *GetStudentParams) SetContext(ctx context.Context)
SetContext adds the context to the get student params
func (*GetStudentParams) SetHTTPClient ¶
func (o *GetStudentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get student params
func (*GetStudentParams) SetID ¶
func (o *GetStudentParams) SetID(id string)
SetID adds the id to the get student params
func (*GetStudentParams) SetTimeout ¶
func (o *GetStudentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get student params
func (*GetStudentParams) WithContext ¶
func (o *GetStudentParams) WithContext(ctx context.Context) *GetStudentParams
WithContext adds the context to the get student params
func (*GetStudentParams) WithHTTPClient ¶
func (o *GetStudentParams) WithHTTPClient(client *http.Client) *GetStudentParams
WithHTTPClient adds the HTTPClient to the get student params
func (*GetStudentParams) WithID ¶
func (o *GetStudentParams) WithID(id string) *GetStudentParams
WithID adds the id to the get student params
func (*GetStudentParams) WithTimeout ¶
func (o *GetStudentParams) WithTimeout(timeout time.Duration) *GetStudentParams
WithTimeout adds the timeout to the get student params
func (*GetStudentParams) WriteToRequest ¶
func (o *GetStudentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetStudentReader ¶
type GetStudentReader struct {
// contains filtered or unexported fields
}
GetStudentReader is a Reader for the GetStudent structure.
func (*GetStudentReader) ReadResponse ¶
func (o *GetStudentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTeacherInternalServerError ¶
type GetTeacherInternalServerError struct { }
GetTeacherInternalServerError handles this case with default header values.
internal server error
func NewGetTeacherInternalServerError ¶
func NewGetTeacherInternalServerError() *GetTeacherInternalServerError
NewGetTeacherInternalServerError creates a GetTeacherInternalServerError with default headers values
func (*GetTeacherInternalServerError) Error ¶
func (o *GetTeacherInternalServerError) Error() string
type GetTeacherNotFound ¶
type GetTeacherNotFound struct { }
GetTeacherNotFound handles this case with default header values.
teacher not found
func NewGetTeacherNotFound ¶
func NewGetTeacherNotFound() *GetTeacherNotFound
NewGetTeacherNotFound creates a GetTeacherNotFound with default headers values
func (*GetTeacherNotFound) Error ¶
func (o *GetTeacherNotFound) Error() string
type GetTeacherOK ¶
GetTeacherOK handles this case with default header values.
teacher response
func NewGetTeacherOK ¶
func NewGetTeacherOK() *GetTeacherOK
NewGetTeacherOK creates a GetTeacherOK with default headers values
func (*GetTeacherOK) Error ¶
func (o *GetTeacherOK) Error() string
func (*GetTeacherOK) GetPayload ¶
func (o *GetTeacherOK) GetPayload() *models.Teacher
type GetTeacherParams ¶
type GetTeacherParams struct { /*ID UUID of the teacher */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTeacherParams contains all the parameters to send to the API endpoint for the get teacher operation typically these are written to a http.Request
func NewGetTeacherParams ¶
func NewGetTeacherParams() *GetTeacherParams
NewGetTeacherParams creates a new GetTeacherParams object with the default values initialized.
func NewGetTeacherParamsWithContext ¶
func NewGetTeacherParamsWithContext(ctx context.Context) *GetTeacherParams
NewGetTeacherParamsWithContext creates a new GetTeacherParams object with the default values initialized, and the ability to set a context for a request
func NewGetTeacherParamsWithHTTPClient ¶
func NewGetTeacherParamsWithHTTPClient(client *http.Client) *GetTeacherParams
NewGetTeacherParamsWithHTTPClient creates a new GetTeacherParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetTeacherParamsWithTimeout ¶
func NewGetTeacherParamsWithTimeout(timeout time.Duration) *GetTeacherParams
NewGetTeacherParamsWithTimeout creates a new GetTeacherParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetTeacherParams) SetContext ¶
func (o *GetTeacherParams) SetContext(ctx context.Context)
SetContext adds the context to the get teacher params
func (*GetTeacherParams) SetHTTPClient ¶
func (o *GetTeacherParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get teacher params
func (*GetTeacherParams) SetID ¶
func (o *GetTeacherParams) SetID(id string)
SetID adds the id to the get teacher params
func (*GetTeacherParams) SetTimeout ¶
func (o *GetTeacherParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get teacher params
func (*GetTeacherParams) WithContext ¶
func (o *GetTeacherParams) WithContext(ctx context.Context) *GetTeacherParams
WithContext adds the context to the get teacher params
func (*GetTeacherParams) WithHTTPClient ¶
func (o *GetTeacherParams) WithHTTPClient(client *http.Client) *GetTeacherParams
WithHTTPClient adds the HTTPClient to the get teacher params
func (*GetTeacherParams) WithID ¶
func (o *GetTeacherParams) WithID(id string) *GetTeacherParams
WithID adds the id to the get teacher params
func (*GetTeacherParams) WithTimeout ¶
func (o *GetTeacherParams) WithTimeout(timeout time.Duration) *GetTeacherParams
WithTimeout adds the timeout to the get teacher params
func (*GetTeacherParams) WriteToRequest ¶
func (o *GetTeacherParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTeacherReader ¶
type GetTeacherReader struct {
// contains filtered or unexported fields
}
GetTeacherReader is a Reader for the GetTeacher structure.
func (*GetTeacherReader) ReadResponse ¶
func (o *GetTeacherReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- add_student_parameters.go
- add_student_responses.go
- add_teacher_parameters.go
- add_teacher_responses.go
- delete_student_parameters.go
- delete_student_responses.go
- delete_teacher_parameters.go
- delete_teacher_responses.go
- edit_student_parameters.go
- edit_student_responses.go
- edit_teacher_parameters.go
- edit_teacher_responses.go
- get_student_parameters.go
- get_student_responses.go
- get_teacher_parameters.go
- get_teacher_responses.go
- operations_client.go