Documentation ¶
Index ¶
- func CleanPath(path string) string
- func FromPbJson[T proto.Message](reader io.Reader, obj T) error
- func Introspect(v interface{}) string
- func InvokeWithRetry(config RetryConfig, f RetriableFunc) error
- func IsEmptyString(s string) bool
- func MapStruct[T any](source interface{}, dest *T) error
- func NewUniqueId() string
- func SafelyGetValue[T any](target *T) T
- func TlsConfigFromEnvironment(serverName string) (tls.Config, error)
- func ToPbJson[T proto.Message](obj T, indent string) (string, error)
- type RetriableFunc
- type RetryConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Introspect ¶
func Introspect(v interface{}) string
Serialize an interface using JSON or return error string
func InvokeWithRetry ¶
func InvokeWithRetry(config RetryConfig, f RetriableFunc) error
func IsEmptyString ¶
func NewUniqueId ¶
func NewUniqueId() string
func SafelyGetValue ¶
func SafelyGetValue[T any](target *T) T
Types ¶
type RetriableFunc ¶
type RetryConfig ¶
Click to show internal directories.
Click to hide internal directories.