httpserver

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 15 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 {
	AvoidServing          bool
	ChatURLRoutePrefix    string // FIXME: Only works with "chat"
	EnableAll             bool
	EnableSenzingChatAPI  bool
	EnableSwaggerUI       bool
	GrpcDialOptions       []grpc.DialOption
	GrpcTarget            string
	LogLevelName          string
	ObserverOrigin        string
	Observers             []observer.Observer
	OpenAPISpecification  []byte
	ReadHeaderTimeout     time.Duration
	Setting               string
	SenzingInstanceName   string
	SenzingVerboseLogging int64
	ServerAddress         string
	ServerOptions         []senzingchatapi.ServerOption
	ServerPort            int
	SwaggerURLRoutePrefix string // FIXME: Only works with "swagger"
}

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
{
}
Output:

type HTTPServer added in v0.2.2

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

The HTTPServer interface...

type TemplateVariables

type TemplateVariables struct {
	BasicHTTPServer
	ChatServerStatus string
	ChatServerURL    string
	HTMLTitle        string
	RequestHost      string
	SwaggerStatus    string
	SwaggerURL       string
}

Jump to

Keyboard shortcuts

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