httpserver

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package httpserver serves up HTTP requests.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicHTTPServer added in v0.2.2

type BasicHTTPServer struct {
	APIUrlRoutePrefix         string // FIXME: Only works with "api"
	AvoidServing              bool
	EnableAll                 bool
	EnableSenzingRestAPI      bool
	EnableSwaggerUI           bool
	EnableXterm               bool
	GrpcDialOptions           []grpc.DialOption
	GrpcTarget                string
	LogLevelName              string
	ObserverOrigin            string
	Observers                 []observer.Observer
	OpenAPISpecificationRest  []byte
	ReadHeaderTimeout         time.Duration
	SenzingSettings           string
	SenzingInstanceName       string
	SenzingVerboseLogging     int64
	ServerAddress             string
	ServerOptions             []senzingrestapi.ServerOption
	ServerPort                int
	SwaggerURLRoutePrefix     string // FIXME: Only works with "swagger"
	TtyOnly                   bool
	XtermAllowedHostnames     []string
	XtermArguments            []string
	XtermCommand              string
	XtermConnectionErrorLimit int
	XtermKeepalivePingTimeout int
	XtermMaxBufferSizeBytes   int
	XtermURLRoutePrefix       string // FIXME: Only works with "xterm"
}

BasicHTTPServer is the default implementation of the HttpServer interface.

func (*BasicHTTPServer) Serve added in v0.2.2

func (httpServer *BasicHTTPServer) Serve(ctx context.Context) error
Example
{
}

type HTTPServer added in v0.2.2

type HTTPServer interface {
	Serve(ctx context.Context) error
}

The HTTPServer interface...

type TemplateVariables

type TemplateVariables struct {
	BasicHTTPServer
	APIServerStatus string
	APIServerURL    string
	HTMLTitle       string
	RequestHost     string
	SwaggerStatus   string
	SwaggerURL      string
	XtermStatus     string
	XtermURL        string
}

Jump to

Keyboard shortcuts

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