rpclog

package
v0.0.0-...-aa2a11b Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MDLogFields = []string{"id", "service-name", "service-version", "limit", "offset"}

MDLogFields are logged from the context

Functions

func ClientOptions

func ClientOptions(log ttnlog.Interface) []grpc.DialOption

ClientOptions for logging RPCs

func FieldsFromIncomingContext

func FieldsFromIncomingContext(ctx context.Context) ttnlog.Fields

FieldsFromIncomingContext returns peer information and MDLogFields from the given context

func FieldsFromOutgoingContext

func FieldsFromOutgoingContext(ctx context.Context) ttnlog.Fields

FieldsFromOutgoingContext returns peer information and MDLogFields from the given context

func ServerOptions

func ServerOptions(log ttnlog.Interface) []grpc.ServerOption

ServerOptions for logging RPCs

func StreamClientInterceptor

func StreamClientInterceptor(log ttnlog.Interface) grpc.StreamClientInterceptor

StreamClientInterceptor logs streaming RPCs on the client side

func StreamServerInterceptor

func StreamServerInterceptor(log ttnlog.Interface) grpc.StreamServerInterceptor

StreamServerInterceptor logs streaming RPCs on the server side

func UnaryClientInterceptor

func UnaryClientInterceptor(log ttnlog.Interface) grpc.UnaryClientInterceptor

UnaryClientInterceptor logs unary RPCs on the client side

func UnaryServerInterceptor

func UnaryServerInterceptor(log ttnlog.Interface) grpc.UnaryServerInterceptor

UnaryServerInterceptor logs unary RPCs on the server side

Types

This section is empty.

Jump to

Keyboard shortcuts

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