_examples/

directory
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2022 License: BSD-3-Clause

Directories

Path Synopsis
authentication
basicauth command
oauth2 command
cache
client-side command
Package main shows how you can use the `WriteWithExpiration` based on the "modtime", if it's newer than the request header then it will refresh the contents, otherwise will let the client (99.9% the browser) to handle the cache mechanism, it's faster than iris.Cache because server-side has nothing to do and no need to store the responses in the memory.
Package main shows how you can use the `WriteWithExpiration` based on the "modtime", if it's newer than the request header then it will refresh the contents, otherwise will let the client (99.9% the browser) to handle the cache mechanism, it's faster than iris.Cache because server-side has nothing to do and no need to store the responses in the memory.
simple command
configuration
from-toml-file command
from-yaml-file command
functional command
convert-handlers
negroni-like command
nethttp command
cookies
basic command
securecookie command
desktop-app
blink command
lorca command
webview command
experimental-handlers
casbin/wrapper command
cors/simple command
csrf command
This middleware provides Cross-Site Request Forgery protection.
This middleware provides Cross-Site Request Forgery protection.
jwt command
iris provides some basic middleware, most for your learning curve.
iris provides some basic middleware, most for your learning curve.
newrelic/simple command
secure/simple command
file-server
basic command
favicon command
send-files command
subdomain command
hero
basic command
overview command
sessions command
smart-contract command
http-listening
custom-listener command
listen-addr command
listen-letsencrypt command
Package main provide one-line integration with letsencrypt.org
Package main provide one-line integration with letsencrypt.org
listen-tls command
listen-unix command
http_request
extract-referer command
read-form command
package main contains an example on how to use the ReadForm, but with the same way you can do the ReadJSON & ReadJSON
package main contains an example on how to use the ReadForm, but with the same way you can do the ReadJSON & ReadJSON
read-json command
read-json-struct-validation command
Package main shows the validator(latest, version 9) integration with Iris.
Package main shows the validator(latest, version 9) integration with Iris.
read-many command
read-query command
package main contains an example on how to use the ReadForm, but with the same way you can do the ReadJSON & ReadJSON
package main contains an example on how to use the ReadForm, but with the same way you can do the ReadJSON & ReadJSON
read-xml command
read-yaml command
request-logger command
upload-file command
upload-files command
http_responsewriter
content-negotiation command
Package main contains three different ways to render content based on the client's accepted.
Package main contains three different ways to render content based on the client's accepted.
herotemplate command
herotemplate/template
Code generated by hero.
Code generated by hero.
quicktemplate command
sse command
Package main shows how to send continuous event messages to the clients through SSE via a broker.
Package main shows how to send continuous event messages to the clients through SSE via a broker.
sse-third-party command
stream-writer command
transactions command
write-gzip command
write-rest command
miscellaneous
file-logger command
pprof command
recaptcha command
recover command
mvc
basic command
error-handler command
grpc-compatible command
hello-world command
login command
middleware command
Package main shows how you can add middleware to an mvc Application, simply by using its `Router` which is a sub router(an iris.Party) of the main iris app.
Package main shows how you can add middleware to an mvc Application, simply by using its `Router` which is a sub router(an iris.Party) of the main iris app.
middleware/per-method command
If you want to use it as middleware for the entire controller you can use its router which is just a sub router to add it as you normally do with standard API:
If you want to use it as middleware for the entire controller you can use its router which is just a sub router to add it as you normally do with standard API:
middleware/without-ctx-next command
Package main is a simple example of the behavior change of the execution flow of the handlers, normally we need the `ctx.Next()` to call the next handler in a route's handler chain, but with the new `ExecutionRules` we can change this default behavior.
Package main is a simple example of the behavior change of the execution flow of the handlers, normally we need the `ctx.Next()` to call the next handler in a route's handler chain, but with the new `ExecutionRules` we can change this default behavior.
overview command
regexp command
Package main shows how to match "/xxx.json" in MVC handler.
Package main shows how to match "/xxx.json" in MVC handler.
singleton command
websocket command
orm
gorm command
xorm command
Package main shows how an orm can be used within your web app it just inserts a column and select the first.
Package main shows how an orm can be used within your web app it just inserts a column and select the first.
basic command
custom-wrapper command
dynamic-path command
http-errors command
macros command
Package main shows how you can register a custom parameter type and macro functions that belongs to it.
Package main shows how you can register a custom parameter type and macro functions that belongs to it.
overview command
reverse command
route-state command
sessions
database/badger command
database/boltdb command
database/redis command
flash-messages command
middleware command
overview command
securecookie command
structuring
bootstrap command
subdomains
multi command
redirect command
Package main shows how to register a simple 'www' subdomain, using the `app.WWW` method, which will register a router wrapper which will redirect all 'mydomain.com' requests to 'www.mydomain.com'.
Package main shows how to register a simple 'www' subdomain, using the `app.WWW` method, which will register a router wrapper which will redirect all 'mydomain.com' requests to 'www.mydomain.com'.
single command
Package main register static subdomains, simple as parties, check ./hosts if you use windows
Package main register static subdomains, simple as parties, check ./hosts if you use windows
wildcard command
Package main an example on how to catch dynamic subdomains - wildcard.
Package main an example on how to catch dynamic subdomains - wildcard.
www command
testing
httptest command
tutorial
caddy/server1 command
caddy/server2 command
dropzonejs/src command
mongodb command
online-visitors command
url-shortener command
Package main shows how you can create a simple URL Shortener.
Package main shows how you can create a simple URL Shortener.
view
embedding-templates-into-app command
Code generated for package main by go-bindata DO NOT EDIT.
Code generated for package main by go-bindata DO NOT EDIT.
overview command
template_html_0 command
template_html_1 command
template_html_2 command
template_html_3 command
Package main an example on how to naming your routes & use the custom 'url path' HTML Template Engine, same for other template engines.
Package main an example on how to naming your routes & use the custom 'url path' HTML Template Engine, same for other template engines.
template_html_4 command
Package main an example on how to naming your routes & use the custom 'url' HTML Template Engine, same for other template engines.
Package main an example on how to naming your routes & use the custom 'url' HTML Template Engine, same for other template engines.
template_html_5 command
template_jet_0 command
Package main shows how to use jet template parser with ease using the Iris built-in Jet view engine.
Package main shows how to use jet template parser with ease using the Iris built-in Jet view engine.
template_jet_1_embedded command
Package main shows how to use jet templates embedded in your application with ease using the Iris built-in Jet view engine.
Package main shows how to use jet templates embedded in your application with ease using the Iris built-in Jet view engine.
template_jet_2 command
Package main an example on how to naming your routes & use the custom 'url path' Jet Template Engine.
Package main an example on how to naming your routes & use the custom 'url path' Jet Template Engine.
template_jet_3 command
template_pug_0 command
template_pug_1 command
Package main shows an example of pug actions based on https://github.com/Joker/jade/tree/master/example/actions
Package main shows an example of pug actions based on https://github.com/Joker/jade/tree/master/example/actions
template_pug_2 command
template_pug_3 command
Code generated for package main by go-bindata DO NOT EDIT.
Code generated for package main by go-bindata DO NOT EDIT.
write-to command
webassembly
basic command
basic/client command
websocket
basic command
basic/go-client command
native-messages command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL