internal

package
v0.0.0-...-94b9281 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderContentType       = "Content-Type"
	HeaderAccept            = "Accept"
	HeaderAcceptLanguage    = "Accept-Language"
	HeaderAppYaml           = "application/yaml"
	HeaderAppJson           = "application/json"
	HeaderTextHtml          = "text/html"
	HeaderTextPlain         = "text/plain"
	HeaderTextMarkdown      = "text/markdown"
	HeaderMultipartFormData = "multipart/form-data"
	HeaderAppFormUrlEncoded = "application/x-www-form-urlencoded"
)
View Source
const BREAKING_LEVEL = checker.WARN
View Source
const CHANGELOG_LEVEL = checker.INFO

Variables

This section is empty.

Functions

func CloseFile

func CloseFile(f *os.File)

func CreateConfig

func CreateConfig(r *http.Request) *diff.Config

func CreateFiles

func CreateFiles(r *http.Request) (string, *os.File, *os.File, error)

func GetAcceptHeader

func GetAcceptHeader(r *http.Request) string

func GetAcceptLanguageHeader

func GetAcceptLanguageHeader(r *http.Request) string

func GetLanguageCode

func GetLanguageCode(acceptLanguageHeader string) string

func GetQueryString

func GetQueryString(r *http.Request, key string, defaultValue string) string

Types

type Handler

type Handler struct{}

func NewHandler

func NewHandler() *Handler

func (*Handler) BreakingChangesFromFile

func (h *Handler) BreakingChangesFromFile(w http.ResponseWriter, r *http.Request)

func (*Handler) BreakingChangesFromUri

func (h *Handler) BreakingChangesFromUri(w http.ResponseWriter, r *http.Request)

func (*Handler) ChangelogFromFile

func (h *Handler) ChangelogFromFile(w http.ResponseWriter, r *http.Request)

func (*Handler) ChangelogFromUri

func (h *Handler) ChangelogFromUri(w http.ResponseWriter, r *http.Request)

func (*Handler) DiffFromFile

func (h *Handler) DiffFromFile(w http.ResponseWriter, r *http.Request)

func (*Handler) DiffFromUri

func (h *Handler) DiffFromUri(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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