Documentation ¶
Index ¶
- Variables
- func Module() fx.Option
- type Auth
- func (s Auth) AuthByLoginInput(ctx context.Context, args model.LoginInput) (*ent.User, error)
- func (s Auth) AuthByToken(ctx context.Context, token string) (*ent.User, error)
- func (s Auth) CreateUser(ctx context.Context, args model.CreateUserInput) (*ent.User, error)
- func (s Auth) CurrentUser(ctx context.Context) (*ent.User, error)
- func (s Auth) SetUserToken(ctx context.Context, user *ent.User) error
- type Directive
- type Event
- type JWT
- type Mail
- type SendEmailRequest
- type Turnstile
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExpiredToken = errors.New("token expired") JWTSigningMethod = jwt.SigningMethodES512 )
Functions ¶
Types ¶
type Auth ¶
type Auth struct { fx.In Config *appconfig.Config Ent *ent.Client JWT JWT Turnstile Turnstile MailService Mail }
func (Auth) AuthByLoginInput ¶
func (Auth) AuthByToken ¶
func (Auth) CreateUser ¶
type Directive ¶
type Event ¶
func (Event) CalculateStats ¶
func (s Event) CalculateStats(ctx context.Context, researchID string, filterInput string, resultMappingInput string) (*model.GroupCountResult, error)
*
- CalculateStats filters events by filterInput and maps every event to a result using resultMappingInput, then group by result and count
- @param {string} filterInput can be jsonLogic or expr expression, depends on the filter implementation
- @param {string} resultMappingInput must be an expr expression
func (Event) CreateEventFromInput ¶
type SendEmailRequest ¶
type Turnstile ¶
func NewTurnstile ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.