package
1.0.34
Repository: https://github.com/go-masonry/mortar.git
Documentation: pkg.go.dev

# Functions

CreateProtobufHTTPClient Creates a custom Protobuf aware HTTP client.
MarshalMessageBody convenience method to marshal different interfaces into JSON.
Obfuscate is a helper function to obfuscate a string, used mostly to hide passwords, etc.
SplitMethodAndPackage is a helper method to split gRPC `package.service/method`.

# Variables

DefaultProtobufHTTPClient uses default http Client, error mapper and marshaller.

# Interfaces

ProtobufHTTPClient is a helper util in situations where you want to call a REST API, but you have all the definitions as Protobuf.

# Type aliases

ErrorMapper is a map function that maps HTTP Status Code into its gRPC counter part.
MDTraceCarrier is an implementation for Tracing carrier, it will hold traceID, etc.