internal

package
v0.0.0-...-2c5dd6e Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderContentType       = "Content-Type"
	HeaderAccept            = "Accept"
	HeaderAppYaml           = "application/yaml"
	HeaderAppJson           = "application/json"
	HeaderTextHtml          = "text/html"
	HeaderMultipartFormData = "multipart/form-data"
	HeaderAppFormUrlEncoded = "application/x-www-form-urlencoded"
)
View Source
const (
	CommandDiff      = "diff"
	CommandChangelog = "changelog"
	CommandBreaking  = "breaking"
)

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, int)

func GetAcceptHeader

func GetAcceptHeader(r *http.Request) string

func GetQueryString

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

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(c *client.Collector) *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)

func (*Handler) SendTelemetry

func (h *Handler) SendTelemetry(r *http.Request, cmd string, args []string, acceptHeader string) error

Jump to

Keyboard shortcuts

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