Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // HTTPPort is the port for this application to listen on HTTPPort int `env:"HTTP_PORT" envDefault:"8000"` // HTTPAddress is the address for this application to listen on, minus the port // use HTTPPort for that instead. HTTPAddress string `env:"HTTP_ADDRESS" envDefault:"0.0.0.0"` // DatabaseURL is the URL to connect to for the database DatabaseURL string `env:"DATABASE_URL"` }
func LoadConfig ¶
LoadConfig reads the configuration from env variables and returns it
type PublicHTTPService ¶
type PublicHTTPService struct {
// contains filtered or unexported fields
}
PublicHTTPService handles public http service calls
func NewPublicHTTPService ¶
func NewPublicHTTPService(conf *Config) *PublicHTTPService
NewPublicHTTPService creates a new public http service
func (*PublicHTTPService) Run ¶
func (s *PublicHTTPService) Run(ctx context.Context, log logrus.FieldLogger) error
Click to show internal directories.
Click to hide internal directories.