Documentation ¶
Index ¶
- func NewRouter(db *gorm.DB) *chi.Mux
- type RequestPostSubject
- type RequestPostSubjectVersion
- type ResponseDeleteSubjectVersion
- type ResponseDeleteSubjectVersions
- type ResponseGetSubjectVersion
- type ResponseGetSubjectVersionReferencedBy
- type ResponseGetSubjectVersionSchema
- type ResponseGetSubjectVersions
- type ResponseGetSubjects
- type ResponsePostSubject
- type ResponsePostSubjectVersion
- type SubjectReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RequestPostSubject ¶
type RequestPostSubject struct { Schema string `json:"schema"` SchemaType schemas.SchemaType `json:"schemaType"` References []SubjectReference `json:"references,omitempty"` // contains filtered or unexported fields }
type RequestPostSubjectVersion ¶
type RequestPostSubjectVersion struct { Schema string `json:"schema"` SchemaType schemas.SchemaType `json:"schemaType"` References []SubjectReference `json:"references,omitempty"` // contains filtered or unexported fields }
type ResponseDeleteSubjectVersion ¶
type ResponseDeleteSubjectVersion int32
func (ResponseDeleteSubjectVersion) Render ¶
func (r ResponseDeleteSubjectVersion) Render(writer http.ResponseWriter, request *http.Request) error
type ResponseDeleteSubjectVersions ¶
type ResponseDeleteSubjectVersions []int32
func (ResponseDeleteSubjectVersions) Render ¶
func (r ResponseDeleteSubjectVersions) Render(writer http.ResponseWriter, request *http.Request) error
type ResponseGetSubjectVersion ¶
type ResponseGetSubjectVersion struct { Subject string `json:"subject"` ID int32 `json:"id"` Version int32 `json:"version"` SchemaType schemas.SchemaType `json:"schemaType,omitempty"` Schema string `json:"schema"` }
func (*ResponseGetSubjectVersion) Render ¶
func (r *ResponseGetSubjectVersion) Render(writer http.ResponseWriter, request *http.Request) error
type ResponseGetSubjectVersionReferencedBy ¶
type ResponseGetSubjectVersionReferencedBy []int32
func (ResponseGetSubjectVersionReferencedBy) Render ¶
func (r ResponseGetSubjectVersionReferencedBy) Render(writer http.ResponseWriter, request *http.Request) error
type ResponseGetSubjectVersionSchema ¶
type ResponseGetSubjectVersionSchema string
func (ResponseGetSubjectVersionSchema) Render ¶
func (r ResponseGetSubjectVersionSchema) Render(writer http.ResponseWriter, request *http.Request) error
type ResponseGetSubjectVersions ¶
type ResponseGetSubjectVersions []int32
func (ResponseGetSubjectVersions) Render ¶
func (r ResponseGetSubjectVersions) Render(writer http.ResponseWriter, request *http.Request) error
type ResponseGetSubjects ¶
type ResponseGetSubjects []string
func (ResponseGetSubjects) Render ¶
func (r ResponseGetSubjects) Render(writer http.ResponseWriter, request *http.Request) error
type ResponsePostSubject ¶
type ResponsePostSubject struct { Subject string `json:"subject"` ID int32 `json:"id"` Version int32 `json:"version"` Schema string `json:"schema"` }
func (*ResponsePostSubject) Render ¶
func (r *ResponsePostSubject) Render(writer http.ResponseWriter, request *http.Request) error
type ResponsePostSubjectVersion ¶
type ResponsePostSubjectVersion struct {
ID int32 `json:"id"`
}
func (*ResponsePostSubjectVersion) Render ¶
func (r *ResponsePostSubjectVersion) Render(writer http.ResponseWriter, request *http.Request) error
type SubjectReference ¶
Click to show internal directories.
Click to hide internal directories.