Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
Config *pkg.Config
Store db.Store
Router *gin.Engine
TokenMaker token.Maker
TaskDistributor worker.TaskDistributor
HttpServer *http.Server
}
Server serves HTTP requests for our banking service.
func NewServer ¶
func NewServer( store db.Store, config *pkg.Config, tokenMaker token.Maker, taskDistributor worker.TaskDistributor, ) (*Server, error)
NewServer creates a new HTTP server and set up routing.
Click to show internal directories.
Click to hide internal directories.