github.com/resonatecoop/user-api@v1.0.0-13.0.20220915120639-05dc9c04014a/mock/auth.go (about)

     1  package mock
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/resonatecoop/user-api/model"
     7  )
     8  
     9  // Auth mock
    10  type Auth struct {
    11  	GetUserFn func(context.Context) *model.AuthUser
    12  }
    13  
    14  // GetUser mock
    15  func (s *Auth) GetUser(c context.Context) *model.AuthUser {
    16  	return s.GetUserFn(c)
    17  }