service

package
v0.0.0-...-2b6864c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespondWith

func RespondWith(w http.ResponseWriter, httpStatusCode int, respModel interface{})

RespondWith ...

func RespondWithBadRequestError

func RespondWithBadRequestError(w http.ResponseWriter, errMsg string)

RespondWithBadRequestError ...

func RespondWithError

func RespondWithError(w http.ResponseWriter, httpErrCode int, errMsg string)

RespondWithError ...

func RespondWithErrorJSON

func RespondWithErrorJSON(w http.ResponseWriter, httpErrCode int, respModel interface{})

RespondWithErrorJSON ...

func RespondWithNotFoundError

func RespondWithNotFoundError(w http.ResponseWriter, errMsg string)

RespondWithNotFoundError ...

func RespondWithSuccessOK

func RespondWithSuccessOK(w http.ResponseWriter, respModel interface{})

RespondWithSuccessOK ...

Types

type StandardErrorRespModel

type StandardErrorRespModel struct {
	ErrorMessage string `json:"error"`
}

StandardErrorRespModel ...

Jump to

Keyboard shortcuts

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