models

package
v8.0.0-...-36f974d Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSectionsForStudentInputPath

func GetSectionsForStudentInputPath(studentID string) (string, error)

GetSectionsForStudentInputPath returns the URI path for the input.

func ValidateGetSectionsForStudentInput

func ValidateGetSectionsForStudentInput(studentID string) error

ValidateGetSectionsForStudentInput returns an error if the input parameter doesn't satisfy the requirements in the swagger yml file.

Types

type BadRequest

type BadRequest struct {

	// message
	Message string `json:"message,omitempty"`
}

BadRequest bad request

swagger:model BadRequest

func (BadRequest) Error

func (o BadRequest) Error() string

func (*BadRequest) MarshalBinary

func (m *BadRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BadRequest) UnmarshalBinary

func (m *BadRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BadRequest) Validate

func (m *BadRequest) Validate(formats strfmt.Registry) error

Validate validates this bad request

type GetSectionsForStudentInput

type GetSectionsForStudentInput struct {
	StudentID string
}

GetSectionsForStudentInput holds the input parameters for a getSectionsForStudent operation.

type GradeFile

type GradeFile io.ReadCloser

GradeFile grade file

swagger:model GradeFile

type InternalError

type InternalError struct {

	// message
	Message string `json:"message,omitempty"`
}

InternalError internal error

swagger:model InternalError

func (InternalError) Error

func (o InternalError) Error() string

func (*InternalError) MarshalBinary

func (m *InternalError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InternalError) UnmarshalBinary

func (m *InternalError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InternalError) Validate

func (m *InternalError) Validate(formats strfmt.Registry) error

Validate validates this internal error

type PostGradeFileForStudentInput

type PostGradeFileForStudentInput struct {
	StudentID string
	File      *GradeFile
}

PostGradeFileForStudentInput holds the input parameters for a postGradeFileForStudent operation.

func (PostGradeFileForStudentInput) Path

Path returns the URI path for the input.

func (PostGradeFileForStudentInput) Validate

func (i PostGradeFileForStudentInput) Validate() error

Validate returns an error if any of the PostGradeFileForStudentInput parameters don't satisfy the requirements from the swagger yml file.

type PostSectionsForStudentInput

type PostSectionsForStudentInput struct {
	StudentID string
	Sections  string
	UserType  string
}

PostSectionsForStudentInput holds the input parameters for a postSectionsForStudent operation.

func (PostSectionsForStudentInput) Path

Path returns the URI path for the input.

func (PostSectionsForStudentInput) Validate

func (i PostSectionsForStudentInput) Validate() error

Validate returns an error if any of the PostSectionsForStudentInput parameters don't satisfy the requirements from the swagger yml file.

type Section

type Section struct {

	// id
	ID string `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// period
	Period string `json:"period,omitempty"`
}

Section section

swagger:model Section

func (*Section) MarshalBinary

func (m *Section) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Section) UnmarshalBinary

func (m *Section) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Section) Validate

func (m *Section) Validate(formats strfmt.Registry) error

Validate validates this section

type SectionType

type SectionType string

SectionType section type

swagger:model SectionType

const (

	// SectionTypeMath captures enum value "math"
	SectionTypeMath SectionType = "math"

	// SectionTypeScience captures enum value "science"
	SectionTypeScience SectionType = "science"

	// SectionTypeReading captures enum value "reading"
	SectionTypeReading SectionType = "reading"
)

func (SectionType) Validate

func (m SectionType) Validate(formats strfmt.Registry) error

Validate validates this section type

type UnknownResponse

type UnknownResponse struct {

	// body
	Body string `json:"body,omitempty"`

	// status code
	StatusCode int64 `json:"statusCode,omitempty"`
}

UnknownResponse unknown response

swagger:model UnknownResponse

func (UnknownResponse) Error

func (u UnknownResponse) Error() string

func (*UnknownResponse) MarshalBinary

func (m *UnknownResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UnknownResponse) UnmarshalBinary

func (m *UnknownResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UnknownResponse) Validate

func (m *UnknownResponse) Validate(formats strfmt.Registry) error

Validate validates this unknown response

Jump to

Keyboard shortcuts

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