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