httprpc

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbortError

type AbortError struct {
	Code int
	Msg  string
}

func AbortErr

func AbortErr(code int, err error) *AbortError

type Response

type Response struct {
	Data proto.Message
}

func (Response) Render

func (r Response) Render(w http.ResponseWriter) error

func (Response) WriteContentType

func (r Response) WriteContentType(w http.ResponseWriter)

type ResponseError

type ResponseError struct {
	Code int
	Msg  string
}

func ResponseErr

func ResponseErr(code int, err error) *ResponseError

Jump to

Keyboard shortcuts

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