Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationService ¶
type AuthenticationService interface { SignIn(ctx context.Context, email string, password string) (*SignInResponse, error) SignOut(ctx context.Context) error Me(ctx context.Context) (*MeResponse, error) }
func NewAuthenticationService ¶
func NewAuthenticationService(jwtDatasource domain.JwtDatasource, hashDatasource domain.HashDatasource, userRepository domain.UserRepository, accessTokenRepository domain.AccessTokenRepository, refreshTokenRepository domain.RefreshTokenRepository) AuthenticationService
type CreateNoteResponse ¶
type MeResponse ¶
type NoteService ¶
type NoteService interface { CreateNote(ctx context.Context, title string, content string) (*CreateNoteResponse, error) ListTrashNotesByUser(ctx context.Context, cursor time.Time) (*[]domain.Note, error) ListNotesByUser(ctx context.Context, cursor time.Time) (*[]domain.Note, error) RestoreNote(ctx context.Context, id uuid.UUID) (*domain.Note, error) DeleteNote(ctx context.Context, id uuid.UUID, hard bool) error UpdateNote(ctx context.Context, note *domain.Note) (*domain.Note, error) }
func NewNoteService ¶
func NewNoteService(noteRepository domain.NoteRepository) NoteService
Click to show internal directories.
Click to hide internal directories.