Documentation
¶
Index ¶
Constants ¶
View Source
const ( HttpServerHealthProcessorPath = "/health" HttpServerCallProcessorPath = "/call" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer(options HttpServerOptions, logger common.Logger) *HttpServer
func (*HttpServer) Start ¶
func (h *HttpServer) Start(wg *sync.WaitGroup)
type HttpServerCallProcessor ¶
type HttpServerCallProcessor struct {
// contains filtered or unexported fields
}
func (*HttpServerCallProcessor) HandleRequest ¶
func (h *HttpServerCallProcessor) HandleRequest(w http.ResponseWriter, r *http.Request) error
func (*HttpServerCallProcessor) Path ¶
func (h *HttpServerCallProcessor) Path() string
type HttpServerCallRequest ¶
type HttpServerCallRespone ¶
type HttpServerCallRespone struct {
Request *HttpServerCallRequest `json:"request"`
Result []interface{} `json:"result,omitempty"`
Error string `json:"error,omitempty"`
}
type HttpServerHealthProcessor ¶
type HttpServerHealthProcessor struct {
// contains filtered or unexported fields
}
func (*HttpServerHealthProcessor) HandleRequest ¶
func (h *HttpServerHealthProcessor) HandleRequest(w http.ResponseWriter, r *http.Request) error
func (*HttpServerHealthProcessor) Path ¶
func (h *HttpServerHealthProcessor) Path() string
type HttpServerOptions ¶
type HttpServerProcessor ¶
Click to show internal directories.
Click to hide internal directories.