util

package
v0.0.0-...-ac5cff2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidReq

func IsValidReq(req *pb.SubscribeRequest) bool

func MessageToAny

func MessageToAny(msg proto.Message) *anypb.Any

MessageToAny converts from proto message to proto Any

func MessageToAnyWithError

func MessageToAnyWithError(msg proto.Message) (*anypb.Any, error)

MessageToAnyWithError converts from proto message to proto Any

func RatioStr2Float

func RatioStr2Float(ratioStr string) (float64, error)

func Str2CBStrategy

func Str2CBStrategy(cbStr string) pb.CircuitBreakerStrategy_Strategy

func Str2MillSeconds

func Str2MillSeconds(timeStr string) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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