typical

package
v0.5.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Context = typictx.Context{
	Name:        "Typical-RESTful-Server",
	Version:     "0.5.6",
	Description: "Example of typical and scalable RESTful API Server for Go",

	Modules: []*typictx.Module{
		{ConfigPrefix: "APP", ConfigSpec: &config.Config{}},
		typserver.Module(),
		typpostgres.Module(),
	},

	Application: typictx.Application{
		StartFunc: func(s *app.Server, cfg *config.Config) error {
			log.Info("Start the application")
			return s.Start(cfg.Address)
		},
	},

	Release: typictx.Release{
		GoOS:   []string{"linux", "darwin"},
		GoArch: []string{"amd64"},
		Github: &typictx.Github{
			Owner:    "typical-go",
			RepoName: "typical-rest-server",
		},
	},
}

Context instance of Context

Functions

This section is empty.

Types

type Config added in v0.3.0

type Config struct {
	App    *config.Config
	Server *typserver.Config
	Pg     *typpostgres.Config
}

Directories

Path Synopsis
module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL