Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type FakeRepository ¶
type FakeRepository struct {
Sessions []Session
}
func (*FakeRepository) SessionAdd ¶
func (r *FakeRepository) SessionAdd(session Session) error
func (*FakeRepository) SessionGetByRememberTokenHash ¶
func (r *FakeRepository) SessionGetByRememberTokenHash(hash string) (Session, error)
type Repository ¶
type Repository interface { // SessionAdd saves a new user Session. SessionAdd(Session) error // SessionGetByRememberTokenHash returns the Session corresponding to a // given remember token hash. SessionGetByRememberTokenHash(hash string) (Session, error) }
Repository provides access to the user Web Session repoository.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles operations for the user session domain.
func NewService ¶
func NewService(r Repository, hmacKey string) *Service
NewServices initializes and returns a Session Service.
Click to show internal directories.
Click to hide internal directories.