usecase

package
v0.0.0-...-faa6eb1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

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

func NewAuth

func NewAuth(repo repository.AuthI, decoder repository.JWToken, actor string, logger kitlog.Logger) *Auth

func (*Auth) GetAccountDetail

func (a *Auth) GetAccountDetail(ctx context.Context, username string) (*model.UserDetail, error)

GetAccountDetail ...

func (*Auth) GetCurrenrLoginFromToken

func (a *Auth) GetCurrenrLoginFromToken(ctx context.Context, token string) (*model.Actor, error)

GetCurrenrLoginFromToken ...

type Service

type Service interface {
	GetCurrenrLoginFromToken(ctx context.Context, token string) (*model.Actor, error)
	GetAccountDetail(ctx context.Context, username string) (*model.UserDetail, error)
}

Jump to

Keyboard shortcuts

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