httpserver

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package httpserver serves up HTTP requests.

Index

Examples

Constants

View Source
const (
	NanosecondsPerMillisecond = 1000000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicHTTPServer added in v0.1.2

type BasicHTTPServer struct {
	AllowedHostnames         []string
	Arguments                []string
	AvoidServing             bool
	Command                  string
	ConnectionErrorLimit     int
	EnableAll                bool
	EnableEntitySearch       bool
	EnableSenzingRestAPI     bool
	GrpcDialOptions          []grpc.DialOption
	GrpcTarget               string
	HTMLTitle                string
	KeepalivePingTimeout     int
	LogLevelName             string
	MaxBufferSizeBytes       int
	ObserverOrigin           string
	Observers                []observer.Observer
	OpenAPISpecificationSpec []byte
	ReadHeaderTimeout        time.Duration
	Settings                 string
	SenzingInstanceName      string
	SenzingVerboseLogging    int64
	ServerAddress            string
	ServerOptions            []senzingrestapi.ServerOption
	ServerPort               int
	TtyOnly                  bool
	URLRoutePrefix           string
}

BasicHTTPServer is the default implementation of the HttpServer interface.

func (*BasicHTTPServer) Serve added in v0.1.2

func (httpServer *BasicHTTPServer) Serve(ctx context.Context) error
Example
package main

import (
	"github.com/senzing-garage/demo-entity-search/httpserver"
)

func main() {
	_ = httpserver.BasicHTTPServer{}
}

type HTTPServer added in v0.1.2

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

The HTTPServer interface...

Jump to

Keyboard shortcuts

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