_examples/

directory
v12.2.11 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause

Directories

Path Synopsis
basicauth/basic command
cors command
Package main integrates the "rs/cors" net/http middleware into Iris.
Package main integrates the "rs/cors" net/http middleware into Iris.
goth command
hcaptcha command
jwt/basic command
jwt/blocklist command
jwt/middleware command
permissions command
recaptcha command
caddy
server1 command
server2 command
client command
configuration
from-toml-file command
from-yaml-file command
functional command
convert-handlers
negroni-like command
nethttp command
nethttp/wrapper command
cookies
basic command
options command
securecookie command
database
orm/gorm command
orm/sqlx command
sqlx command
dependency-injection
basic command
jwt command
overview command
sessions command
smart-contract command
desktop
blink command
lorca command
dropzonejs
src command
basic command
embedding-files-into-app-bindata command
Package main generated by go-bindata.// sources: assets/css/main.css assets/favicon.ico assets/js/main.js
Package main generated by go-bindata.// sources: assets/css/main.css assets/favicon.ico assets/js/main.js
embedding-gzipped-files-into-app-bindata command
Package main generated by go-bindata.// sources: ../embedding-files-into-app-bindata/assets/css/main.css ../embedding-files-into-app-bindata/assets/favicon.ico ../embedding-files-into-app-bindata/assets/js/main.js
Package main generated by go-bindata.// sources: ../embedding-files-into-app-bindata/assets/css/main.css ../embedding-files-into-app-bindata/assets/favicon.ico ../embedding-files-into-app-bindata/assets/js/main.js
favicon command
http2push command
http2push-embedded command
Package main generated by go-bindata.// sources: ../http2push/assets/app2/app2app3/css/main.css ../http2push/assets/app2/app2app3/dirs/dir1/text.txt ../http2push/assets/app2/app2app3/dirs/dir2/text.txt ../http2push/assets/app2/app2app3/dirs/text.txt ../http2push/assets/app2/app2app3/index.html ../http2push/assets/app2/index.html ../http2push/assets/app2/mydir/text.txt ../http2push/assets/css/main.css ../http2push/assets/favicon.ico ../http2push/assets/index.html ../http2push/assets/js/main.js
Package main generated by go-bindata.// sources: ../http2push/assets/app2/app2app3/css/main.css ../http2push/assets/app2/app2app3/dirs/dir1/text.txt ../http2push/assets/app2/app2app3/dirs/dir2/text.txt ../http2push/assets/app2/app2app3/dirs/text.txt ../http2push/assets/app2/app2app3/index.html ../http2push/assets/app2/index.html ../http2push/assets/app2/mydir/text.txt ../http2push/assets/css/main.css ../http2push/assets/favicon.ico ../http2push/assets/index.html ../http2push/assets/js/main.js
http2push-embedded-gzipped command
Package main generated by go-bindata.// sources: ../http2push/assets/app2/app2app3/css/main.css ../http2push/assets/app2/app2app3/dirs/dir1/text.txt ../http2push/assets/app2/app2app3/dirs/dir2/text.txt ../http2push/assets/app2/app2app3/dirs/text.txt ../http2push/assets/app2/app2app3/index.html ../http2push/assets/app2/index.html ../http2push/assets/app2/mydir/text.txt ../http2push/assets/css/main.css ../http2push/assets/favicon.ico ../http2push/assets/index.html ../http2push/assets/js/main.js
Package main generated by go-bindata.// sources: ../http2push/assets/app2/app2app3/css/main.css ../http2push/assets/app2/app2app3/dirs/dir1/text.txt ../http2push/assets/app2/app2app3/dirs/dir2/text.txt ../http2push/assets/app2/app2app3/dirs/text.txt ../http2push/assets/app2/app2app3/index.html ../http2push/assets/app2/index.html ../http2push/assets/app2/mydir/text.txt ../http2push/assets/css/main.css ../http2push/assets/favicon.ico ../http2push/assets/index.html ../http2push/assets/js/main.js
send-files command
single-page-application/embedded-single-page-application command
Package main generated by go-bindata.// sources: data/public/app.js data/public/app2/index.html data/public/css/main.css data/views/index.html
Package main generated by go-bindata.// sources: data/public/app.js data/public/app2/index.html data/public/css/main.css data/views/index.html
single-page-application/embedded-single-page-application-with-other-routes command
Package main generated by go-bindata.// sources: public/app.js public/css/main.css public/index.html
Package main generated by go-bindata.// sources: public/app.js public/css/main.css public/index.html
spa-vue-router command
Package main simply shows how you can getting started with Iris and Vue Router.
Package main simply shows how you can getting started with Iris and Vue Router.
subdomain command
upload-file command
upload-files command
webdav command
http-client
weatherapi command
http-server
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
socket-sharding command
timeout command
i18n
basic command
plurals command
template command
logging
file-logger command
json-logger command
request-logger/accesslog-formatter command
Package main shows how to create a quite fast custom Log Formatter.
Package main shows how to create a quite fast custom Log Formatter.
request-logger/accesslog-proxy command
Package main is a proxy + accesslog example.
Package main is a proxy + accesslog example.
monitor
mvc
authenticated-controller command
Package main shows how to use a dependency to check if a user is logged in using a special custom Go type `Authenticated`, which when, present on a controller's method or a field then it limits the visibility to "authenticated" users only.
Package main shows how to use a dependency to check if a user is logged in using a special custom Go type `Authenticated`, which when, present on a controller's method or a field then it limits the visibility to "authenticated" users only.
basic command
basic/wildcard command
error-handler command
grpc-compatible command
grpc-compatible/grpc-client command
Package main implements a client for Greeter service.
Package main implements a client for Greeter service.
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 shows how to add done handlers in an MVC application without the necessity of `ctx.Next()` inside the controller's methods.
Package main shows how to add done handlers in an MVC application without the necessity of `ctx.Next()` inside the controller's methods.
regexp command
Package main shows how to match "/xxx.json" in MVC handler.
Package main shows how to match "/xxx.json" in MVC handler.
repository command
singleton command
websocket command
websocket-auth command
request-body
form-query-headers-params-decoder command
package main contains an example on how to register a custom decoder for a custom type when using the `ReadQuery/ReadParams/ReadHeaders/ReadForm` methods.
package main contains an example on how to register a custom decoder for a custom type when using the `ReadQuery/ReadParams/ReadHeaders/ReadForm` methods.
read-body 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-headers command
package main contains an example on how to use the ReadHeaders, same way you can do the ReadQuery, ReadJSON, ReadProtobuf and e.t.c.
package main contains an example on how to use the ReadHeaders, same way you can do the ReadQuery, ReadJSON, ReadProtobuf and e.t.c.
read-json command
read-json-struct-validation command
Package main shows the validator(latest, version 10) integration with Iris' Context methods of `ReadJSON`, `ReadXML`, `ReadMsgPack`, `ReadYAML`, `ReadForm`, `ReadQuery`, `ReadBody`.
Package main shows the validator(latest, version 10) integration with Iris' Context methods of `ReadJSON`, `ReadXML`, `ReadMsgPack`, `ReadYAML`, `ReadForm`, `ReadQuery`, `ReadBody`.
read-many command
read-msgpack command
read-params command
package main contains an example on how to use the ReadParams, same way you can do the ReadQuery, ReadJSON, ReadProtobuf and e.t.c.
package main contains an example on how to use the ReadParams, same way you can do the ReadQuery, ReadJSON, ReadProtobuf and e.t.c.
read-query command
package main contains an example on how to use the ReadQuery, same way you can do the ReadJSON & ReadProtobuf and e.t.c.
package main contains an example on how to use the ReadQuery, same way you can do the ReadJSON & ReadProtobuf and e.t.c.
read-url command
package main contains an example on how to use the ReadURL, same way you can do the ReadQuery, ReadParams, ReadJSON, ReadProtobuf and e.t.c.
package main contains an example on how to use the ReadURL, same way you can do the ReadQuery, ReadParams, ReadJSON, ReadProtobuf and e.t.c.
read-xml command
read-yaml command
request-ratelimit
rate-middleware command
ulule-limiter command
response-writer
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.
cache/simple command
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.
http2push command
Server push lets the server preemptively "push" website assets to the client without the user having explicitly asked for them.
Server push lets the server preemptively "push" website assets to the client without the user having explicitly asked for them.
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
write-rest command
basic command
custom-context command
custom-router command
custom-wrapper command
dynamic-path command
hello-world command
http-errors command
intelligence 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
overview-2 command
remove-handler command
remove-route command
reverse command
rewrite command
route-handlers-execution-rules 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 `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 `ExecutionRules` we can change this default behavior.
route-state command
sitemap command
subdomains/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
subdomains/wildcard command
Package main an example on how to catch dynamic subdomains - wildcard.
Package main an example on how to catch dynamic subdomains - wildcard.
subdomains/www command
versioning command
writing-a-middleware/share-funcs command
Package main shows how you can share a function between handlers of the same chain.
Package main shows how you can share a function between handlers of the same chain.
sessions
basic command
database/badger command
database/boltdb command
flash-messages command
overview command
securecookie command
viewdata command
testing
httptest 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-bindata command
Package main generated by go-bindata.// sources: templates/layouts/layout.html templates/layouts/mylayout.html templates/page1.html templates/partials/page1_partial1.html
Package main generated by go-bindata.// sources: templates/layouts/layout.html templates/layouts/mylayout.html templates/page1.html templates/partials/page1_partial1.html
fallback command
herotemplate command
herotemplate/template
Code generated by hero.
Code generated by hero.
layout/ace command
layout/blocks command
layout/django command
layout/html command
layout/jet command
layout/pug command
overview command
parse-template command
Package main shows how to parse a template through custom byte slice content.
Package main shows how to parse a template through custom byte slice content.
quicktemplate command
template_ace_0 command
template_blocks_1_embedded command
Package main generated by go-bindata.// sources: ../template_blocks_0/views/500.html ../template_blocks_0/views/index.html ../template_blocks_0/views/layouts/error.html ../template_blocks_0/views/layouts/main.html ../template_blocks_0/views/partials/footer.html
Package main generated by go-bindata.// sources: ../template_blocks_0/views/500.html ../template_blocks_0/views/index.html ../template_blocks_0/views/layouts/error.html ../template_blocks_0/views/layouts/main.html ../template_blocks_0/views/partials/footer.html
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 generated by go-bindata.// sources: views/includes/_partial.jet views/includes/blocks.jet views/index.jet views/layouts/application.jet
Package main generated by go-bindata.// sources: views/includes/_partial.jet views/includes/blocks.jet views/index.jet views/layouts/application.jet
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
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_1 command
template_pug_2_embedded command
Package main generated by go-bindata.// sources: templates/index.pug templates/layout.pug
Package main generated by go-bindata.// sources: templates/index.pug templates/layout.pug
write-to command
client command
websocket
native-messages command
online-visitors command

Jump to

Keyboard shortcuts

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