Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Cfg Config Registerer prometheus.Registerer Server *server.Server BookstoreServer bookstore.Server LibraryServer library.Service ProjectServer project.Service Vault *vault.Vault }
func NewApplication ¶
func NewApplication(cfg Config, reg prometheus.Registerer) (*Application, error)
NewApplication makes a new Application.
func (*Application) Bootstrap ¶
func (app *Application) Bootstrap() error
Bootstrap bootstrap gRPC server and HTTP gateway
type Config ¶
type Config struct { PrintConfig bool `yaml:"-"` Server server.Config `yaml:"server"` Bookstore bookstore.Config `yaml:"bookstore"` Library library.Config `yaml:"library"` Project project.Config `yaml:"project"` Vault vault.Config `yaml:"vault"` }
Config is configuration for Server
func (*Config) RegisterFlags ¶
RegisterFlags registers flag.
Click to show internal directories.
Click to hide internal directories.