package
0.0.0-20241108134845-45d51a34af52
Repository: https://github.com/ciazhar/go-zhar.git
Documentation: pkg.go.dev

# Functions

NewInMemoryAuthRepository creates a new instance of InMemoryAuthRepository with predefined users.
NewRedisTokenRepository creates a new instance of RedisTokenRepository.

# Structs

AccessToken represents a JWT access token with associated metadata.
InMemoryAuthRepository is an in-memory implementation of AuthRepository.
RedisTokenRepository is an implementation of TokenRepository using Redis.
User represents a user with an ID, username, and password.

# Interfaces

AuthRepository is an interface for authentication-related operations.
TokenRepository is an interface for token-related operations.