MCPcopy Create free account

hub / github.com/danielmesquitta/flight-api / functions

Functions127 in github.com/danielmesquitta/flight-api

MethodRunAndReturn
(run func(ctx context.Context, origin string, destination string, date time.Time) ([]entity.Flight, error))
internal/provider/flightapi/mockflightapi/mockflightapi_gen.go:96
MethodScan
( ctx context.Context, key string, value any, )
internal/provider/cache/rediscache/rediscache.go:39
MethodScan
Scan provides a mock function for the type MockCache
internal/provider/cache/mockcache/mockcache_gen.go:101
MethodScan
Scan is a helper method to define mock.On call - ctx - key - value
internal/provider/cache/mockcache/mockcache_gen.go:135
MethodSearch
@Summary Flight search @Description Search for flights based on origin, destination, and date @Tags Flight @Security BearerAuth @Accept json @Produce
internal/app/server/handler/flight.go:39
MethodSearchFlights
( ctx context.Context, origin, destination string, date time.Time, )
internal/provider/flightapi/serpapi/search_flights.go:37
MethodSearchFlights
( ctx context.Context, origin, destination string, date time.Time, )
internal/provider/flightapi/duffelapi/search_flights.go:46
MethodSearchFlights
SearchFlights provides a mock function for the type MockFlightAPI
internal/provider/flightapi/mockflightapi/mockflightapi_gen.go:43
MethodSearchFlights
SearchFlights is a helper method to define mock.On call - ctx - origin - destination - date
internal/provider/flightapi/mockflightapi/mockflightapi_gen.go:80
MethodSearchFlights
( ctx context.Context, origin, destination string, date time.Time, )
internal/provider/flightapi/amadeusapi/search_flights.go:47
MethodSet
( ctx context.Context, key string, value any, expiration time.Duration, )
internal/provider/cache/rediscache/rediscache.go:95
MethodSet
(key string, val []byte, exp time.Duration)
internal/provider/cache/fibercache/fibercache.go:37
MethodSet
Set provides a mock function for the type MockCache
internal/provider/cache/mockcache/mockcache_gen.go:157
MethodSet
Set is a helper method to define mock.On call - ctx - key - value - expiration
internal/provider/cache/mockcache/mockcache_gen.go:183
FunctionTestLogin
(t *testing.T)
test/integration/server/auth_test.go:13
FunctionTestLoginUseCase_Execute
(t *testing.T)
internal/domain/usecase/auth/login_test.go:13
FunctionTestSearchFlights
(t *testing.T)
test/integration/server/flight_test.go:14
FunctionTestSearchFlightsUseCase_Execute
(t *testing.T)
internal/domain/usecase/flight/search_test.go:17
MethodValidate
Validate validates the data (struct) returning an error if the data is invalid.
internal/pkg/validator/validator.go:45
FunctionWithError
WithError sets the error response object to unmarshal into
test/integration/server/server.go:141
FunctionWithHeaders
WithHeaders sets additional headers for the request
test/integration/server/server.go:127
FunctionWithToken
WithToken sets the authorization token for the request
test/integration/server/server.go:113
Functioninit
()
test/integration/server/server.go:36
Functioninit
()
internal/config/wire/wire.go:25
Functioninit
()
docs/docs.go:327
Functionmain
@title Flight API @version 1.0 @description Flight API @contact.name Daniel Mesquita @contact.email danielmesquitta123@gmail.com @BasePath /api @secur
cmd/server/main.go:23
Functionparams
( v validator.Validator, e *env.Env, t *testing.T, )
internal/config/wire/wire.go:34
← previous101–127 of 127, ranked by callers