Versions in this module Expand all Collapse all v1 v1.7.3 Sep 17, 2021 v1.7.2 Mar 31, 2020 v1.7.1 Mar 31, 2020 v1.6.6 Mar 31, 2020 v1.6.5 Mar 31, 2020 Changes in this version + const EventInitSSL type Config + FCGI *FCGIConfig + HTTP2 *HTTP2Config + MaxRequestSize int64 + SSL SSLConfig + TrustedSubnets []string + func (c *Config) EnableFCGI() bool + func (c *Config) EnableH2C() bool + func (c *Config) EnableHTTP() bool + func (c *Config) EnableHTTP2() bool + func (c *Config) EnableTLS() bool + func (c *Config) Hydrate(cfg service.Config) error + func (c *Config) IsTrusted(ip string) bool + type ErrorEvent struct + Error error + Request *http.Request + func (e *ErrorEvent) Elapsed() time.Duration + type FCGIConfig struct + Address string + type HTTP2Config struct + Enabled bool + H2C bool + MaxConcurrentStreams uint32 + func (cfg *HTTP2Config) InitDefaults() error type Request + Attributes map[string]interface{} + Header http.Header + RemoteAddr string + URI string + type ResponseEvent struct + Request *Request + Response *Response + func (e *ResponseEvent) Elapsed() time.Duration + type SSLConfig struct + Cert string + Key string + Port int + Redirect bool type Service + func (s *Service) Attach(w roadrunner.Controller) + func (s *Service) ProduceCommands(producer roadrunner.CommandProducer) + func (s *Service) Server() *roadrunner.Server type UploadsConfig + func (cfg *UploadsConfig) InitDefaults() error v1.0.0 Jun 13, 2018 Changes in this version + const EventError + const EventResponse + const ID + const MaxLevel + const UploadErrorCantWrite + const UploadErrorExtension + const UploadErrorNoFile + const UploadErrorNoTmpDir + const UploadErrorOK + type Config struct + Address string + Enable bool + MaxRequest int64 + Uploads *UploadsConfig + Workers *roadrunner.ServerConfig + func (cfg *Config) Valid() error + type Event struct + Error error + Method string + Status int + Uri string + type FileUpload struct + Error int + Mime string + Name string + Size int64 + TempFilename string + func NewUpload(f *multipart.FileHeader) *FileUpload + func (f *FileUpload) Open(cfg *UploadsConfig) error + type Handler struct + func (h *Handler) Listen(l func(event int, ctx interface{})) + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Request struct + Cookies map[string]string + Headers http.Header + Method string + Parsed bool + Protocol string + RawQuery string + Uploads *Uploads + Uri string + func NewRequest(r *http.Request, cfg *UploadsConfig) (req *Request, err error) + func (r *Request) Close() + func (r *Request) Open() error + func (r *Request) Payload() (p *roadrunner.Payload, err error) + type Response struct + Headers map[string][]string + Status int + func NewResponse(p *roadrunner.Payload) (*Response, error) + func (r *Response) Write(w http.ResponseWriter) error + type Service struct + func (s *Service) AddListener(l func(event int, ctx interface{})) + func (s *Service) AddMiddleware(m middleware) + func (s *Service) Init(cfg service.Config, c service.Container) (bool, error) + func (s *Service) Serve() error + func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Service) Stop() + type Uploads struct + func (u *Uploads) Clear() + func (u *Uploads) MarshalJSON() ([]byte, error) + func (u *Uploads) Open() error + type UploadsConfig struct + Dir string + Forbid []string + func (cfg *UploadsConfig) Forbids(filename string) bool + func (cfg *UploadsConfig) TmpDir() string + type Worker struct + Created int64 + NumJobs int64 + Pid int + Status string + type WorkerList struct + Workers []Worker