server

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve()

Serve initializes and starts an HTTP server for VSecM Sentinel.

This function sets up an HTTP server with a multiplexer for handling requests. It specifically registers the "/secrets" endpoint with the HandleSecrets function from the engine package.

Example usage:

Serve() // This will start the server and listen for incoming requests.

Details:

  • mux: An HTTP request multiplexer that routes incoming requests to the registered handler functions.
  • HandleSecrets: A function from the engine package that processes requests to the "/secrets" endpoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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