getviewer

package
v0.0.0-...-f85edf5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetViewerController

func GetViewerController(res http.ResponseWriter, req *http.Request, ctx *router.Context)

Types

type GetViewerUseCase

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

func NewGetViewerUseCase

func NewGetViewerUseCase(r Repo) *GetViewerUseCase

func (*GetViewerUseCase) Execute

func (uc *GetViewerUseCase) Execute(accessToken string) (*dtos.ViewerDTO, *usecase.UseCaseError)

type Repo

type Repo interface {
	GetViewerByUserId(id string) (*dtos.ViewerDTO, error)
}

Jump to

Keyboard shortcuts

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