subjects

package
v0.0.0-...-f8652d3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(db *gorm.DB) *chi.Mux

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
}

func (*RequestPostSubject) Bind

func (r *RequestPostSubject) Bind(request *http.Request) error

type RequestPostSubjectVersion

type RequestPostSubjectVersion struct {
	Schema     string             `json:"schema"`
	SchemaType schemas.SchemaType `json:"schemaType"`
	References []SubjectReference `json:"references,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestPostSubjectVersion) Bind

func (r *RequestPostSubjectVersion) Bind(request *http.Request) error

type ResponseDeleteSubjectVersion

type ResponseDeleteSubjectVersion int32

func (ResponseDeleteSubjectVersion) Render

type ResponseDeleteSubjectVersions

type ResponseDeleteSubjectVersions []int32

func (ResponseDeleteSubjectVersions) Render

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

type ResponseGetSubjectVersionSchema

type ResponseGetSubjectVersionSchema string

func (ResponseGetSubjectVersionSchema) Render

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

type SubjectReference struct {
	Name    string `json:"name"`
	Subject string `json:"subject"`
	Version int32  `json:"version"`
}

Jump to

Keyboard shortcuts

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