Documentation ¶
Index ¶
- func Compress(logStringToSend *string) []byte
- func CompressBuffer(inputbuf *bytes.Buffer) *bytes.Buffer
- func ParseJson(s string) (js map[string]interface{}, err error)
- func PrettyPrint(v interface{}) string
- func Retry(fn Func, maxRetries int) error
- func StringInSlice(a string, list []string) bool
- func UploadToS3(bucketName *string, keyName *string, data io.Reader) error
- type Func
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressBuffer ¶
CompressBuffer compresses string and returns byte array
func Retry ¶
Retry keeps trying the function until the second argument returns false, or no error is returned.
func StringInSlice ¶
StringInSlice checks string present in slice of strings
Types ¶
Click to show internal directories.
Click to hide internal directories.