Documentation ¶
Index ¶
- Constants
- Variables
- func ClearTablesInDB(db *gorm.DB) error
- func CreateAndMigrateTestDB(dbName string) (*gorm.DB, error)
- func EnvironmentName() string
- func GenerateRandomString(length int) string
- func IsBackendInDocker() bool
- func IsDevEnv() bool
- func IsDevOrTestEnv() bool
- func IsHubspotEnabled() bool
- func IsInDocker() bool
- func IsOnPrem() bool
- func IsProduction() bool
- func IsTestEnv() bool
- func JsonStringToStringArray(s string) []*string
- func Recover()
- func RecoverAndCrash()
- func RestRequest(url string, method string, request interface{}, response interface{}) error
- func RunTestWithDBWipe(t *testing.T, db *gorm.DB, f func(t *testing.T))
- func RunTestWithDBWipeWithName(t *testing.T, db *gorm.DB, name string, f func(t *testing.T))
- func StringContainsAnyOf(str string, substrings []string) bool
- func UseSSL() bool
- type MultiSpan
- type Runtime
- type SpanConfig
- type SpanOption
- type Tracer
Constants ¶
View Source
const (
ContextKeyHighlightTracingDisabled contextKey = "HighlightTracingDisabled"
)
View Source
const KafkaBatchWorkerOp = "KafkaBatchWorker"
Variables ¶
View Source
var ( OnPrem = os.Getenv("ON_PREM") DopplerConfig = os.Getenv("DOPPLER_CONFIG") InDocker = os.Getenv("IN_DOCKER") InDockerGo = os.Getenv("IN_DOCKER_GO") Version = os.Getenv("REACT_APP_COMMIT_SHA") FrontendUri = os.Getenv("REACT_APP_FRONTEND_URI") PrivateGraphUri = os.Getenv("REACT_APP_PRIVATE_GRAPH_URI") PublicGraphUri = os.Getenv("REACT_APP_PUBLIC_GRAPH_URI") LicenseKey = os.Getenv("LICENSE_KEY") SSL = os.Getenv("SSL") )
Functions ¶
func ClearTablesInDB ¶
func EnvironmentName ¶
func EnvironmentName() string
func GenerateRandomString ¶
func IsBackendInDocker ¶
func IsBackendInDocker() bool
func IsDevOrTestEnv ¶
func IsDevOrTestEnv() bool
func IsHubspotEnabled ¶
func IsHubspotEnabled() bool
func IsInDocker ¶
func IsInDocker() bool
func IsProduction ¶
func IsProduction() bool
func JsonStringToStringArray ¶
func RecoverAndCrash ¶
func RecoverAndCrash()
func RestRequest ¶
Slim wrapper around sending a request with arbitrary request/response interfaces.
func StringContainsAnyOf ¶
Types ¶
type MultiSpan ¶
type MultiSpan struct {
// contains filtered or unexported fields
}
func StartSpan ¶
func StartSpan(operationName string, options ...SpanOption) MultiSpan
func StartSpanFromContext ¶
func (*MultiSpan) SetAttribute ¶
func (*MultiSpan) SetOperationName ¶
type SpanConfig ¶
type SpanOption ¶
type SpanOption func(cfg *SpanConfig)
func ResourceName ¶
func ResourceName(name string) SpanOption
func Tag ¶
func Tag(key string, name interface{}) SpanOption
func WithHighlightTracingDisabled ¶
func WithHighlightTracingDisabled(disabled bool) SpanOption
func WithSpanKind ¶
func WithSpanKind(kind trace.SpanKind) SpanOption
type Tracer ¶
type Tracer struct { graphql.HandlerExtension graphql.ResponseInterceptor graphql.FieldInterceptor // contains filtered or unexported fields }
func (Tracer) ExtensionName ¶
func (Tracer) InterceptField ¶
func (Tracer) InterceptResponse ¶
Click to show internal directories.
Click to hide internal directories.