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 }
|