Documentation ¶
Index ¶
- Variables
- type CreateNoteRequest
- type CreateNoteRequestHandler
- type CreateNoteResponse
- type DeleteNoteRequest
- type DeleteNoteRequestHandler
- type DeleteNoteResponse
- type GetNoteRequest
- type GetNoteRequestHandler
- type GetNoteResponse
- type GetNotesAsyncRequest
- type GetNotesAsyncRequestHandler
- type GetNotesAsyncResponse
- type GetNotesRequest
- type GetNotesRequestHandler
- type GetNotesResponse
- type NoteDeleter
- type NoteFinder
- type NoteSaver
- type NoteUpdater
- type UpdateNoteRequest
- type UpdateNoteRequestHandler
- type UpdateNoteResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCreateNoteAlreadyExist = func() error { return domain.ErrNoteAlreadyExist }()
View Source
var ErrDeleteNoteNotFound = func() error { return domain.ErrNoteNotFound }()
View Source
var ErrGetNoteNotFound = func() error { return domain.ErrNoteNotFound }()
View Source
var ErrGetNotesAsyncNotFound = func() error { return domain.ErrNoteNotFound }()
View Source
var ErrGetNotesNotFound = func() error { return domain.ErrNoteNotFound }()
View Source
var ErrUpdateNoteNotFound = func() error { return domain.ErrNoteNotFound }()
Functions ¶
This section is empty.
Types ¶
type CreateNoteRequest ¶
type CreateNoteRequestHandler ¶
type CreateNoteRequestHandler interface {
Handle(ctx context.Context, request CreateNoteRequest) (CreateNoteResponse, error)
}
func NewCreateNoteRequestHandler ¶
func NewCreateNoteRequestHandler(noteSaver NoteSaver) CreateNoteRequestHandler
type CreateNoteResponse ¶
type DeleteNoteRequest ¶
type DeleteNoteRequest struct {
ID string
}
type DeleteNoteRequestHandler ¶
type DeleteNoteRequestHandler interface {
Handle(ctx context.Context, request DeleteNoteRequest) (DeleteNoteResponse, error)
}
func NewDeleteNoteRequestHandler ¶
func NewDeleteNoteRequestHandler(noteDeleter NoteDeleter) DeleteNoteRequestHandler
type DeleteNoteResponse ¶
type DeleteNoteResponse struct { }
type GetNoteRequest ¶
type GetNoteRequest struct {
ID string
}
type GetNoteRequestHandler ¶
type GetNoteRequestHandler interface {
Handle(ctx context.Context, request GetNoteRequest) (GetNoteResponse, error)
}
func NewGetNoteRequestHandler ¶
func NewGetNoteRequestHandler(noteFinder NoteFinder) GetNoteRequestHandler
type GetNoteResponse ¶
type GetNotesAsyncRequest ¶
type GetNotesAsyncRequest struct {
UserID string
}
type GetNotesAsyncRequestHandler ¶
type GetNotesAsyncRequestHandler interface {
Handle(ctx context.Context, request GetNotesAsyncRequest) (GetNotesAsyncResponse, <-chan error)
}
func NewGetNotesAsyncRequestHandler ¶
func NewGetNotesAsyncRequestHandler(noteFinder NoteFinder) GetNotesAsyncRequestHandler
type GetNotesAsyncResponse ¶
type GetNotesRequest ¶
type GetNotesRequest struct {
UserID string
}
type GetNotesRequestHandler ¶
type GetNotesRequestHandler interface {
Handle(ctx context.Context, request GetNotesRequest) (GetNotesResponse, error)
}
func NewGetNotesRequestHandler ¶
func NewGetNotesRequestHandler(noteFinder NoteFinder) GetNotesRequestHandler
type GetNotesResponse ¶
type NoteDeleter ¶
type NoteFinder ¶
type NoteUpdater ¶
type UpdateNoteRequest ¶
type UpdateNoteRequestHandler ¶
type UpdateNoteRequestHandler interface {
Handle(ctx context.Context, request UpdateNoteRequest) (UpdateNoteResponse, error)
}
func NewUpdateNoteRequestHandler ¶
func NewUpdateNoteRequestHandler(noteUpdater NoteUpdater) UpdateNoteRequestHandler
type UpdateNoteResponse ¶
type UpdateNoteResponse struct { }
Click to show internal directories.
Click to hide internal directories.