utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagRunName = "mlflow.runName"
	TagUser    = "mlflow.user"
)

Variables

This section is empty.

Functions

func AppendToURIPath

func AppendToURIPath(uri string, paths ...string) (string, error)

func ConvertInt32PointerToStringPointer

func ConvertInt32PointerToStringPointer(iPtr *int32) *string

func ConvertStringPointerToInt32Pointer

func ConvertStringPointerToInt32Pointer(s *string) int32

func DumpStringPointer

func DumpStringPointer(s *string) string

func GenerateRandomName

func GenerateRandomName() (string, error)

GenerateRandomName generates random name for `run`.

func GetLoggerFromContext

func GetLoggerFromContext(ctx context.Context) *logrus.Logger

func IsNilOrEmptyString

func IsNilOrEmptyString(v *string) bool

func IsNotNilOrEmptyString

func IsNotNilOrEmptyString(v *string) bool

func NewContextWithLogger

func NewContextWithLogger(ctx context.Context, logger *logrus.Logger) context.Context

func NewContextWithLoggerFromFiberContext

func NewContextWithLoggerFromFiberContext(c *fiber.Ctx) context.Context

NewContextWithLoggerFromFiberContext transfer logger from Fiber context to a normal context.Context object.

func NewLoggerFromConfig

func NewLoggerFromConfig(cfg *config.Config) *logrus.Logger

func NewUUID

func NewUUID() string

func PtrTo

func PtrTo[T any](v T) *T

Types

This section is empty.

Jump to

Keyboard shortcuts

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