mirror of
https://github.com/status-im/status-go.git
synced 2025-02-12 06:47:47 +00:00
* feat_: report panics to sentry * test_: sentry options, params and utils * feat_: toggle sentry with centralized metrics * test_: sentry init, report and close * refactor_: rename public api to generic * docs_: sentry * fix_: typo in internal/sentry/README.md Co-authored-by: osmaczko <33099791+osmaczko@users.noreply.github.com> * fix_: linter --------- Co-authored-by: osmaczko <33099791+osmaczko@users.noreply.github.com>
26 lines
656 B
Go
26 lines
656 B
Go
package requests
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var (
|
|
ErrInitializeApplicationInvalidDataDir = errors.New("initialize-centralized-metric: no dataDir")
|
|
)
|
|
|
|
type InitializeApplication struct {
|
|
DataDir string `json:"dataDir"`
|
|
MixpanelAppID string `json:"mixpanelAppId"`
|
|
MixpanelToken string `json:"mixpanelToken"`
|
|
// MediaServerEnableTLS is optional, if not provided, media server will use TLS by default
|
|
MediaServerEnableTLS *bool `json:"mediaServerEnableTLS"`
|
|
SentryDSN string `json:"sentryDSN"`
|
|
}
|
|
|
|
func (i *InitializeApplication) Validate() error {
|
|
if len(i.DataDir) == 0 {
|
|
return ErrInitializeApplicationInvalidDataDir
|
|
}
|
|
return nil
|
|
}
|