_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c175400
test
// takeSnapshot is used to take a new snapshot. This must only be called from // the snapshot thread, never the main thread. This returns the ID of the new // snapshot, along with an error.
{ "resource": "" }
c175401
test
// compactLogs takes the last inclusive index of a snapshot // and trims the logs that are no longer needed.
{ "resource": "" }
c175402
test
// WebpackCheck will compare the current default Buffalo // webpack.config.js against the applications webpack.config.js. If they are // different you have the option to overwrite the existing webpack.config.js // file with the new one.
{ "resource": "" }
c175403
test
// New generator for adding VCS to an application
{ "resource": "" }
c175404
test
// UnixSocket returns a new Listener on that address
{ "resource": "" }
c175405
test
// Get a registered ErrorHandler for this status code. If // no ErrorHandler has been registered, a default one will // be returned.
{ "resource": "" }
c175406
test
// PanicHandler recovers from panics gracefully and calls // the error handling code for a 500 error.
{ "resource": "" }
c175407
test
// partialFeeder returns template string for the name from `TemplateBox`. // It should be registered as helper named `partialFeeder` so plush can // find it with the name.
{ "resource": "" }
c175408
test
// New render.Engine ready to go with your Options // and some defaults we think you might like.
{ "resource": "" }
c175409
test
// WriteTo implements io.WriterTo. It dumps the whole message into w.
{ "resource": "" }
c175410
test
//Send a message using SMTP configuration or returns an error if something goes wrong.
{ "resource": "" }
c175411
test
//NewSMTPSender builds a SMTP mail based in passed config.
{ "resource": "" }
c175412
test
// Param returns a param, either named or query string, // based on the key.
{ "resource": "" }
c175413
test
// Set a value onto the Context. Any value set onto the Context // will be automatically available in templates.
{ "resource": "" }
c175414
test
// Value that has previously stored on the context.
{ "resource": "" }
c175415
test
// Redirect a request with the given status to the given URL.
{ "resource": "" }
c175416
test
// File returns an uploaded file by name, or an error
{ "resource": "" }
c175417
test
// MarshalJSON implements json marshaling for the context
{ "resource": "" }
c175418
test
// New generator for creating a Buffalo API application
{ "resource": "" }
c175419
test
// New returns a new instance of App and adds some sane, and useful, defaults.
{ "resource": "" }
c175420
test
// DeprecrationsCheck will either log, or fix, deprecated items in the application
{ "resource": "" }
c175421
test
// List default implementation. Returns a 404
{ "resource": "" }
c175422
test
// Render the provided Data to the provider Writer using the // RendererFunc provide.
{ "resource": "" }
c175423
test
// Save the current session.
{ "resource": "" }
c175424
test
// GetOnce gets a value from the current session and then deletes it.
{ "resource": "" }
c175425
test
// Set a value onto the current session. If a value with that name // already exists it will be overridden with the new value.
{ "resource": "" }
c175426
test
// Get a session using a request and response.
{ "resource": "" }
c175427
test
// New generator to create a grift task
{ "resource": "" }
c175428
test
// New generator for creating webpack asset files
{ "resource": "" }
c175429
test
// New generator to generate refresh templates
{ "resource": "" }
c175430
test
// Reset resets the message so it can be reused. The message keeps its previous // settings so it is in the same state that after a call to NewMessage.
{ "resource": "" }
c175431
test
// SetHeaders sets the message headers.
{ "resource": "" }
c175432
test
// SetBody sets the body of the message. It replaces any content previously set // by SetBody, SetBodyWriter, AddAlternative or AddAlternativeWriter.
{ "resource": "" }
c175433
test
// SetPartEncoding sets the encoding of the part added to the message. By // default, parts use the same encoding than the message.
{ "resource": "" }
c175434
test
// SetHeader is a file setting to set the MIME header of the message part that // contains the file content. // // Mandatory headers are automatically added if they are not set when sending // the email.
{ "resource": "" }
c175435
test
// SetCopyFunc is a file setting to replace the function that runs when the // message is sent. It should copy the content of the file to the io.Writer. // // The default copy function opens the file with the given filename, and copy // its content to the io.Writer.
{ "resource": "" }
c175436
test
// AttachReader attaches a file using an io.Reader
{ "resource": "" }
c175437
test
// EmbedReader embeds the images to the email.
{ "resource": "" }
c175438
test
// Embed embeds the images to the email.
{ "resource": "" }
c175439
test
// ValidateTemplates returns a genny.RunFn that will walk the // given box and run each of the files found through each of the // template validators
{ "resource": "" }
c175440
test
// PlushValidator validates the file is a valid // Plush file if the extension is .md, .html, or .plush
{ "resource": "" }
c175441
test
// Validate options are useful
{ "resource": "" }
c175442
test
// LoadPlugins will add listeners for any plugins that support "events"
{ "resource": "" }
c175443
test
// WriteHeader sets the status code for a response
{ "resource": "" }
c175444
test
// Write the body of the response
{ "resource": "" }
c175445
test
// Flush the response
{ "resource": "" }
c175446
test
// CloseNotify implements the http.CloseNotifier interface
{ "resource": "" }
c175447
test
//onlyRelevantFiles processes only .go files excluding folders like node_modules and vendor.
{ "resource": "" }
c175448
test
// GoTemplateEngine implements the TemplateEngine interface for using standard Go templates
{ "resource": "" }
c175449
test
// GET maps an HTTP "GET" request to the path and the specified handler.
{ "resource": "" }
c175450
test
// Redirect from one URL to another URL. Only works for "GET" requests.
{ "resource": "" }
c175451
test
// ANY accepts a request across any HTTP method for the specified path // and routes it to the specified Handler.
{ "resource": "" }
c175452
test
//buildRouteName builds a route based on the path passed.
{ "resource": "" }
c175453
test
// New mailer generator. It will init the mailers directory if it doesn't already exist
{ "resource": "" }
c175454
test
// DialAndSend opens a connection to the SMTP server, sends the given emails and // closes the connection.
{ "resource": "" }
c175455
test
//Set allows to set a list of values into a particular key.
{ "resource": "" }
c175456
test
//Add adds a flash value for a flash key, if the key already has values the list for that value grows.
{ "resource": "" }
c175457
test
//Persist the flash inside the session.
{ "resource": "" }
c175458
test
//newFlash creates a new Flash and loads the session data inside its data.
{ "resource": "" }
c175459
test
// Get returns the value of the cookie with the given name. Returns http.ErrNoCookie if there's no cookie with that name in the request.
{ "resource": "" }
c175460
test
// Set a cookie on the response, which will expire after the given duration.
{ "resource": "" }
c175461
test
// SetWithExpirationTime sets a cookie that will expire at a specific time. // Note that the time is determined by the client's browser, so it might not expire at the expected time, // for example if the client has changed the time on their computer.
{ "resource": "" }
c175462
test
// Delete sets a header that tells the browser to remove the cookie with the given name.
{ "resource": "" }
c175463
test
// NewMessage builds a new message.
{ "resource": "" }
c175464
test
// NewFromData builds a new message with raw template data given
{ "resource": "" }
c175465
test
// New builds a new message with the current buffalo.Context
{ "resource": "" }
c175466
test
// CloseNotify return true across the channel when the connection // in the browser has been severed.
{ "resource": "" }
c175467
test
// NewEventSource returns a new EventSource instance while ensuring // that the http.ResponseWriter is able to handle EventSource messages. // It also makes sure to set the proper response heads.
{ "resource": "" }
c175468
test
// NewSimpleWithContext creates a basic implementation of the Worker interface // that is backed using just the standard library and goroutines.
{ "resource": "" }
c175469
test
// Register Handler with the worker
{ "resource": "" }
c175470
test
// Start the worker
{ "resource": "" }
c175471
test
// Stop the worker
{ "resource": "" }
c175472
test
// Perform a job as soon as possibly using a goroutine.
{ "resource": "" }
c175473
test
// PerformAt performs a job at a particular time using a goroutine.
{ "resource": "" }
c175474
test
// PerformIn performs a job after waiting for a specified amount // using a goroutine.
{ "resource": "" }
c175475
test
// String returns a JSON representation of the RouteInfo
{ "resource": "" }
c175476
test
// Alias path patterns to the this route. This is not the // same as a redirect.
{ "resource": "" }
c175477
test
// Name allows users to set custom names for the routes.
{ "resource": "" }
c175478
test
// BuildPathHelper Builds a routeHelperfunc for a particular RouteInfo
{ "resource": "" }
c175479
test
// New generator for adding travis or gitlab
{ "resource": "" }
c175480
test
// New returns a new generator for build actions on a Buffalo app
{ "resource": "" }
c175481
test
// RegisterCustomDecoder allows to define custom type decoders.
{ "resource": "" }
c175482
test
// Replace a piece of middleware with another piece of middleware. Great for // testing.
{ "resource": "" }
c175483
test
// Routes returns a list of all of the routes defined // in this application.
{ "resource": "" }
c175484
test
// WrapBuffaloHandler wraps a buffalo.Handler to // standard http.Handler
{ "resource": "" }
c175485
test
// PackageJSONCheck will compare the current default Buffalo // package.json against the applications package.json. If they are // different you have the option to overwrite the existing package.json // file with the new one.
{ "resource": "" }
c175486
test
// match takes an import path and replacement map.
{ "resource": "" }
c175487
test
// Last checks if the name is the last of the parts
{ "resource": "" }
c175488
test
// Stop the application and attempt to gracefully shutdown
{ "resource": "" }
c175489
test
// DepEnsure runs `dep ensure -v` or `go get -u` depending on app tooling // to make sure that any newly changed imports are added to dep or installed.
{ "resource": "" }
c175490
test
// String implements fmt.String
{ "resource": "" }
c175491
test
// New resource generator
{ "resource": "" }
c175492
test
// AddBody the message by receiving a renderer and rendering data, first message will be // used as the main message Body rest of them will be passed as alternative bodies on the // email message
{ "resource": "" }
c175493
test
// AddBodies Allows to add multiple bodies to the message, it returns errors that // could happen in the rendering.
{ "resource": "" }
c175494
test
//AddAttachment adds the attachment to the list of attachments the Message has.
{ "resource": "" }
c175495
test
//AddEmbedded adds the attachment to the list of attachments // the Message has and uses inline instead of attachement property.
{ "resource": "" }
c175496
test
// SetHeader sets the heder field and value for the message
{ "resource": "" }
c175497
test
// New generator for creating a Buffalo Web application
{ "resource": "" }
c175498
test
// New generator for creating basic asset files
{ "resource": "" }
c175499
test
// New returns a generator that performs buffalo // related rx checks
{ "resource": "" }