Documentation ¶
Index ¶
- Constants
- func GetGrpcClient() (isp.BackendServiceClient, error)
- func GetResponse(msg *isp.Message, err error) ([]byte, int, error)
- func LogRequestHandlerError(typeData, method string, err error)
- func MakeMetadata(r *fasthttp.RequestHeader, method string) (metadata.MD, string)
- func ReadJsonBody(ctx *fasthttp.RequestCtx) (interface{}, error)
- func SendError(errorMessage string, errorCode codes.Code, details []interface{}, ...)
Constants ¶
View Source
const (
JsonContentType = "application/json; charset=utf-8"
)
Variables ¶
This section is empty.
Functions ¶
func GetGrpcClient ¶
func GetGrpcClient() (isp.BackendServiceClient, error)
func LogRequestHandlerError ¶
func MakeMetadata ¶
func ReadJsonBody ¶
func ReadJsonBody(ctx *fasthttp.RequestCtx) (interface{}, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.