Documentation
¶
Index ¶
- Constants
- Variables
- func CleanEndpoint(s string) (string, error)
- func ComputeJSONHmac(hash, data, secret string, order bool) (string, error)
- func ConvertDefaultHeaderToCustomHeader(h *http.Header) *datastore.HttpHeader
- func EndOfMonth(t time.Time) time.Time
- func GenerateAPIKey() (string, string)
- func GenerateRandomString(n int) (string, error)
- func GenerateSecret() (string, error)
- func IsJSON(s string) bool
- func IsStringEmpty(s string) bool
- func JsonReMarshalString(s string) (string, error)
- func MongoExportArgsBuilder(uri string, collection string, query string, out string) []string
- func ReadJSON(r *http.Request, dst interface{}) error
- func StartOfMonth(t time.Time) time.Time
- func Validate(dst interface{}) error
- type DBExporter
- type MongoExporter
Constants ¶
View Source
const ( Prefix string = "CO" Seperator string = "." )
Variables ¶
View Source
var ( VersionStr = "build-without-version-string" GitCommit = "build-without-git-commit" )
View Source
var ErrEmptyBody = errors.New("body must not be empty")
Functions ¶
func CleanEndpoint ¶
func ConvertDefaultHeaderToCustomHeader ¶
func ConvertDefaultHeaderToCustomHeader(h *http.Header) *datastore.HttpHeader
ConvertDefaultHeaderToCustomHeader converts http.Header to convoy.HttpHeader
func GenerateAPIKey ¶
func GenerateRandomString ¶
func GenerateSecret ¶
func IsStringEmpty ¶
IsStringEmpty checks if the given string s is empty or not
func JsonReMarshalString ¶
func MongoExportArgsBuilder ¶ added in v0.6.0
Types ¶
type DBExporter ¶ added in v0.6.0
type MongoExporter ¶ added in v0.6.0
type MongoExporter struct {
Args []string
}
func (*MongoExporter) Export ¶ added in v0.6.0
func (me *MongoExporter) Export() (int64, error)
Click to show internal directories.
Click to hide internal directories.