internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService interface {
	Register(entity.CreateUserParam) (*entity.User, error)
	GetUserByEmail(string) (*entity.User, error)
	GetGoogleAuthPayload(entity.GoogleAuth) (*idtoken.Payload, error)
	GenerateJWTToken(entity.JWTPayload) (string, error)
}

type TodoRepository

type TodoRepository interface {
	GetTodosByUserID(primitive.ObjectID) ([]entity.Todo, error)
	Create(entity.CreateTodoParam) (*entity.Todo, error)
	UpdateById(primitive.ObjectID, entity.UpdateTodoParam) (*entity.Todo, error)
	DeleteById(primitive.ObjectID) (bool, error)
}

type TodoService

type TodoService interface {
	GetAllUserTodos(primitive.ObjectID) ([]entity.Todo, error)
	CreateTodo(entity.CreateTodoParam) (*entity.Todo, error)
	UpdateTodo(primitive.ObjectID, entity.UpdateTodoParam) (*entity.Todo, error)
	DeleteTodo(primitive.ObjectID) (bool, error)
}

type UserRepository

type UserRepository interface {
	GetUserByEmail(string) (*entity.User, error)
	Create(entity.CreateUserParam) (*entity.User, error)
}

Directories

Path Synopsis
delivery
web
repository

Jump to

Keyboard shortcuts

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