Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Context = typictx.Context{ Name: "Typical-RESTful-Server", Version: "0.3.1", Description: "Example of typical and scalable RESTful API Server for Go", Configs: []typictx.Config{ {Prefix: "APP", Spec: &config.AppConfig{}, Description: "Application configuration"}, {Prefix: "PG", Spec: &config.PostgresConfig{}, Description: "Postgres configuration"}, }, App: typictx.Application{ Action: typictx.MainAction{ StartFunc: func(s *app.Server) error { log.Info("Start the application") return s.Serve() }, StopFunc: func(s *app.Server) (err error) { log.Info("Stop the application") return s.Shutdown() }, }, }, Modules: []*typictx.Module{ module.NewPostgres(), }, Github: &typictx.Github{ Owner: "typical-go", RepoName: "typical-rest-server", }, }
Context instance of Context
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.