package init
import "github.com/go-arrower/arrower/contexts/auth/init"
Index ¶
- func NewMemoryAPI(opts ...repository.Option) auth.API
- type AuthContext
- func NewAuthContext(di *arrower.Container) (*AuthContext, error)
- func (c *AuthContext) Shutdown(_ context.Context) error
- type Config
- type MemoryAPI
- func (api *MemoryAPI) FindUserByID(ctx context.Context, id auth.UserID) (auth.User, error)
- func (api *MemoryAPI) SaveUser(ctx context.Context, user auth.User) error
- type PWConfirmation
Functions ¶
func NewMemoryAPI ¶
func NewMemoryAPI(opts ...repository.Option) auth.API
Types ¶
type AuthContext ¶
type AuthContext struct {
// contains filtered or unexported fields
}
func NewAuthContext ¶
func NewAuthContext(di *arrower.Container) (*AuthContext, error)
func (*AuthContext) Shutdown ¶
func (c *AuthContext) Shutdown(_ context.Context) error
type Config ¶
type Config struct { Mailer any // smtp <> local etc. UserProvider any // future music PWConfirmation PWConfirmation PwHashCost int LoginThrottle int // time in sec until a new login attempt can be made InsecureAllowAnyPWStrength bool RegisterAllowed bool // enabled | disabled RegisterAdminRoutes bool }
type MemoryAPI ¶
type MemoryAPI struct {
// contains filtered or unexported fields
}
func (*MemoryAPI) FindUserByID ¶
func (*MemoryAPI) SaveUser ¶
type PWConfirmation ¶
Source Files ¶
admin.auth.go cmd.auth.go config.auth.go init.auth.go inmemory.api.auth.go jobs.auth.go rest.auth.go web.auth.go
- Version
- v0.0.0-20250311203644-ab26c1152cb4 (latest)
- Published
- Mar 11, 2025
- Platform
- linux/amd64
- Imports
- 23 packages
- Last checked
- 1 week ago –
Tools for package owners.