Directories
¶
Path | Synopsis |
---|---|
Package main is the gRPC server.
|
Package main is the gRPC server. |
internal
|
|
api
Package api handles communication with the SpaceTraders API.
|
Package api handles communication with the SpaceTraders API. |
cache
Package cache implements several caches for API data.
|
Package cache implements several caches for API data. |
config
Package config parses environment variables into a config struct.
|
Package config parses environment variables into a config struct. |
convert
Package convert converts between structs from different sources (DB, API, Protobuf, ...)
|
Package convert converts between structs from different sources (DB, API, Protobuf, ...) |
db
Package db contains migration scripts and sqlc-compiled SQL statements.
|
Package db contains migration scripts and sqlc-compiled SQL statements. |
db/query
Package query contains the sqlc-generated functions and some manually-created utility functions.
|
Package query contains the sqlc-generated functions and some manually-created utility functions. |
graph
Package graph contains resolvers for GraphQL vertices and edges.
|
Package graph contains resolvers for GraphQL vertices and edges. |
graph/loaders
Package loaders implements dataloaders for avoiding redundant data queries.
|
Package loaders implements dataloaders for avoiding redundant data queries. |
log
Package log contains the custom logger for this application.
|
Package log contains the custom logger for this application. |
worker
Package worker performs heavy-lifting tasks in the background.
|
Package worker performs heavy-lifting tasks in the background. |
tests
|
|
mocks
Package mocks provides mock struct instances for testing.
|
Package mocks provides mock struct instances for testing. |
Click to show internal directories.
Click to hide internal directories.