Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Posts about Revel

Revel log type

May 15, 2021 07:00 0 Comment Revel

Revel log type, Revel supports four types of log information:, TRACE - Debugging information, INFO - General information, WARN - Warning message, ERROR - Error messag

Revel schedules tasks

May 15, 2021 07:00 0 Comment Revel

Revel schedules tasks to activate, Revel schedules tasks to activate, Options, Start the scheduled task, Periodic tasks, Schedule, Temporary tasks, Register the function, The status of the task, Revel supports scheduled tasks (asynchronous execution) that run outside the request process., For example, periodic tasks to update cached data, or t

Revel test

May 15, 2021 07:00 0 Comment Revel

Revel Test Framework Summary, Revel Test Framework Summary, Develop a test suite, Run the test suite, Precautions, Development plan, Revel provides a testing framework that makes it easy to write and run functional tests for your application., The application comes with a simple tes

Revel Results

May 15, 2021 07:00 0 Comment Revel

Rendering, Rendering, RenderJson / RenderXml, Redirect, Add your own Results, The status code, The controller method must return a, revel.Result, which handles response results, has an interface defined as follows:, type Result interface {, Appl

Revel Session / Flash

May 15, 2021 07:00 0 Comment Revel

Session, Session, Flash, Revel supports two cookie-based storage mechanisms, // 一个签名 cookie (不超过4kb)., // 限制: Keys may not have a colon in them., type Session map[string]strin

Revel parameter validation

May 15, 2021 07:00 0 Comment Revel

Inline error message, Inline error message, The error message for the top, Revel brings its own parameter validation:, Provides a validation context for collecting and managing validation errors (via key and message)., Auxili

Revel deployment

May 15, 2021 08:00 0 Comment Revel

Revel deployment profile, Revel deployment profile, Locally compiled, Build on the server, Heroku, Cross-compilation, Revel deployment, profile, Several common deployment methods are:, The code is compiled locally and then copied to run on the server, Pull the code on

Revel profileapp.conf

May 15, 2021 08:00 0 Comment Revel

Revel Profile Overview, Revel Profile Overview, Custom properties, Built-in properties, Development plan, Revel Profile, Overview, app.conf, a profile of the Revel program that uses, the goconfig syntax,, similar to Microsoft's INI file., Here's an example

Revel command-line tool

May 15, 2021 08:00 0 Comment Revel

Build and Run, Build and Run, Build and Run, In order to use Revel, you must build the Revel command line tool:, $ go get github.com/revel/revel/revel, Now run it:, $ bin/revel, ~,

Revel FAQs

May 15, 2021 08:00 0 Comment Revel

Revel FAQs, How to put an existing http., Handlers integrated into Revel?, In, the concept map,, http. H, andler is used to process user requests., Revel's proces