Documentation ¶
Overview ¶
Copyright 2020 CYBERCRYPT
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func Debug(ctx context.Context, msg string)
- func Error(ctx context.Context, msg string, err error)
- func Fatal(ctx context.Context, msg string, err error)
- func Info(ctx context.Context, msg string)
- func StreamLogInterceptor() grpc.StreamServerInterceptor
- func StreamMethodNameInterceptor() grpc.StreamServerInterceptor
- func StreamRequestIDInterceptor() grpc.StreamServerInterceptor
- func UnaryLogInterceptor() grpc.UnaryServerInterceptor
- func UnaryMethodNameInterceptor() grpc.UnaryServerInterceptor
- func UnaryRequestIDInterceptor() grpc.UnaryServerInterceptor
- func Warn(ctx context.Context, msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
The following functions wrap the standard logging functions in order to provide structured logging for our service
func StreamLogInterceptor ¶
func StreamLogInterceptor() grpc.StreamServerInterceptor
Logging interceptor for stream calls
func StreamMethodNameInterceptor ¶
func StreamMethodNameInterceptor() grpc.StreamServerInterceptor
Inject full method name into stream call
func StreamRequestIDInterceptor ¶
func StreamRequestIDInterceptor() grpc.StreamServerInterceptor
StreamRequestIDInterceptor injects a request-scoped requestID which is later propagated to subsequent calls for tracing purposes
func UnaryLogInterceptor ¶
func UnaryLogInterceptor() grpc.UnaryServerInterceptor
Logging interceptor for unary calls
func UnaryMethodNameInterceptor ¶
func UnaryMethodNameInterceptor() grpc.UnaryServerInterceptor
Inject full method name into unary call
func UnaryRequestIDInterceptor ¶
func UnaryRequestIDInterceptor() grpc.UnaryServerInterceptor
UnaryRequestIDInterceptor injects a request-scoped requestID which is later propagated to subsequent calls for tracing purposes
Types ¶
This section is empty.