server

package
v0.0.0-...-f97d723 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the server instance for the v1alpha1 version it will be used to handle the webhook call and store the data on the configured storages for the current spec

func NewServer

func NewServer() *Server

NewServer creates a new server instance for the v1alpha1 version

func (*Server) Version

func (s *Server) Version() string

Version returns the current version of the API

func (*Server) WebhookHandler

func (s *Server) WebhookHandler() http.HandlerFunc

WebhookHandler is the handler who will process the webhook call it will call the webhook service function with the current configuration and the request object. If an error is returned, it will be returned to the client otherwise, it will return a 200 OK response

Jump to

Keyboard shortcuts

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