package
0.0.0-20180717203741-bcf633326f51
Repository: https://github.com/agencypmg/go-from-scratch.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
CreateAPI returns a new api.API populated with bus and the query repositoriesin repos.
CreateCBus returns a new cbus.Bus with user and client commands registered on it.
CreateServer returns a new Server that listens on the port specified in cat key ConfigKeyServerPort.
CreateSQLRepo returns a new sqlrepo.Repo and an io.Closer that willclose the connection to the database.
NewAppBuilder returns a new AppBuilder with fields set to default values.
NewRepos returns a new Repos with each repository created from each domainpackage's sql repo implementation.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
App is the central application type for the gfsweb executable.
AppBuilder is a type that knows how to initialize and build everything requiredfor an App.
Repos is a collection of domain type repositories used throughout the application.Passing this collection around is easier than passing all of them individually.
# Type aliases
APIFactory is a function type that creates a new API ready for use.
CBusFactory is a function type that creates a new cbus.Bus will all requiredCommands and Handlers correctly registered.
ServerFactory is a function type that creates a new server.Server ready for use.
SQLRepoFactory is a function type that creates a new sqlrepo.Reop and a relatedio.Closer that should close the connection to the database.