Documentation ¶
Index ¶
- func CatchErrorSentry(err error)
- func CatchPanicSentry()
- func CleanPath(path string) string
- func Escape(str string) string
- func GenerateID() string
- func GetLocalSentry() *sentry.Hub
- func InitSentry(cfg SentryConfig)
- func IsIPFS(hash string) bool
- func IsInt64PointersEqual(a, b *int64) bool
- func LocalCatchErrorSentry(hub *sentry.Hub, err error)
- func Max[T Number](a, b T) T
- func Min[T Number](a, b T) T
- func QuarterBoundaries(current time.Time) (time.Time, time.Time, error)
- func QuarterOf(month time.Month) int
- func SetLocalTagSentry(hub *sentry.Hub, key, value string)
- func SetTagSentry(key, value string)
- func SetUserIDSentry(id string)
- func Slug(alias string) string
- func SpaceStringsBuilder(str string) string
- func StringInArray(s string, arr []string) bool
- func URLJoin(baseURL, queryPath string) (string, error)
- type Number
- type SentryConfig
- type Set
- type SetKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanPath ¶
CleanPath makes a path safe for use with filepath.Join. This is done by not only cleaning the path, but also (if the path is relative) adding a leading '/' and cleaning it (then removing the leading '/'). This ensures that a path resulting from prepending another path will always resolve to lexically be a subdirectory of the prefixed path. This is all done lexically, so paths that include symlinks won't be safe as a result of using CleanPath.
func LocalCatchErrorSentry ¶
func LocalCatchErrorSentry(hub *sentry.Hub, err error)
LocalCatchErrorSentry -
func QuarterBoundaries ¶
QuarterBoundaries -
func SetLocalTagSentry ¶
func SetLocalTagSentry(hub *sentry.Hub, key, value string)
SetLocalTagSentry -
Types ¶
type SentryConfig ¶
Click to show internal directories.
Click to hide internal directories.