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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIVersion

type APIVersion interface {
	Version() string
	WebhookHandler() http.HandlerFunc
}

APIVersion is the interface for all supported API versions that can be served by the webhooked server

type Server

type Server struct {
	*http.Server
}

func NewServer

func NewServer(port int) (*Server, error)

NewServer create a new server instance with the given port

func (*Server) Serve

func (s *Server) Serve() error

Serve the proxy server on the given port for all supported API versions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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