Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
apidoc
|
|
|
yaag
command
|
|
|
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-configuration-structure
command
|
|
|
from-toml-file
command
|
|
|
from-yaml-file
command
|
|
|
functional
command
|
|
|
convert-handlers
|
|
|
negroni-like
command
|
|
|
nethttp
command
|
|
|
experimental-handlers
|
|
|
casbin/middleware
command
|
|
|
casbin/wrapper
command
|
|
|
cloudwatch/simple
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 courve.
|
iris provides some basic middleware, most for your learning courve. |
|
newrelic/simple
command
|
|
|
prometheus/simple
command
|
|
|
secure/simple
command
|
|
|
tollboothic/limit-handler
command
|
|
|
file-server
|
|
|
basic
command
|
|
|
embedding-files-into-app
command
|
|
|
embedding-gziped-files-into-app
command
|
|
|
favicon
command
|
|
|
send-files
command
|
|
|
single-page-application/basic
command
|
|
|
hero
|
|
|
basic
command
|
|
|
overview
command
|
|
|
http-listening
|
|
|
custom-httpserver/easy-way
command
|
|
|
custom-httpserver/multi
command
|
|
|
custom-httpserver/std-way
command
|
|
|
custom-listener
command
|
|
|
custom-listener/unix-reuseport
command
|
|
|
listen-addr
command
|
|
|
listen-addr/omit-server-errors
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
|
|
|
notify-on-shutdown
command
|
|
|
http_request
|
|
|
read-custom-per-type
command
|
|
|
read-custom-via-unmarshaler
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-xml
command
|
|
|
request-logger
command
|
|
|
upload-file
command
|
|
|
upload-files
command
|
|
|
http_responsewriter
|
|
|
herotemplate
command
|
|
|
herotemplate/template
Code generated by hero.
|
Code generated by hero. |
|
quicktemplate
command
|
|
|
sse-third-party
command
|
|
|
stream-writer
command
|
|
|
transactions
command
|
|
|
write-gzip
command
|
|
|
write-rest
command
|
|
|
miscellaneous
|
|
|
file-logger
command
|
|
|
i18n
command
|
|
|
pprof
command
|
|
|
recaptcha
command
|
|
|
recaptcha/custom_form
command
|
|
|
recover
command
|
|
|
mvc
|
|
|
basic
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: |
|
overview
command
|
|
|
session-controller
command
|
|
|
singleton
command
|
|
|
websocket
command
|
|
|
orm
|
|
|
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-context/method-overriding
command
|
|
|
custom-wrapper
command
|
|
|
dynamic-path
command
|
|
|
dynamic-path/root-wildcard
command
|
|
|
http-errors
command
|
|
|
overview
command
|
|
|
reverse
command
|
|
|
route-state
command
|
|
|
writing-a-middleware/globally
command
|
|
|
writing-a-middleware/per-route
command
|
|
|
sessions
|
|
|
database/badger
command
|
|
|
database/redis
command
|
|
|
flash-messages
command
|
|
|
overview
command
|
|
|
securecookie
command
|
|
|
standalone
command
|
|
|
structuring
|
|
|
bootstrap
command
|
|
|
|