server

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 13 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 interface {

	// RegisterEndpoints configures all routes for the server.
	RegisterEndpoints()

	// Serve starts the server instance.
	Serve() error
}

Server defines a wrapper around the HTTP server functionality, specifically involving setting up and starting an HTTP server.

func NewServer

func NewServer(cli config.CLIOptions, file config.FileOptions) Server

NewServer returns a new instance of the Server type, configured with the given options.

Directories

Path Synopsis
endpoints
api
job

Jump to

Keyboard shortcuts

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