Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayConfig ¶
type GatewayConfig struct { ReadTimeout time.Duration WriteTimeout time.Duration FunctionsProviderURL *url.URL NATSAddress *string NATSPort *int PrometheusHost string PrometheusPort int }
GatewayConfig for the process.
func (*GatewayConfig) UseExternalProvider ¶
func (g *GatewayConfig) UseExternalProvider() bool
UseExternalProvider decide whether to bypass built-in Docker Swarm engine
type HttpResult ¶
type HttpResult struct {
HeaderCode int
}
type ReadConfig ¶
type ReadConfig struct { }
ReadConfig constitutes config from env variables
func (ReadConfig) Read ¶
func (ReadConfig) Read(hasEnv HasEnv) GatewayConfig
Read fetches config from environmental variables.
type WriteAdapter ¶
type WriteAdapter struct { Writer http.ResponseWriter HttpResult *HttpResult }
WriteAdapter adapts a ResponseWriter
func NewWriteAdapter ¶
func NewWriteAdapter(w http.ResponseWriter) WriteAdapter
NewWriteAdapter create a new NewWriteAdapter
func (*WriteAdapter) GetHeaderCode ¶
func (w *WriteAdapter) GetHeaderCode() int
GetHeaderCode result from WriteHeader
func (WriteAdapter) Write ¶
func (w WriteAdapter) Write(data []byte) (int, error)
Write adapts Write
func (WriteAdapter) WriteHeader ¶
func (w WriteAdapter) WriteHeader(i int)
WriteHeader adapts WriteHeader
Click to show internal directories.
Click to hide internal directories.