http

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer[Request, Response any](
	g endpoint.Generic[Request, Response],
	dec func(context.Context, *http.Request) (Request, error),
	enc func(context.Context, http.ResponseWriter, Response) error,
	options ...kithttp.ServerOption,
) *kithttp.Server

NewServer returns a new http.Handler that wraps the provided endpoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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