Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventServer

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

EventServer handles event POST requests

func NewEventServer

func NewEventServer(port string, logger logr.Logger, kubeClient client.Client) *EventServer

NewEventServer returns an HTTP server that handles events

func (*EventServer) ListenAndServe

func (s *EventServer) ListenAndServe(stopCh <-chan struct{})

ListenAndServe starts the HTTP server on the specified port

type ReceiverServer

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

ReceiverServer handles webhook POST requests

func NewReceiverServer

func NewReceiverServer(port string, logger logr.Logger, kubeClient client.Client) *ReceiverServer

NewEventServer returns an HTTP server that handles webhooks

func (*ReceiverServer) ListenAndServe

func (s *ReceiverServer) ListenAndServe(stopCh <-chan struct{})

ListenAndServe starts the HTTP server on the specified port

Jump to

Keyboard shortcuts

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