Documentation ¶
Index ¶
- func GetFeed(repo *repository.Repository) fiber.Handler
- func GetFeedDetail(repo *repository.Repository) fiber.Handler
- func GetFeedDetailMock() fiber.Handler
- func GetFeedDetailOvoMock(repo *repository.Repository) fiber.Handler
- func GetFeedMock() fiber.Handler
- func GetFeedsOvoMock(repo *repository.Repository) fiber.Handler
- func HealthCheck(ctx *fiber.Ctx) error
- func RedirectSwagger(ctx *fiber.Ctx) error
- func UpdateOvoData() fiber.Handler
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFeed ¶
func GetFeed(repo *repository.Repository) fiber.Handler
GetFeed godoc
@Summary Get Feeds @Tags Feed @Produce json @Success 200 {object} feeds.Response @Router /feeds [GET]
func GetFeedDetail ¶
func GetFeedDetail(repo *repository.Repository) fiber.Handler
GetFeedDetail godoc
@Summary Get Feed Detail @Tags Feed @Produce json @Success 200 {object} feeds.FeedDetailResponse @Router /feed/{neighborhoodId} [GET]
func GetFeedDetailMock ¶
func GetFeedDetailMock() fiber.Handler
GetFeedDetailMock godoc
@Summary Get Feed Detail mock @Tags Feed @Produce json @Success 200 {object} feeds.FeedDetailResponse @Router /mock/feed/{neighborhoodId} [GET]
func GetFeedDetailOvoMock ¶
func GetFeedDetailOvoMock(repo *repository.Repository) fiber.Handler
func GetFeedMock ¶
func GetFeedMock() fiber.Handler
GetFeedMock godoc
@Summary Get Feeds mock @Tags Feed @Produce json @Success 200 {object} feeds.Response @Router /mock/feeds [GET]
func GetFeedsOvoMock ¶
func GetFeedsOvoMock(repo *repository.Repository) fiber.Handler
func HealthCheck ¶
func HealthCheck(ctx *fiber.Ctx) error
func RedirectSwagger ¶
func RedirectSwagger(ctx *fiber.Ctx) error
func UpdateOvoData ¶
func UpdateOvoData() fiber.Handler
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Field string `json:"field"` Message string `json:"message"` Value interface{} `json:"value"` }
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
Click to show internal directories.
Click to hide internal directories.