handler

package
v0.0.0-...-86a22be Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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