handler

package
v1.0.1003 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultError

type DefaultError struct {
	Error   bool        `json:"error"`
	Message interface{} `json:"message"`
}

type DefaultHandler

type DefaultHandler struct {
	MethodName string
	Handle     listener.MethodMultipleHandler
	Listener   listener.Listener
}

func New

func New(methodName string, handle listener.MethodMultipleHandler, listener listener.Listener) *DefaultHandler

func (*DefaultHandler) ServeHTTP

func (c *DefaultHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ErrorHandler

type ErrorHandler struct {
	Code int
}

func (*ErrorHandler) ServeHTTP

func (c *ErrorHandler) 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