Lint / Lint (push) Successful in 1m29s
Security / Secrets (gitleaks) (push) Successful in 1m11s
Security / Dependencies (Trivy) (push) Successful in 1m59s
Tests / Dashboard checks (push) Successful in 1m49s
Security / Code (Semgrep) (push) Successful in 3m8s
Tests / Go backend (push) Successful in 2m50s
Docker / Docker Build & Push (push) Successful in 8m42s
- Target API 37 and use build-tools 37 for release signature checks - Adjust list pagination spacing and clarify shared backend docs
19 lines
759 B
Go
19 lines
759 B
Go
package syncsocket
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type loginRequiredStore struct{}
|
|
|
|
func (loginRequiredStore) LoginRequired(context.Context) (bool, error) { return true, nil }
|
|
func (loginRequiredStore) SetLoginRequired(context.Context, bool) error { return nil }
|
|
func (loginRequiredStore) IsSetupClaimed(context.Context) (bool, error) { return true, nil }
|
|
func (loginRequiredStore) TryClaimSetup(context.Context) (bool, error) { return false, nil }
|
|
func (loginRequiredStore) UnclaimSetup(context.Context) error { return nil }
|
|
|
|
// loginOffStore is loginRequiredStore with login switched off for the whole application.
|
|
type loginOffStore struct{ loginRequiredStore }
|
|
|
|
func (loginOffStore) LoginRequired(context.Context) (bool, error) { return false, nil }
|