results

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 4 Imported by: 0

README

results

This service provides a mock of results service.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("results",
	server.Module,

	fx.Provide(
		NewHandler,
		fx.Annotate(func(handler *Handler) http.Handler {
			mux := chi.NewMux()
			mux.Get("/results/{id}", handler.ServeHTTP)
			return mux
		}, fx.ResultTags(`name:"server"`)),
	),
)

Functions

This section is empty.

Types

type Handler

type Handler struct{}

func NewHandler

func NewHandler() *Handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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