utils

package
v0.0.0-...-a0cf74a Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRunIdFromContext

func GetRunIdFromContext(ctx context.Context) string

func GetSourceFromContext

func GetSourceFromContext(ctx context.Context) string

func GetTenantFromContext

func GetTenantFromContext(ctx context.Context) string

func UnmarshalDateTime

func UnmarshalDateTime(input string) (*time.Time, error)

Deprecated, use common module method instead

func WithCustomContext

func WithCustomContext(ctx context.Context, customContext *CustomContext) context.Context

Types

type CustomContext

type CustomContext struct {
	Tenant string
	Source string
	RunId  string
}

func GetContext

func GetContext(ctx context.Context) *CustomContext

Jump to

Keyboard shortcuts

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