Documentation ¶
Index ¶
- func GenerateBinary(req *DeployInfo) (io.ReadCloser, error)
- func GenerateDockerImage(req *DeployInfo) (imageName string, err error)
- func GenerateDockerImageForGCE(req *DeployInfo) (imageName string, err error)
- type BinaryHandle
- type Dependency
- type DeployInfo
- type DockerConfig
- type ListenConfirmation
- type Request
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBinary ¶
func GenerateBinary(req *DeployInfo) (io.ReadCloser, error)
func GenerateDockerImage ¶
func GenerateDockerImage(req *DeployInfo) (imageName string, err error)
func GenerateDockerImageForGCE ¶
func GenerateDockerImageForGCE(req *DeployInfo) (imageName string, err error)
Types ¶
type BinaryHandle ¶
type BinaryHandle struct {
// contains filtered or unexported fields
}
func (*BinaryHandle) Close ¶
func (bh *BinaryHandle) Close() error
type Dependency ¶
type DeployInfo ¶
type DockerConfig ¶
type DockerConfig struct { PrerunCommands []string `json:"prerun_commands"` Dependencies []*Dependency `json:"dependencies"` ImageName string `json:"image_name"` SourceImage string `json:"source_image"` BinaryPath string `json:"binary_path"` }
type ListenConfirmation ¶
type ListenConfirmation struct {
// contains filtered or unexported fields
}
func Listen ¶
func Listen(req *Request) (*ListenConfirmation, error)
The goal is to be able to pass in proxy servers, keep a persistent connection to each one of them and use that as the weight to figure out which one to send traffic to.
func (*ListenConfirmation) Close ¶
func (lc *ListenConfirmation) Close() error
func (*ListenConfirmation) Wait ¶
func (lc *ListenConfirmation) Wait() error
type Request ¶
type Request struct { // HTTP1 signifies that this server should // not be ran as an HTTP/2<-->HTTPS server. // This variable is useful for testing purposes. HTTP1 bool `json:"http1"` Domains []string `json:"domains"` NoAutoWWW bool `json:"no_auto_www"` ProxyAddresses []string `json:"proxy_addresses"` NonHTTPSRedirectURL string `json:"non_https_redirect_url"` NonHTTPSAddr string `json:"non_https_addr"` DomainsListener func(domains ...string) net.Listener Environ []string `json:"environ"` TargetGOOS string `json:"target_goos"` CertKeyFiler func() (string, string) // BackendPingPeriod if set, defines the period // between which the frontend service will check // for the liveliness of the backends. BackendPingPeriod time.Duration }
func (*Request) SynthesizeDomains ¶
Synthesizes domains removing duplicates and if NoAutoWWW if not set, will automatically make the corresponding www.domain domain.
Click to show internal directories.
Click to hide internal directories.