Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for error_op (0.14 sec)

  1. internal/http/server.go

    		return ctx
    	}
    	return srv
    }
    
    // UseCustomLogger use customized logger for this HTTP *Server
    func (srv *Server) UseCustomLogger(l *log.Logger) *Server {
    	srv.ErrorLog = l
    	return srv
    }
    
    // UseTCPOptions use custom TCP options on raw socket
    func (srv *Server) UseTCPOptions(opts TCPOptions) *Server {
    	srv.TCPOptions = opts
    	return srv
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 09 21:25:16 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. cmd/metrics-v3-handler.go

    	if authType == prometheusPublic {
    		authFn = NoAuthMiddleware
    	}
    
    	metricGroups := newMetricGroups(registry)
    
    	return &metricsV3Server{
    		registry: registry,
    		opts: promhttp.HandlerOpts{
    			ErrorLog:            promLogger{},
    			ErrorHandling:       promhttp.HTTPErrorOnError,
    			Registry:            registry,
    			MaxRequestsInFlight: 2,
    		},
    		authFn: authFn,
    
    		metricsData: metricGroups,
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
Back to top