serverutils

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractRequestMetadata

func ExtractRequestMetadata(_ context.Context, request *http.Request) metadata.MD

func GetUserIdentifier

func GetUserIdentifier(ctx context.Context) (string, error)

func ToRPCError

func ToRPCError(e error) error

ToRPCError returns an instance of gRPC Error Status equivalent to the given error value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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