utils

package
v0.0.0-...-a3f729a Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupDB

func SetupDB() *gorm.DB

SetupDB connects to the database and migrates it if necessary

func SetupTelemetry

func SetupTelemetry(Version string)

SetupTelemetry initializes our telemetry stack - sentry to be connected with log - logrus to

Types

type ErrorResponse

type ErrorResponse struct {
	Error      string        `json:"error"`
	Details    []interface{} `json:"details,omitempty"`
	StatusCode int           `json:"-"`
}

func GrpcErrorToWebError

func GrpcErrorToWebError(err error) ErrorResponse

Jump to

Keyboard shortcuts

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