Documentation
¶
Index ¶
- func CreateNote(srv service.NoteService) http.HandlerFunc
- func GetPresignedUrls(srv service.NoteService) http.HandlerFunc
- func HardDeleteNote(srv service.NoteService) http.HandlerFunc
- func HealthCheckHandler(w http.ResponseWriter, r *http.Request)
- func ListNotesByUser(srv service.NoteService) http.HandlerFunc
- func ListTrashNotesByUser(srv service.NoteService) http.HandlerFunc
- func Me(srv service.AuthenticationService) http.HandlerFunc
- func NotFoundHandler(w http.ResponseWriter, r *http.Request)
- func OpenApiHanlder(w http.ResponseWriter, r *http.Request)
- func RestoreNote(srv service.NoteService) http.HandlerFunc
- func SignIn(srv service.AuthenticationService) http.HandlerFunc
- func SignOut(srv service.AuthenticationService) http.HandlerFunc
- func SoftDeleteNote(srv service.NoteService) http.HandlerFunc
- func UpdateNote(srv service.NoteService) http.HandlerFunc
- type CreateNoteRequest
- type GetPresignedUrlsRequest
- type HealthCheckResponse
- type ListNotesResponse
- type SignInRequest
- type UpdateNoteRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNote ¶
func CreateNote(srv service.NoteService) http.HandlerFunc
Handler for the sign-in endpoint
func GetPresignedUrls ¶
func GetPresignedUrls(srv service.NoteService) http.HandlerFunc
Handler for the get presigned urls endpoint
func HardDeleteNote ¶
func HardDeleteNote(srv service.NoteService) http.HandlerFunc
Handler for the delete note endpoint
func HealthCheckHandler ¶
func HealthCheckHandler(w http.ResponseWriter, r *http.Request)
HealthCheckHandler handles HTTP requests for checking the health status of the server.
func ListNotesByUser ¶
func ListNotesByUser(srv service.NoteService) http.HandlerFunc
Handler for the list notes endpoint
func ListTrashNotesByUser ¶
func ListTrashNotesByUser(srv service.NoteService) http.HandlerFunc
Handler for the list trash notes endpoint
func NotFoundHandler ¶
func NotFoundHandler(w http.ResponseWriter, r *http.Request)
NotFoundHandler handles requests to non-existent resources.
func OpenApiHanlder ¶
func OpenApiHanlder(w http.ResponseWriter, r *http.Request)
OpenApiHanlder handles requests for the OpenAPI specification.
func RestoreNote ¶
func RestoreNote(srv service.NoteService) http.HandlerFunc
Handler for the update note endpoint
func SignIn ¶
func SignIn(srv service.AuthenticationService) http.HandlerFunc
Handler for the sign-in endpoint
func SignOut ¶
func SignOut(srv service.AuthenticationService) http.HandlerFunc
Handler for the sign-out endpoint
func SoftDeleteNote ¶
func SoftDeleteNote(srv service.NoteService) http.HandlerFunc
Handler for the soft delete note endpoint
func UpdateNote ¶
func UpdateNote(srv service.NoteService) http.HandlerFunc
Handler for the update note endpoint
Types ¶
type CreateNoteRequest ¶
type CreateNoteRequest struct { Title string `json:"title"` Content string `json:"content"` ObjectNames []string `json:"object_names"` }
Represents the structure of the create note request
func (CreateNoteRequest) Validate ¶
func (r CreateNoteRequest) Validate() map[string]string
Validates the create note request
type GetPresignedUrlsRequest ¶
type GetPresignedUrlsRequest struct {
ObjectNames []string `json:"object_names"`
}
Represents the structure of the get presigned urls request
func (GetPresignedUrlsRequest) Validate ¶
func (r GetPresignedUrlsRequest) Validate() map[string]string
Validates the get presigned urls request
type HealthCheckResponse ¶
type HealthCheckResponse struct {
Status string `json:"status"`
}
HealthCheckResponse represents the structure of the health check response
type ListNotesResponse ¶
type ListNotesResponse struct { Notes *[]domain.Note `json:"notes"` Cursor time.Time `json:"cursor"` }
Represent the structure of the list notes response
type SignInRequest ¶
Represents the structure of the sign-in request
func (SignInRequest) Validate ¶
func (r SignInRequest) Validate() map[string]string
Validates the sign-in request
type UpdateNoteRequest ¶
Represents the structure of the update note request
func (UpdateNoteRequest) Validate ¶
func (r UpdateNoteRequest) Validate() map[string]string
Validates the update note request