_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c18300 | train | // Create a new view | {
"resource": ""
} | ||
c18301 | train | // Create a new build for this job.
// Params can be nil. | {
"resource": ""
} | ||
c18302 | train | // Get the console output from a build. | {
"resource": ""
} | ||
c18303 | train | // GetQueue returns the current build queue from Jenkins | {
"resource": ""
} | ||
c18304 | train | // SetBuildDescription sets the description of a build | {
"resource": ""
} | ||
c18305 | train | // GetComputerObject returns the main ComputerObject | {
"resource": ""
} | ||
c18306 | train | // GetComputers returns the list of all Computer objects | {
"resource": ""
} | ||
c18307 | train | // GetComputer returns a Computer object with a specified name. | {
"resource": ""
} | ||
c18308 | train | // hasParams returns a boolean value indicating if the job is parameterized | {
"resource": ""
} | ||
c18309 | train | //UnmarshalXML implements xml.UnmarshalXML intrface
//Decode between multiple types of Scm. for now only SVN is supported | {
"resource": ""
} | ||
c18310 | train | // Get gets the first value associated with the given key. If there are no values associated with the key, Get returns "". To access multiple values of a key, access the map directly with CanonicalHeaderKey. | {
"resource": ""
} | ||
c18311 | train | // ErrByStatus returns a gear.Error by http status. | {
"resource": ""
} | ||
c18312 | train | // Use registers a new Middleware in the router, that will be called when router mathed. | {
"resource": ""
} | ||
c18313 | train | // Get registers a new GET route for a path with matching handler in the router. | {
"resource": ""
} | ||
c18314 | train | // Head registers a new HEAD route for a path with matching handler in the router. | {
"resource": ""
} | ||
c18315 | train | // Post registers a new POST route for a path with matching handler in the router. | {
"resource": ""
} | ||
c18316 | train | // Put registers a new PUT route for a path with matching handler in the router. | {
"resource": ""
} | ||
c18317 | train | // Patch registers a new PATCH route for a path with matching handler in the router. | {
"resource": ""
} | ||
c18318 | train | // Delete registers a new DELETE route for a path with matching handler in the router. | {
"resource": ""
} | ||
c18319 | train | // Options registers a new OPTIONS route for a path with matching handler in the router. | {
"resource": ""
} | ||
c18320 | train | // Otherwise registers a new Middleware handler in the router
// that will run if there is no other handler matching. | {
"resource": ""
} | ||
c18321 | train | // Serve implemented gear.Handler interface | {
"resource": ""
} | ||
c18322 | train | // NewWithIco creates a favicon middleware with ico file and a optional modTime. | {
"resource": ""
} | ||
c18323 | train | // colorString convert a string to a color string with color code. | {
"resource": ""
} | ||
c18324 | train | // NewContext creates an instance of Context. Export for testing middleware. | {
"resource": ""
} | ||
c18325 | train | // Cancel cancel the ctx and all it' children context.
// The ctx' process will ended too. | {
"resource": ""
} | ||
c18326 | train | // WithCancel returns a copy of the ctx with a new Done channel.
// The returned context's Done channel is closed when the returned cancel function is called or when the parent context's Done channel is closed, whichever happens first. | {
"resource": ""
} | ||
c18327 | train | // WithDeadline returns a copy of the ctx with the deadline adjusted to be no later than d. | {
"resource": ""
} | ||
c18328 | train | // WithValue returns a copy of the ctx in which the value associated with key is val. | {
"resource": ""
} | ||
c18329 | train | // Timing runs fn with the given time limit. If a call runs for longer than its time limit or panic,
// it will return context.DeadlineExceeded error or panic error. | {
"resource": ""
} | ||
c18330 | train | // MustAny returns the value on this ctx by key. It is a sugar for ctx.Any,
// If some error occurred, it will panic. | {
"resource": ""
} | ||
c18331 | train | // IP returns the client's network address based on `X-Forwarded-For`
// or `X-Real-IP` request header. | {
"resource": ""
} | ||
c18332 | train | // AcceptType returns the most preferred content type from the HTTP Accept header.
// If nothing accepted, then empty string is returned. | {
"resource": ""
} | ||
c18333 | train | // AcceptLanguage returns the most preferred language from the HTTP Accept-Language header.
// If nothing accepted, then empty string is returned. | {
"resource": ""
} | ||
c18334 | train | // AcceptEncoding returns the most preferred encoding from the HTTP Accept-Encoding header.
// If nothing accepted, then empty string is returned. | {
"resource": ""
} | ||
c18335 | train | // AcceptCharset returns the most preferred charset from the HTTP Accept-Charset header.
// If nothing accepted, then empty string is returned. | {
"resource": ""
} | ||
c18336 | train | // Query returns the query param for the provided name. | {
"resource": ""
} | ||
c18337 | train | // Set - Please use ctx.SetHeader instead. This method will be changed in v2. | {
"resource": ""
} | ||
c18338 | train | // GetHeader retrieves data from the request Header. | {
"resource": ""
} | ||
c18339 | train | // HTML set an Html body with status code to response.
// It will end the ctx. The middlewares after current middleware will not run.
// "after hooks" and "end hooks" will run normally. | {
"resource": ""
} | ||
c18340 | train | // JSONBlob set a JSON blob body with status code to response.
// It will end the ctx. The middlewares after current middleware will not run.
// "after hooks" and "end hooks" will run normally. | {
"resource": ""
} | ||
c18341 | train | // JSONPBlob sends a JSONP blob response with status code. It uses `callback`
// to construct the JSONP payload.
// It will end the ctx. The middlewares after current middleware will not run.
// "after hooks" and "end hooks" will run normally. | {
"resource": ""
} | ||
c18342 | train | // XMLBlob set a XML blob body with status code to response.
// It will end the ctx. The middlewares after current middleware will not run.
// "after hooks" and "end hooks" will run normally. | {
"resource": ""
} | ||
c18343 | train | // Stream sends a streaming response with status code and content type.
// It will end the ctx. The middlewares after current middleware will not run.
// "after hooks" and "end hooks" will run normally. | {
"resource": ""
} | ||
c18344 | train | // Attachment sends a response from `io.ReaderSeeker` as attachment, prompting
// client to save the file. If inline is true, the attachment will sends as inline,
// opening the file in the browser.
// It will end the ctx. The middlewares after current middleware will not run.
// "after hooks" and "end hooks" will run ... | {
"resource": ""
} | ||
c18345 | train | // Redirect redirects the request with status code 302.
// You can use other status code with ctx.Status method, It is a wrap of http.Redirect.
// It will end the ctx. The middlewares after current middleware will not run.
// "after hooks" and "end hooks" will run normally. | {
"resource": ""
} | ||
c18346 | train | // OkHTML is a wrap of ctx.HTML with http.StatusOK | {
"resource": ""
} | ||
c18347 | train | // OkXML is a wrap of ctx.XML with http.StatusOK | {
"resource": ""
} | ||
c18348 | train | // OkSend is a wrap of ctx.Send with http.StatusOK | {
"resource": ""
} | ||
c18349 | train | // OkRender is a wrap of ctx.Render with http.StatusOK | {
"resource": ""
} | ||
c18350 | train | // OkStream is a wrap of ctx.Stream with http.StatusOK | {
"resource": ""
} | ||
c18351 | train | // ErrorStatus send a error by status code to response.
// It is sugar of ctx.Error | {
"resource": ""
} | ||
c18352 | train | // End end the ctx with bytes and status code optionally.
// After it's called, the rest of middleware handles will not run.
// But "after hooks" and "end hooks" will run normally. | {
"resource": ""
} | ||
c18353 | train | // After add a "after hook" to the ctx that will run after middleware process,
// but before Response.WriteHeader. So it will block response writing. | {
"resource": ""
} | ||
c18354 | train | // New creates a middleware with gRPC server to Handle gRPC requests. | {
"resource": ""
} | ||
c18355 | train | // HidePoweredBy removes the X-Powered-By header to make it slightly harder for
// attackers to see what potentially-vulnerable technology powers your site. | {
"resource": ""
} | ||
c18356 | train | // Parse implemented URLParser interface. | {
"resource": ""
} | ||
c18357 | train | // Parse implemented BodyParser interface. | {
"resource": ""
} | ||
c18358 | train | // New creates an instance of App. | {
"resource": ""
} | ||
c18359 | train | // Use uses the given middleware `handle`. | {
"resource": ""
} | ||
c18360 | train | // UseHandler uses a instance that implemented Handler interface. | {
"resource": ""
} | ||
c18361 | train | // Listen starts the HTTP server. | {
"resource": ""
} | ||
c18362 | train | // ListenTLS starts the HTTPS server. | {
"resource": ""
} | ||
c18363 | train | // Error writes error to underlayer logging system. | {
"resource": ""
} | ||
c18364 | train | // Close closes the underlying server.
// If context omit, Server.Close will be used to close immediately.
// Otherwise Server.Shutdown will be used to close gracefully. | {
"resource": ""
} | ||
c18365 | train | // Compose composes a slice of middlewares to one middleware | {
"resource": ""
} | ||
c18366 | train | // WrapHandler wrap a http.Handler to Gear Middleware | {
"resource": ""
} | ||
c18367 | train | // WrapHandlerFunc wrap a http.HandlerFunc to Gear Middleware | {
"resource": ""
} | ||
c18368 | train | // Error implemented HTTPError interface. | {
"resource": ""
} | ||
c18369 | train | // Format implemented logging.Messager interface. | {
"resource": ""
} | ||
c18370 | train | // ParseError parse a error, textproto.Error or HTTPError to HTTPError | {
"resource": ""
} | ||
c18371 | train | // ErrorWithStack create a error with stacktrace | {
"resource": ""
} | ||
c18372 | train | // Add add a phrase string to filter | {
"resource": ""
} | ||
c18373 | train | // Decompress wrap the reader for decompressing, It support gzip and zlib, and compatible for deflate. | {
"resource": ""
} | ||
c18374 | train | // New creates a middleware to provide CORS support for gear. | {
"resource": ""
} | ||
c18375 | train | // Format try to marshal the structured log with json.Marshal. | {
"resource": ""
} | ||
c18376 | train | // ParseLevel takes a string level and returns the gear logging level constant. | {
"resource": ""
} | ||
c18377 | train | // Default returns the default logger
// If devMode is true, logger will print a simple version of Common Log Format with terminal color | {
"resource": ""
} | ||
c18378 | train | // Emerg produce a "Emergency" log | {
"resource": ""
} | ||
c18379 | train | // Alert produce a "Alert" log | {
"resource": ""
} | ||
c18380 | train | // Crit produce a "Critical" log | {
"resource": ""
} | ||
c18381 | train | // Err produce a "Error" log | {
"resource": ""
} | ||
c18382 | train | // Warning produce a "Warning" log | {
"resource": ""
} | ||
c18383 | train | // Notice produce a "Notice" log | {
"resource": ""
} | ||
c18384 | train | // Info produce a "Informational" log | {
"resource": ""
} | ||
c18385 | train | // Debug produce a "Debug" log | {
"resource": ""
} | ||
c18386 | train | // Debugf produce a "Debug" log in the manner of fmt.Printf | {
"resource": ""
} | ||
c18387 | train | // Panic produce a "Emergency" log and then calls panic with the message | {
"resource": ""
} | ||
c18388 | train | // Print produce a log in the manner of fmt.Print, without timestamp and log level | {
"resource": ""
} | ||
c18389 | train | // Printf produce a log in the manner of fmt.Printf, without timestamp and log level | {
"resource": ""
} | ||
c18390 | train | // Println produce a log in the manner of fmt.Println, without timestamp and log level | {
"resource": ""
} | ||
c18391 | train | // Output writes a string log with timestamp and log level to the output.
// If the level is greater than logger level, the log will be omitted.
// The log will be format by timeFormat and logFormat. | {
"resource": ""
} | ||
c18392 | train | // GetLevel get the logger's log level | {
"resource": ""
} | ||
c18393 | train | // SetLevel set the logger's log level
// The default logger level is DebugLevel | {
"resource": ""
} | ||
c18394 | train | // SetLogInit set a log init handle to the logger.
// It will be called when log created. | {
"resource": ""
} | ||
c18395 | train | // New implements gear.Any interface,then we can use ctx.Any to retrieve a Log instance from ctx.
// Here also some initialization work after created. | {
"resource": ""
} | ||
c18396 | train | // FromCtx retrieve the Log instance from the ctx with ctx.Any.
// Logger.New and ctx.Any will guarantee it exists. | {
"resource": ""
} | ||
c18397 | train | // GetDatasets provides list of the datasets that are available for download. | {
"resource": ""
} | ||
c18398 | train | // GetDatasetFiles returns a list of files that are available for download from the provided dataset. | {
"resource": ""
} | ||
c18399 | train | // GetAlerts returns a listing of all the network alerts that are currently active on the account. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.