package
0.0.0-20230704193043-9b6346a66585
Repository: https://github.com/jecsand/go-grpc-server-boilerplate.git
Documentation: pkg.go.dev

# Functions

AttachTokenToContext inputs ctx and an auth token and returns ctx with token attached.
BoolToStr converts a bool to a string value.
CheckObjectID checks whether a hexID is null or now.
ErrorResponse GRPC Error response.
GenerateObjectID for index keying records of data.
GetTokenFromContext parses an auth token from content metadata.
MapGRPCErrCodeToHttpStatus Map GRPC errors codes to http status.
NewAPILogger Logger constructor.
No description provided by the author
ParseGRPCErrStatusCode Parse error and get code.
StrToBool converts a string to a bool.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

JsonErr structures a standard error to return.
JWTError is a struct that is used to contain a json encoded error message for any JWT related errors.
Pagination query params.

# Interfaces

Logger methods interface.