Documentation ¶
Index ¶
- Constants
- func BoolToString(str string) (bool, error)
- func DecodeBase64(s string) string
- func EncodeBase64(s string) string
- func EnforcePtr(obj interface{}) (reflect.Value, error)
- func HumanizeTimeDuration(duration time.Duration) string
- func Int64ToInt(i int64) int
- func IntToString(i int) string
- func NewReader(r io.Reader) (io.Reader, error)
- func ParseRequestQueryParametersToProto(message proto.Message, values url.Values) error
- func ParseRequestUrlParametersToProto(r *http.Request, message proto.Message, param string) error
- func PrepareHeaderFromRequest(req *http.Request) (map[string]string, error)
- func SetRawBodyToProto(r *http.Request, message proto.Message, param string) error
- func StringToBool(s string) bool
- func StringToFloat(s string) float64
- func StringToInt(s string) int
- func StringToInt64(s string) int64
- func StringToUint(s string) uint
- func ToBoolPointer(v bool) *bool
- func ToDurationPointer(v time.Duration) *time.Duration
- func ToInt64Pointer(v int64) *int64
- func ToIntPointer(v int) *int
- func ToStringPointer(v string) *string
- func ToTrimRegexFromQueryParameter(v string) string
Constants ¶
View Source
const ( MetadataPrefix = "router-" MetadataHeaderPrefix = "Router-Metadata-" )
Variables ¶
This section is empty.
Functions ¶
func BoolToString ¶
func DecodeBase64 ¶
func EncodeBase64 ¶
func EnforcePtr ¶
func HumanizeTimeDuration ¶
func Int64ToInt ¶
func IntToString ¶
func SetRawBodyToProto ¶
func StringToBool ¶
func StringToFloat ¶
func StringToInt ¶
func StringToInt64 ¶
func StringToUint ¶
func ToBoolPointer ¶
func ToInt64Pointer ¶
func ToIntPointer ¶
func ToStringPointer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.