utils

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendJWTtoContext

func AppendJWTtoContext(ctx context.Context) (context.Context, error)

AppendJWTtoContext assumes that the context already has a JWT. All it does is it converts it properly to be compliant with Authenticator in gRPC interceptor which expects it to be a part of the metadata key (created by metadata package) inside the context.

func SafeIntToUint32

func SafeIntToUint32(i int) (uint32, error)

func SafeIntToUint64

func SafeIntToUint64(i int) (uint64, error)

func SafeUint64ToInt

func SafeUint64ToInt(u uint64) (int, error)

func SafeUintToInt

func SafeUintToInt(u uint) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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