"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/ping/ping.go" between
traefik-v2.3.2.src.tar.gz and traefik-v2.3.3.src.tar.gz

About: Traefik is a cloud native edge router, a reverse proxy and load balancer for HTTP and TCP-based applications.

ping.go  (traefik-v2.3.2.src):ping.go  (traefik-v2.3.3.src)
skipping to change at line 12 skipping to change at line 12
import ( import (
"context" "context"
"fmt" "fmt"
"net/http" "net/http"
) )
// Handler expose ping routes. // Handler expose ping routes.
type Handler struct { type Handler struct {
EntryPoint string `description:"EntryPoint" export:"true" json :"entryPoint,omitempty" toml:"entryPoint,omitempty" yaml:"entryPoint,omitempty"` EntryPoint string `description:"EntryPoint" export:"true" json :"entryPoint,omitempty" toml:"entryPoint,omitempty" yaml:"entryPoint,omitempty"`
ManualRouting bool `description:"Manual routing" json:"manualRo ManualRouting bool `description:"Manual routing" json:"manualRo
uting,omitempty" toml:"manualRouting,omitempty" yaml:"manualRouting,omitempty"` uting,omitempty" toml:"manualRouting,omitempty" yaml:"manualRouting,omitempty" e
TerminatingStatusCode int `description:"Terminating status code" json: xport:"true"`
"terminatingStatusCode,omitempty" toml:"terminatingStatusCode,omitempty" yaml:"t TerminatingStatusCode int `description:"Terminating status code" json:
erminatingStatusCode,omitempty"` "terminatingStatusCode,omitempty" toml:"terminatingStatusCode,omitempty" yaml:"t
erminatingStatusCode,omitempty" export:"true"`
terminating bool terminating bool
} }
// SetDefaults sets the default values. // SetDefaults sets the default values.
func (h *Handler) SetDefaults() { func (h *Handler) SetDefaults() {
h.EntryPoint = "traefik" h.EntryPoint = "traefik"
h.TerminatingStatusCode = http.StatusServiceUnavailable h.TerminatingStatusCode = http.StatusServiceUnavailable
} }
// WithContext causes the ping endpoint to serve non 200 responses. // WithContext causes the ping endpoint to serve non 200 responses.
 End of changes. 1 change blocks. 
5 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)