Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CorsAllowCredentials CORS setting to control whether a browser allows credentials to be sent to this API CorsAllowCredentials = "credentials" // CorsAllowedHeaders CORS setting to control the allowed headers CorsAllowedHeaders = "headers" // CorsAllowedMethods CORS setting to control the allowed methods CorsAllowedMethods = "methods" // CorsAllowedOrigins CORS setting to control the allowed origins CorsAllowedOrigins = "origins" // CorsDebug is whether debug is enabled for the CORS implementation CorsDebug = "debug" // CorsEnabled is whether cors is enabled CorsEnabled = "enabled" // CorsMaxAge is the maximum age a browser should rely on CORS checks CorsMaxAge = "maxAge" )
View Source
const ( // HTTPConfAddress the local address to listen on HTTPConfAddress = "address" // HTTPConfPublicURL the public address of the node to advertise in the swagger HTTPConfPublicURL = "publicURL" // HTTPConfPort the local port to listen on for HTTP/Websocket connections HTTPConfPort = "port" // HTTPConfReadTimeout the write timeout for the HTTP server HTTPConfReadTimeout = "readTimeout" // HTTPConfWriteTimeout the write timeout for the HTTP server HTTPConfWriteTimeout = "writeTimeout" // HTTPConfShutdownTimeout The maximum amount of time to wait for any open HTTP requests to finish before shutting down the HTTP server HTTPConfShutdownTimeout = "shutdownTimeout" // HTTPConfTLSCAFile the TLS certificate authority file for the HTTP server HTTPConfTLSCAFile = "tls.caFile" // HTTPConfTLSCertFile the TLS certificate file for the HTTP server HTTPConfTLSCertFile = "tls.certFile" // HTTPConfTLSClientAuth whether the HTTP server requires a mutual TLS connection HTTPConfTLSClientAuth = "tls.clientAuth" // HTTPConfTLSEnabled whether TLS is enabled for the HTTP server HTTPConfTLSEnabled = "tls.enabled" // HTTPConfTLSKeyFile the private key file for TLS on the server HTTPConfTLSKeyFile = "tls.keyFile" // HTTPAuthType the auth plugin to use for the HTTP server HTTPAuthType = "auth.type" )
Variables ¶
This section is empty.
Functions ¶
func InitCORSConfig ¶
func InitHTTPConfig ¶ added in v0.1.4
Types ¶
type GoHTTPServer ¶
type HTTPServer ¶
func NewHTTPServer ¶
type ServerOptions ¶ added in v0.1.20
ServerOptions are config parameters that are not set from the config, but rather the context in which the HTTP server is being used
Click to show internal directories.
Click to hide internal directories.