customwriter

package
v0.0.0-...-6e5bb36 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomWriter

type CustomWriter struct{}

CustomWriter ...

func (*CustomWriter) WriteError

func (customWriter *CustomWriter) WriteError(w http.ResponseWriter, r *http.Request, err error)

WriteError ...

func (*CustomWriter) WriteSuccess

func (customWriter *CustomWriter) WriteSuccess(w http.ResponseWriter, r *http.Request, data interface{})

WriteSuccess ...

type ICustomWriter

type ICustomWriter interface {
	WriteSuccess(w http.ResponseWriter, r *http.Request, data interface{})
	WriteError(w http.ResponseWriter, r *http.Request, err error)
}

ICustomWriter ...

func New

func New(opts ...Option) ICustomWriter

New ...

type Option

type Option func(*CustomWriter)

Option ...

Jump to

Keyboard shortcuts

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