utils

package
v0.0.0-...-1de0c19 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JsonContentType = "application/json; charset=utf-8"
)

Variables

This section is empty.

Functions

func GetGrpcClient

func GetGrpcClient() (isp.BackendServiceClient, error)

func GetResponse

func GetResponse(msg *isp.Message, err error) ([]byte, int, error)

func LogRequestHandlerError

func LogRequestHandlerError(typeData, method string, err error)

func MakeMetadata

func MakeMetadata(r *fasthttp.RequestHeader, method string) (metadata.MD, string)

func ReadJsonBody

func ReadJsonBody(ctx *fasthttp.RequestCtx) (interface{}, error)

func SendError

func SendError(errorMessage string, errorCode codes.Code, details []interface{}, ctx *fasthttp.RequestCtx)

Types

This section is empty.

Jump to

Keyboard shortcuts

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