Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // PrivateHTTPPort is the port the API server will respond to // private API requests on PrivateHTTPPort int `envconfig:"private_http_port" default:"5000"` // PublicHTTPPort is the port the API server will respond to public // API requests on PublicHTTPPort int `envconfig:"public_http_port" default:"5001"` // PublicHTTPHost is the host name which the public API will be // server under PublicHTTPHost string `envconfig:"public_http_host" required:"true"` // PublicHTTPSSLEnabled indicates if the public API server has a // SSL certificate PublicHTTPSSLEnabled bool `envconfig:"public_http_ssl_enabled" default:"false"` // EtcdEndpoint is the host and port to a Etcd server EtcdEndpoint string `envconfig:"etcd_endpoint" default:"http://localhost:2379"` // GitHubClientID is the ID of the GitHub API app GitHubClientID string `envconfig:"github_client_id" required:"true"` // GitHubClientSecret is the secret value for a GitHub API app GitHubClientSecret string `envconfig:"github_client_secret" required:"true"` }
Config holds application configuration
Click to show internal directories.
Click to hide internal directories.