Documentation ¶
Index ¶
- func Bind(resource *resources.ResourceList) func(w http.ResponseWriter, r *http.Request)
- func BindCustomResource(resource *resources.ResourceList, cache *resources.Cache) func(w http.ResponseWriter, r *http.Request)
- func Handler(w http.ResponseWriter, r *http.Request, ...)
- func WriteHeaders(w http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bind ¶
func Bind(resource *resources.ResourceList) func(w http.ResponseWriter, r *http.Request)
func BindCustomResource ¶ added in v0.6.0
func BindCustomResource(resource *resources.ResourceList, cache *resources.Cache) func(w http.ResponseWriter, r *http.Request)
func Handler ¶
func Handler(w http.ResponseWriter, r *http.Request, getData func(string, string) []unstructured.Unstructured, changes <-chan struct{}, fieldsList []string, crdExists func() bool)
Handler is a generic SSE handler that sends data to the client
func WriteHeaders ¶
func WriteHeaders(w http.ResponseWriter)
WriteHeaders sets the headers for an SSE connection
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.