httpserver

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtractEnityResponse

type ExtractEnityResponse struct {
	Entity any `json:"entity"`
}

type ExtractEntityRequest

type ExtractEntityRequest struct {
	Schema any    `json:"schema"`
	Data   string `json:"data"`
}

type RespondToExtractEntity

type RespondToExtractEntity struct {
	EntityExtractor *structured.EntityExtractor
	Logger          hclog.Logger
}

func (*RespondToExtractEntity) ServeHTTP

func (self *RespondToExtractEntity) ServeHTTP(response http.ResponseWriter, request *http.Request)

type Server

type Server struct {
	Logger                 hclog.Logger
	HttpAddress            *netcfg.HttpAddressConfiguration
	RespondToExtractEntity *RespondToExtractEntity
}

func (*Server) Serve

func (self *Server) Serve() error

Jump to

Keyboard shortcuts

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