http

package
v0.0.0-...-ffefdcf Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteResponse

func WriteResponse(w http.ResponseWriter, resp interface{})

Types

type BaseHandler

type BaseHandler struct {
	Logger logger.Logger
}

func NewHandler

func NewHandler(l logger.Logger) *BaseHandler

func (*BaseHandler) WriteErrorResponse

func (h *BaseHandler) WriteErrorResponse(ctx context.Context, w http.ResponseWriter, err error)

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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