util

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MPL-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeJSONHmac

func ComputeJSONHmac(hash, data, secret string, order bool) (string, error)

func EndOfMonth

func EndOfMonth(t time.Time) time.Time

func GenerateRandomString

func GenerateRandomString(s int) (string, error)

GenerateRandomString generates a random string source form /dev/urandom

func GenerateSecret

func GenerateSecret() (string, error)

func IsJSON

func IsJSON(s string) bool

func IsStringEmpty

func IsStringEmpty(s string) bool

IsStringEmpty checks if the given string s is empty or not

func JsonReMarshalString

func JsonReMarshalString(s string) (string, error)

func ParseMetadataFromEndpoints added in v0.1.0

func ParseMetadataFromEndpoints(endpoints []convoy.Endpoint) []convoy.EndpointMetadata

func StartOfMonth

func StartOfMonth(t time.Time) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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