Documentation ¶
Index ¶
- Constants
- func DontLogError(ctx context.Context)
- func GetSerialization(ctx context.Context) (string, bool)
- func HasDontLogError(ctx context.Context) bool
- func IsGRPCRequest(ctx context.Context) bool
- func IsHTTPRequest(ctx context.Context) bool
- func SerializeOutJSON(ctx context.Context)
- func SerializeOutJSONPB(ctx context.Context)
- func SerializeOutProtoBuf(ctx context.Context)
Constants ¶
View Source
const ( RequestHTTP = "OrionRequestHTTP" RequestGRPC = "OrionRequestGRPC" JSON = "JSON" JSONPB = "JSONPB" ProtoBuf = "PROTO" IgnoreError = "IGNORE_ERROR" )
constatnts for specific serializers
Variables ¶
This section is empty.
Functions ¶
func DontLogError ¶
DontLogError makes sure, error returned is not reported to external services
func GetSerialization ¶
GetSerialization gets the serialization type for the given response
func HasDontLogError ¶
HasDontLogError check ifs the error should be reported or not
func IsGRPCRequest ¶
IsGRPCRequest returns true if this is pure grpc request
func IsHTTPRequest ¶
IsHTTPRequest returns true if this is pure http request
func SerializeOutJSON ¶
SerializeOutJSON forces the output to be json.Marshal for http request
func SerializeOutJSONPB ¶
SerializeOutJSONPB forces the output to be jsonpb.Marshal for http request
func SerializeOutProtoBuf ¶
SerializeOutProtoBuf forces the output to be protobuf binary for http request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.