Documentation
¶
Index ¶
- type AuthPersistencyLayer
- type AuthService
- func (as *AuthService) AuthLogin(message event.LoginEvent, psk security.PSK) (authInfo event.LoginResponse, err error)
- func (as *AuthService) AuthLogout()
- func (as *AuthService) IsAuthenticated() bool
- func (as *AuthService) PrivateKey() ed25519.PrivateKey
- func (as *AuthService) Reset()
- func (as *AuthService) Storage() AuthPersistencyLayer
- type UserPersistencyLayer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthPersistencyLayer ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService( ctx context.Context, authRepo AuthPersistencyLayer, userRepo UserPersistencyLayer, authReady chan domain.AuthNodeInfo, ) *AuthService
func (*AuthService) AuthLogin ¶
func (as *AuthService) AuthLogin(message event.LoginEvent, psk security.PSK) (authInfo event.LoginResponse, err error)
func (*AuthService) AuthLogout ¶ added in v0.6.175
func (as *AuthService) AuthLogout()
func (*AuthService) IsAuthenticated ¶
func (as *AuthService) IsAuthenticated() bool
func (*AuthService) PrivateKey ¶
func (as *AuthService) PrivateKey() ed25519.PrivateKey
func (*AuthService) Reset ¶ added in v0.7.179
func (as *AuthService) Reset()
Reset clears the authenticated guard so the same process can log in again after a logout. The remote node keeps its node running and reopens the database on the next login; the member app stops its node and raises a new one, so both call this once the logout has gone through.
func (*AuthService) Storage ¶
func (as *AuthService) Storage() AuthPersistencyLayer
Click to show internal directories.
Click to hide internal directories.