Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aca0bec

Browse files
committedJul 14, 2017
Sync examples with iris/_examples
1 parent c4ecb5e commit aca0bec

File tree

164 files changed

+1881
-2639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+1881
-2639
lines changed
 

‎README.md

Lines changed: 80 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Examples
22

3-
<a href="https://travis-ci.org/iris-contrib/examples"><img src="https://img.shields.io/travis/iris-contrib/adaptors.svg?style=flat-square" alt="Build Status"></a>
3+
<a href="https://travis-ci.org/iris-contrib/examples"><img src="https://img.shields.io/travis/iris-contrib/examples.svg?style=flat-square" alt="Build Status"></a>
44
<a href="https://github.com/iris-contrib/examples/blob/master/LICENSE"><img src="https://img.shields.io/badge/%20license-MIT%20%20License%20-E91E63.svg?style=flat-square" alt="License"></a>
5-
<a href="https://github.com/kataras/iris/blob/master/HISTORY.md"><img src="https://img.shields.io/badge/version-7.2.0%20-blue.svg?style=flat-square" alt="CHANGELOG/HISTORY"></a>
5+
<a href="https://github.com/kataras/iris/blob/master/HISTORY.md"><img src="https://img.shields.io/badge/version-8.x%20-blue.svg?style=flat-square" alt="CHANGELOG/HISTORY"></a>
66

77

88

@@ -12,95 +12,96 @@ It doesn't contains "best ways" neither explains all its features. It's just a s
1212

1313
## Table of contents
1414

15-
* [Overview](overview/main.go)
16-
* [Listening](listening)
17-
* [Common, with address](listening/listen-addr/main.go)
18-
* [UNIX socket file](listening/listen-unix/main.go)
19-
* [TLS](listening/listen-tls/main.go)
20-
* [Letsencrypt (Automatic Certifications)](listening/listen-letsencrypt/main.go)
21-
* [Custom TCP Listener](listening/custom-listener/main.go)
15+
* [Overview](overview)
16+
* [Hello world!](hello-world/main.go)
17+
* [Glimpse](overview/main.go)
18+
* [Tutorial: Online Visitors](tutorial/online-visitors/main.go)
19+
* [Tutorial: URL Shortener using BoltDB](tutorial/url-shortener/main.go)
20+
* [HTTP Listening](http-listening)
21+
* [Common, with address](http-listening/listen-addr/main.go)
22+
* [UNIX socket file](http-listening/listen-unix/main.go)
23+
* [TLS](http-listening/listen-tls/main.go)
24+
* [Letsencrypt (Automatic Certifications)](http-listening/listen-letsencrypt/main.go)
25+
* [Custom net.Listener](http-listening/custom-listener/main.go)
26+
* [SO_REUSEPORT for unix systems](http-listening/custom-listener/unix-reuseport/main.go)
27+
* [Omit server errors](http-listening/listen-addr/omit-server-errors)
28+
* [Custom HTTP Server](http-listening/custom-httpserver/iris-way/main.go)
29+
* [Custom HTTP Server (STD)](http-listening/custom-httpserver/std-way/main.go)
30+
* [Multi HTTP Servers](http-listening/custom-httpserver/multi/main.go)
31+
* [Graceful Shutdown](http-listening/graceful-shutdown/default-notifier/main.go)
2232
* [Configuration](configuration)
23-
* [Basic way](configuration/basic/main.go)
24-
* [Functional way](configuration/functional/main.go)
33+
* [Functional](configuration/functional/main.go)
34+
* [From Configuration Struct](configuration/from-configuration-struct/main.go)
2535
* [Import from YAML file](configuration/from-yaml-file/main.go)
2636
* [Import from TOML file](configuration/from-toml-file/main.go)
2737
* [Routing](routing)
2838
* [Overview](routing/overview/main.go)
2939
* [Basic](routing/basic/main.go)
40+
* [Custom HTTP Errors](routing/http-errors/main.go)
3041
* [Dynamic Path](routing/dynamic-path/main.go)
3142
* [Reverse routing](routing/reverse/main.go)
32-
* [Custom wrapper](routing/custom-wrapper/main.go)
33-
* [Transform any third-party handler to iris-compatible handler](convert-handlers)
43+
* [Custom wrapper](routing/custom-wrapper/main.go)
44+
* [Route State](routing/route-state/main.go)
45+
* [Custom Context](routing/custom-context)
46+
* [Method Overriding](routing/custom-context/method-overriding/main.go)
47+
* [New Implementation](routing/custom-context/new-implementation/main.go)
48+
* [Convert http.Handler](convert-handlers)
3449
* [From func(http.ResponseWriter, *http.Request, http.HandlerFunc)](convert-handlers/negroni-like/main.go)
3550
* [From http.Handler or http.HandlerFunc](convert-handlers/nethttp/main.go)
36-
* [Internal Application File Logger](file-logger/main.go)
37-
* [Custom HTTP Errors](http-errors/main.go)
38-
* [Write JSON](write-json/main.go)
39-
* [Read JSON](read-json/main.go)
40-
* [Read Form](read-form/main.go)
41-
* [Favicon](favicon/main.go)
42-
* [File Server](file-server)
43-
* [Basic](file-server/basic/main.go)
44-
* [Embedding Files Into App Executable File](file-server/embedding-files-into-app/main.go)
45-
* [Single Page Application](file-server/single-page-application/main.go)
46-
* [Embedding Single Page Application](file-server/embedding-single-page-application/main.go)
47-
* [Send Files](send-files/main.go)
48-
* [Stream Writer](stream-writer/main.go)
49-
* [Send An E-mail](e-mail/main.go)
50-
* [Upload/Read Files](upload-files/main.go)
51-
* [Recovery](recover/main.go)
52-
* [Profiling (pprof)](pprof/main.go)
53-
* [Request Logger](request-logger/main.go)
54-
* [Basic Authentication](basicauth/main.go)
55-
* [OAuth2](oauth2/main.go)
56-
* [Transactions](transactions/main.go)
57-
* [HTTP Testing](httptest/main_test.go)
58-
* [Watch & Compile Typescript source files](typescript/main.go)
59-
* [Cloud Editor](cloud-editor/main.go)
60-
* [HTTP Access Control](cors/main.go)
61-
* [Cache Markdown](cache-markdown/main.go)
62-
* [Localization and Internationalization](i18n/main.go)
63-
* [Graceful Shutdown](graceful-shutdown)
64-
* [Basic and simple](graceful-shutdown/basic/main.go)
65-
* [Custom Host](graceful-shutdown/custom-host/main.go)
66-
* [Custom notifier](graceful-shutdown/custom-notifier/main.go)
67-
* [Custom HTTP Server](custom-httpserver)
68-
* [Iris way](custom-httpserver/iris-way/main.go)
69-
* [Standar way](custom-httpserver/std-way/main.go)
70-
* [More than one server](custom-httpserver/multi/main.go)
71-
* [Custom Context](custom-context)
72-
* [Method Overriding](custom-context/method-overriding/main.go)
73-
* [Route State](route-state/main.go)
74-
* [View Engine](view)
75-
* [Overview](view/overview/main.go)
76-
* [Hi](view/template_html_0/main.go)
77-
* [Showcase one simple Layout](view/template_html_1/main.go)
78-
* [Layouts `yield` and `render` tmpl funcs](view/template_html_2/main.go)
79-
* [Showcase of the `urlpath` tmpl func](view/template_html_3/main.go)
80-
* [Showcase of the `url` tmpl func](view/template_html_4/main.go)
81-
* [Inject Data Between Handlers](view/context-view-data/main.go)
82-
* [Embedding Templates Into App Executable File](view/embedding-templates-into-app/main.go)
83-
* [Sessions](sessions)
84-
* [Overview](sessions/overview/main.go)
85-
* [Encoding & Decoding the Session ID: Secure Cookie](sessions/securecookie/main.go)
86-
* [Standalone](sessions/standalone/main.go)
87-
* [Flash Messages](sessions/flash-messages/main.go)
88-
* [With A Back-End Database](sessions/database/main.go)
89-
* [Password Hashing](sessions/password-hashing/main.go)
90-
* [Websockets](websockets)
91-
* [Ridiculous Simple](websockets/ridiculous-simple/main.go)
92-
* [Overview](websockets/overview/main.go)
93-
* [Connection List](websockets/connectionlist/main.go)
94-
* [Native Messages](websockets/native-messages/main.go)
95-
* [Secure](websockets/secure/main.go)
96-
* [Custom Go Client](websockets/custom-go-client/main.go)
9751
* [Subdomains](subdomains)
9852
* [Single](subdomains/single/main.go)
9953
* [Multi](subdomains/multi/main.go)
10054
* [Wildcard](subdomains/wildcard/main.go)
101-
* [WWW](subdomains/www/main.go)
102-
* [Online Visitors](online-visitors/main.go)
103-
* [URL Shortener using BoltDB](url-shortener/main.go)
55+
* [WWW](subdomains/www/main.go)
56+
* [View](view)
57+
* [Overview](view/overview/main.go)
58+
* [Hi](view/template_html_0/main.go)
59+
* [A simple Layout](view/template_html_1/main.go)
60+
* [Layouts: `yield` and `render` tmpl funcs](view/template_html_2/main.go)
61+
* [The `urlpath` tmpl func](view/template_html_3/main.go)
62+
* [The `url` tmpl func](view/template_html_4/main.go)
63+
* [Inject Data Between Handlers](view/context-view-data/main.go)
64+
* [Embedding Templates Into App Executable File](view/embedding-templates-into-app/main.go)
65+
* [Authentication](authentication)
66+
* [Basic Authentication](authentication/basicauth/main.go)
67+
* [OAUth2](authentication/oauth2/main.go)
68+
* [JWT](https://github.com/iris-contrib/middleware/blob/master/jwt/_example/main.go)
69+
* [File Server](file-server)
70+
* [Favicon](file-server/favicon/main.go)
71+
* [Basic](file-server/basic/main.go)
72+
* [Embedding Files Into App Executable File](file-server/embedding-files-into-app/main.go)
73+
* [Send/Force-Download Files](file-server/send-files/main.go)
74+
* [Single Page Applications](file-server/single-page/application)
75+
* [Single Page Application](file-server/single-page-application/basic/main.go)
76+
* [Embedded Single Page Application](file-server/single-page-application/embedded-single-page-application/main.go)
77+
* [How to Read from *http.Request`](http_reqest)
78+
* [Bind JSON](http_request/read-json/main.go)
79+
* [Bind Form](http_request/read-form/main.go)
80+
* [Upload/Read Files](http_request/upload-files/main.go)
81+
* [How to Write to http.ResponseWriter](http_responsewriter)
82+
* [Text, Markdown, HTML, JSON, JSONP, XML, Binary](http_responsewriter/write-rest/main.go)
83+
* [Stream Writer](http_responsewriter/stream-writer/main.go)
84+
* [Transactions](http_responsewriter/transactions/main.go)
85+
* [Miscellaneous](miscellaneous)
86+
* [Request Logger](http_request/request-logger/main.go)
87+
* [Localization and Internationalization](miscellaneous/i18n/main.go)
88+
* [Recovery](miscellaneous/recover/main.go)
89+
* [Profiling (pprof)](miscellaneous/pprof/main.go)
90+
* [Internal Application File Logger](miscellaneous/file-logger/main.go)
91+
* [Testing](testing/httptest/main_test.go)
92+
* [Caching](https://github.com/kataras/iris/blob/master/cache/_examples/simple/main.go)
93+
* [Sessions](https://github.com/kataras/iris/tree/master/sessions)
94+
* [Overview](https://github.com/kataras/iris/tree/master/sessions/_examples/overview/main.go)
95+
* [Standalone](https://github.com/kataras/iris/tree/master/sessions/_examples/standalone/main.go)
96+
* [Secure Cookie](https://github.com/kataras/iris/tree/master/sessions/_examples/securecookie/main.go)
97+
* [Flash Messages](https://github.com/kataras/iris/tree/master/sessions/_examples/flash-messages/main.go)
98+
* [Database](https://github.com/kataras/iris/tree/master/sessions/_examples/database/main.go)
99+
* [Websockets](https://github.com/kataras/iris/tree/master/websocket)
100+
* [Chat](https://github.com/kataras/iris/tree/master/websocket/_examples/chat/main.go)
101+
* [Native Messages](https://github.com/kataras/iris/tree/master/websocket/_examples/native-messages/main.go)
102+
* [Connection List](https://github.com/kataras/iris/tree/master/websocket/_examples/connectionlist/main.go)
103+
* [TLS Enabled](https://github.com/kataras/iris/tree/master/websocket/_examples/secure/main.go)
104+
* [Custom Raw Go Client](https://github.com/kataras/iris/tree/master/websocket/_examples/custom-go-client/main.go)
104105

105106
> Do not forget to [star or watch the project](https://github.com/kataras/iris/stargazers) in order to stay updated with the latest tech trends, it takes some seconds for the sake of go!
106107
@@ -114,14 +115,9 @@ $ cd $GOPATH/src/github.com/iris-contrib/examples/overview
114115
$ go run main.go
115116
```
116117

117-
## Support
118-
http://support.iris-go.com
119-
120-
### Older versions
118+
## Any troubles with examples?
121119

122-
- [Iris version 6/http2](https://github.com/kataras/iris/tree/v6) examples, click [here](https://github.com/kataras/iris/tree/v6/_examples).
123-
- [Iris version 5/fasthttp](https://github.com/kataras/iris/tree/5.0.0) examples, click [here](https://github.com/iris-contrib/examples/tree/5.0.0).
124-
- [Iris version 4/fasthttp](https://github.com/kataras/iris/tree/4.0.0) examples, click [here](https://github.com/iris-contrib/examples/tree/4.0.0).
120+
https://github.com/iris-contrib/examples/issues
125121

126122
## Su, 04 June 2017
127123

‎authentication/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Authentication
2+
3+
- [Basic Authentication](basicauth/main.go)
4+
- [OAUth2](oauth2/main.go)
5+
- [JWT](https://github.com/iris-contrib/middleware/blob/master/jwt/_example/main.go)
6+
- [Sessions](https://github.com/kataras/iris/tree/master/_examples/#sessions)

0 commit comments

Comments
 (0)
Please sign in to comment.