pkg

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHeader

func CheckHeader(request *restful.Request) bool

CheckHeader to see if contains table

func CopyTo

func CopyTo(src protoreflect.ProtoMessage, dst interface{}) error

CopyTo is a helper function to copy a struct to another struct using the json marshal and unmarshal

func RequestInfoResolver

func RequestInfoResolver() *request.RequestInfoFactory

RequestInfoResolver is a function that returns a RequestInfo object

func RespondError

func RespondError(requestInfo *request.RequestInfo, reason string) metav1.Status

func RespondNotFound

func RespondNotFound(requestInfo *request.RequestInfo) metav1.Status

func TimeDiff

func TimeDiff(t time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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