Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package config contains the configuration of the application.
|
Package config contains the configuration of the application. |
internal
|
|
domain/model
Package model contains the domain models of the application.
|
Package model contains the domain models of the application. |
domain/service/quotes
Package quotes contains the quotes service, that handles the business logic of the application.
|
Package quotes contains the quotes service, that handles the business logic of the application. |
storage/challenges
Package challenges contains the challenges storage in memory implementation.
|
Package challenges contains the challenges storage in memory implementation. |
storage/quotes
Package quotes contains the quotes storage in memory implementation.
|
Package quotes contains the quotes storage in memory implementation. |
transport/http
Package http contains the HTTP transport for the quote server.
|
Package http contains the HTTP transport for the quote server. |
transport/http/quotes
Package quotes contains the http transport for the quotes service.
|
Package quotes contains the http transport for the quotes service. |
transport/middleware/proofer
Package proofer provides a middleware that implements a proof of work challenge.
|
Package proofer provides a middleware that implements a proof of work challenge. |
transport/middleware/ratelimiter
Package ratelimiter provides a middleware that implements a rate limiter.
|
Package ratelimiter provides a middleware that implements a rate limiter. |
pkg
|
|
client
Package client contains the quotes server client, configured with the provided config.
|
Package client contains the quotes server client, configured with the provided config. |
hashcash
Package hashcash contains the hashcash v1 implementation.
|
Package hashcash contains the hashcash v1 implementation. |
logging
Package logging contains a concurrence-safe singleton logger, that could be used by any package.
|
Package logging contains a concurrence-safe singleton logger, that could be used by any package. |
pow
Package pow contains the PoW service, that handles the logic of proof-of-work for the application.
|
Package pow contains the PoW service, that handles the logic of proof-of-work for the application. |
Click to show internal directories.
Click to hide internal directories.