internal

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthUsecase added in v1.0.0

type AuthUsecase interface {
	SSO(token string, authenticator SSOAuthenticator) (*entity.User, error)
	GenerateAuthToken(user entity.User, tokenizer Tokenizer) (string, error)
}

type SSOAuthenticator added in v1.0.0

type SSOAuthenticator interface {
	Authenticate(token string) (*entity.User, error)
}

type TodoRepository

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

type TodoUsecase added in v1.0.0

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

type Tokenizer added in v1.0.0

type Tokenizer interface {
	Generate(entity.TokenPayload) (string, error)
}

type UserRepository

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

Directories

Path Synopsis
delivery
web
pkg
repository

Jump to

Keyboard shortcuts

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