service

package
v0.0.0-...-308d6b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize(token string) (interface{}, error)

Validates the token and returns the account_id or and error if the validation goes wrong

func CreateToken

func CreateToken(u entities.Account) (string, error)

func NewAuthService

func NewAuthService(accUseCase account.UseCase) auth.Service

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

func (Auth) Authenticate

func (a Auth) Authenticate(ctx context.Context, CPF, secret string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL