server

package
v0.0.0-...-46fdcb5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CookieSameSiteMode

func CookieSameSiteMode() http.SameSite

func CookieSecure

func CookieSecure() bool

func IsClientError

func IsClientError(code int) bool

func Middleware

func Middleware(next http.Handler) http.Handler

func NewConnectHandler

func NewConnectHandler(
	health *controller.Health,
	user *controller.User,
	article *controller.Article,
	version *controller.Version,
) http.Handler

func NewInterceptor

func NewInterceptor() connect.UnaryInterceptorFunc

func NewLoggingResponseWriter

func NewLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter

Types

type HTTPServer

type HTTPServer struct {
	*http.Server
}

func NewHTTPServer

func NewHTTPServer(
	handler http.Handler,
) *HTTPServer

func (*HTTPServer) Run

func (s *HTTPServer) Run()

type Route

type Route struct {
	// contains filtered or unexported fields
}

func NewRoute

func NewRoute(path string, handler http.Handler) Route

type Router

type Router struct {
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(routes ...Route) *Router

func (Router) Mux

func (r Router) Mux() *http.ServeMux

Jump to

Keyboard shortcuts

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