Documentation
¶
Overview ¶
package initialization wires databases, services, adn apis together. it uses "wire" for dependency injection. the extra and non-needed dependencies are for the sake of illustration for wire and nothing more
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FibonacciAPISet = wire.NewSet(fibonacci.ProvideFibonacciService, REST_api.ProvideFibonacciAPI)
View Source
var InitialDummyFunc = func(a int) (string, error) { return "", errors.New("not implemented yet, wait and try again") }
InitialDummyFunc is used to break the deliberated loop in calling the Fibonacci service and REST API service. Will be swapped out with a Fibonacci Client after both services are started and running
View Source
var ProductAPISet = wire.NewSet(database.NewBookDB, product.ProvideProductRepository, product.ProvideProductService, REST_api.ProvideProductAPI)
View Source
var UserAPISet = wire.NewSet(database.NewUserDB, user.ProvideUserRepository, user.ProvideUserService, REST_api.ProvideUserAPI)
Functions ¶
func InitializeServices ¶
func RouterREST ¶
RouterREST initialized the router, loads the HTML files, and registers the routes on the router
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.