helpers

package
v0.0.0-...-54d343b Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayUniqueLen

func ArrayUniqueLen(arr []string) int

ArrayUniqueLen -

func CatchErrorSentry

func CatchErrorSentry(err error)

CatchErrorSentry -

func CatchPanicSentry

func CatchPanicSentry()

CatchPanicSentry -

func GetLocalSentry

func GetLocalSentry() *sentry.Hub

GetLocalSentry -

func InitSentry

func InitSentry(dsn string, debug bool)

InitSentry -

func LocalCatchErrorSentry

func LocalCatchErrorSentry(hub *sentry.Hub, err error)

LocalCatchErrorSentry -

func LocalCatchPanicSentry

func LocalCatchPanicSentry(hub *sentry.Hub)

LocalCatchPanicSentry -

func SentryMiddleware

func SentryMiddleware() gin.HandlerFunc

SentryMiddleware -

func SetLocalTagSentry

func SetLocalTagSentry(hub *sentry.Hub, key, value string)

SetLocalTagSentry -

func SetTagSentry

func SetTagSentry(key, value string)

SetTagSentry -

func SetUserIDSentry

func SetUserIDSentry(id string)

SetUserIDSentry -

func StringInArray

func StringInArray(s string, arr []string) bool

StringInArray -

Types

type Set

type Set map[string]struct{}

Set -

func (Set) Append

func (s Set) Append(str ...string)

Append - append items to set

func (Set) Len

func (s Set) Len() int

Len - returns length of set

func (Set) Values

func (s Set) Values() []string

Values - return keys

Jump to

Keyboard shortcuts

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