utils

package
v0.0.0-...-2e64496 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToBytes

func ConvertToBytes(inputStr string) (uint64, error)

func Exists

func Exists(path string) bool

func FsStatInfo

func FsStatInfo(path string) (int64, int64, int64, int64, int64, int64, error)

func GetEnv

func GetEnv(envName string, defaultValue string) string

func GetExecutionTime

func GetExecutionTime() int64

func GetLoggerId

func GetLoggerId(ctx context.Context) string

func GetPath

func GetPath(paths []string) string

func HttpExecuteUserAuth

func HttpExecuteUserAuth(ctx context.Context, httpClient *http.Client, requestType string, requestURL string, user string, password string, rawPayload interface{}) (*http.Response, error)

func MkDir

func MkDir(path string) error

func ReadFile

func ReadFile(path string) ([]byte, error)

func SetLoggerId

func SetLoggerId(ctx context.Context) context.Context

func StringInSlice

func StringInSlice(a string, list []string) bool

func Unmarshal

func Unmarshal(r *http.Request, object interface{}) error

func UnmarshalDataFromRequest

func UnmarshalDataFromRequest(r *http.Request, object interface{}) error

func UnmarshalResponse

func UnmarshalResponse(ctx context.Context, r *http.Response, object interface{}) error

func WriteResponse

func WriteResponse(w http.ResponseWriter, code int, object interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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