Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielmesquitta/flight-api
/ functions
Functions
127 in github.com/danielmesquitta/flight-api
⨍
Functions
127
◇
Types & classes
74
Method
RunAndReturn
(run func(ctx context.Context, origin string, destination string, date time.Time) ([]entity.Flight, error))
internal/provider/flightapi/mockflightapi/mockflightapi_gen.go:96
Method
Scan
( ctx context.Context, key string, value any, )
internal/provider/cache/rediscache/rediscache.go:39
Method
Scan
Scan provides a mock function for the type MockCache
internal/provider/cache/mockcache/mockcache_gen.go:101
Method
Scan
Scan is a helper method to define mock.On call - ctx - key - value
internal/provider/cache/mockcache/mockcache_gen.go:135
Method
Search
@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
Method
SearchFlights
( ctx context.Context, origin, destination string, date time.Time, )
internal/provider/flightapi/serpapi/search_flights.go:37
Method
SearchFlights
( ctx context.Context, origin, destination string, date time.Time, )
internal/provider/flightapi/duffelapi/search_flights.go:46
Method
SearchFlights
SearchFlights provides a mock function for the type MockFlightAPI
internal/provider/flightapi/mockflightapi/mockflightapi_gen.go:43
Method
SearchFlights
SearchFlights is a helper method to define mock.On call - ctx - origin - destination - date
internal/provider/flightapi/mockflightapi/mockflightapi_gen.go:80
Method
SearchFlights
( ctx context.Context, origin, destination string, date time.Time, )
internal/provider/flightapi/amadeusapi/search_flights.go:47
Method
Set
( ctx context.Context, key string, value any, expiration time.Duration, )
internal/provider/cache/rediscache/rediscache.go:95
Method
Set
(key string, val []byte, exp time.Duration)
internal/provider/cache/fibercache/fibercache.go:37
Method
Set
Set provides a mock function for the type MockCache
internal/provider/cache/mockcache/mockcache_gen.go:157
Method
Set
Set is a helper method to define mock.On call - ctx - key - value - expiration
internal/provider/cache/mockcache/mockcache_gen.go:183
Function
TestLogin
(t *testing.T)
test/integration/server/auth_test.go:13
Function
TestLoginUseCase_Execute
(t *testing.T)
internal/domain/usecase/auth/login_test.go:13
Function
TestSearchFlights
(t *testing.T)
test/integration/server/flight_test.go:14
Function
TestSearchFlightsUseCase_Execute
(t *testing.T)
internal/domain/usecase/flight/search_test.go:17
Method
Validate
Validate validates the data (struct) returning an error if the data is invalid.
internal/pkg/validator/validator.go:45
Function
WithError
WithError sets the error response object to unmarshal into
test/integration/server/server.go:141
Function
WithHeaders
WithHeaders sets additional headers for the request
test/integration/server/server.go:127
Function
WithToken
WithToken sets the authorization token for the request
test/integration/server/server.go:113
Function
init
()
test/integration/server/server.go:36
Function
init
()
internal/config/wire/wire.go:25
Function
init
()
docs/docs.go:327
Function
main
@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
Function
params
( v validator.Validator, e *env.Env, t *testing.T, )
internal/config/wire/wire.go:34
← previous
101–127 of 127, ranked by callers