Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultReadTimeout is the default read timeout for the HTTP server DefaultReadTimeout = time.Second * 15 // DefaultWriteTimeout is the default write timeout for the HTTP server DefaultWriteTimeout = time.Second * 30 // DefaultIdleTimeout is the default idle timeout for the HTTP server DefaultIdleTimeout = time.Second * 60 )
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(serverAPI access.API, config Config, logger zerolog.Logger, chain flow.Chain, restCollector module.RestMetrics, stateStreamApi state_stream.API, eventFilterConfig state_stream.EventFilterConfig, maxGlobalStreams uint32, ) (*http.Server, error)
NewServer returns an HTTP server initialized with the REST API handler
Types ¶
Directories ¶
Path | Synopsis |
---|---|
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
* Access API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) |
Click to show internal directories.
Click to hide internal directories.