services

package
v0.0.0-...-7f7c05f Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JWT_TOKEN_SIGNING_KEY = "AllYourBase"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

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

func NewAuthService

func NewAuthService(usrStrCli usrstrpb.UserServiceClient, refTknStrCli reftknstrpb.TokenServiceClient) *AuthService

func (*AuthService) CreateUser

func (s *AuthService) CreateUser(user *models.User) (*models.User, error)

func (*AuthService) GetTokens

func (s *AuthService) GetTokens(userId int64) (*models.AuthToken, error)

func (*AuthService) PurgeRefreshToken

func (s *AuthService) PurgeRefreshToken(userId int64) (int64, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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