Gerasimos (Makis) Maropoulos
d254d48f34
Add mvc.Application.EnableStructDependents() and app.ConfigureContainer().EnableStructDependents()
...
relative to: #2158
2023-07-17 18:30:45 +03:00
Gerasimos (Makis) Maropoulos
6add1ba49b
fix #2158 and more
2023-07-08 02:08:18 +03:00
Jes Cok
7fb00911d4
hero: optimize *binding'String
...
For faster execution,
use strconv.Itoa rather than fmt.Sprintf to convert an integer to string,
remove if statement in loop.
2023-06-15 07:34:37 +08:00
Gerasimos (Makis) Maropoulos
ef2643b046
replace ioutil with io package and other minor improvements
2022-06-17 22:03:18 +03:00
Gerasimos (Makis) Maropoulos
288a67bc58
introduce iris.NewGuide()
2022-06-05 22:12:57 +03:00
Gerasimos (Makis) Maropoulos
9cf6f9fa5e
add a new Party.EnsureStaticBindings method - read HISTORY.md
2022-03-12 12:32:27 +02:00
Gerasimos (Makis) Maropoulos
61872a1612
Add Party.Container.SetDependencyMatcher, hero.Container.DependencyMatcher and hero.Dependency.Match to fullfil the feature request asked at: #1842
2022-03-01 21:26:02 +02:00
Gerasimos (Makis) Maropoulos
96c2dec47f
dependency injection: func (...<T>) iris.Handler can be generated to a simple iris handler if <T> are static dependencies
2021-06-10 21:16:00 +03:00
Gerasimos (Makis) Maropoulos
6219e57135
New APIContainer.EnableStrictMode(bool) method. Read HISTORY.md
2021-04-22 14:00:00 +03:00
Gerasimos (Makis) Maropoulos
fa81c596df
di: minor
2021-03-02 20:53:05 +02:00
Gerasimos (Makis) Maropoulos
c1b31ab102
PartyConfigure: try to bind the struct's exported zero fields based on the registered dependencies (if any)
...
If the PartyConfigurator value accepts only static dependencies then we have zero performance penalty, exactly like a Controller (structure) works
2021-02-21 22:24:01 +02:00
Gerasimos (Makis) Maropoulos
8aedf6bc32
:)
2021-01-09 05:41:20 +02:00
Gerasimos (Makis) Maropoulos
b409f7807e
New feature: versioning.Aliases
...
Thanks @mulyawansentosa and @remopavithran for your donates ❤️
2021-01-06 01:52:39 +02:00
Gerasimos (Makis) Maropoulos
3d5ed9926e
Merge pull request #1662 from kataras/jwt-new-features
...
New JWT Middleware features and more
2020-11-06 11:42:35 +02:00
Gerasimos (Makis) Maropoulos
a70ee32ebd
fix #1665
2020-10-31 05:04:05 +02:00
Gerasimos (Makis) Maropoulos
1864f99145
New JWT features and changes (examples updated). Improvements on the Context User and Private Error features
...
TODO: Write the new e-book JWT section and the HISTORY entry of the chnages and add a simple example on site docs
2020-10-17 06:40:17 +03:00
Gerasimos (Makis) Maropoulos
4065819688
New: i18n pluralization and variables support and more...
...
fixes : #1649 , #1648 , #1641 , #1650
relative to: #1597
2020-09-29 19:19:19 +03:00
Gerasimos (Makis) Maropoulos
d5a179cc45
fix UseRouter not respected by iris-cli live reload
2020-09-18 02:08:27 +03:00
Gerasimos (Makis) Maropoulos
7113165cb8
fix #1629
2020-09-14 01:09:51 +03:00
Gerasimos (Makis) Maropoulos
99fd50bf9d
mvc: give the end-developer the option to skip an error through the HandleError method
...
relative to: https://github.com/kataras/iris/issues/1628#issuecomment-691668764
2020-09-13 16:03:20 +03:00
Gerasimos (Makis) Maropoulos
7f7d8df9c0
add mvc.Err builtin dependency to map any context/mvc response's.Err field on methods like HandleHTTPError
...
relative to: https://github.com/kataras/iris/issues/1606
2020-08-31 15:26:30 +03:00
Gerasimos (Makis) Maropoulos
a6ec94e1a6
overlap routing: and mvc: allow setting status code from a dependency or a middleware
2020-08-28 04:11:56 +03:00
Gerasimos (Makis) Maropoulos
933534574a
fix #1603
2020-08-28 02:22:38 +03:00
Gerasimos (Makis) Maropoulos
5e82fa5b89
mvc: struct field and method dependency logs on debug level. Read HISTORY.md
...
- remove Party.GetReporter
- Read HISTORY.md
2020-08-24 21:44:29 +03:00
Gerasimos (Makis) Maropoulos
8e049d77c9
HandleHTTPError MVC Method as requested at #1595 . Read HISTORY.md
...
example at: https://github.com/kataras/iris/tree/master/_examples/mvc/error-handler-http
2020-08-22 08:04:22 +03:00
Gerasimos (Makis) Maropoulos
4228dd8ea4
add some MVC error handle examples
2020-08-18 23:14:11 +03:00
Gerasimos (Makis) Maropoulos
676048666c
minor, see prev commit
2020-08-01 05:11:08 +03:00
Gerasimos (Makis) Maropoulos
acf058b006
add database/orm/reform example
2020-08-01 03:46:51 +03:00
Gerasimos (Makis) Maropoulos
a4efb222cc
docfix #1566
...
Former-commit-id: fe2dbe46ac8153ef4db0b5788794bf907b98baad
2020-07-24 21:09:30 +03:00
Gerasimos (Makis) Maropoulos
baf68391b5
fix #1564
...
Former-commit-id: d17b205a56f95f476db8b846c88b4cb6df8b5239
2020-07-24 16:50:00 +03:00
Gerasimos (Makis) Maropoulos
dab03102f3
fix #1563 due to latest DI source changes
...
Former-commit-id: 3e3f209ebc60edf6a8702979f56e1f0ed73e4189
2020-07-17 12:59:39 +03:00
Gerasimos (Makis) Maropoulos
c8ed26ee51
fix #1557
...
Former-commit-id: 55589069c8ed458183d28f32870fdf8f233629c6
2020-07-11 16:14:31 +03:00
Gerasimos (Makis) Maropoulos
0f113dfcda
( #1554 ) Add support for all common compressions (write and read)
...
- Remove the context.Context interface and export the *context, the iris.Context now points to the pointer\nSupport compression and rate limiting in the FileServer\nBit of code organisation
Former-commit-id: ad1c61bf968059510c6be9e7f2cceec7da70ba17
2020-07-10 23:21:09 +03:00
Gerasimos (Makis) Maropoulos
29d98ac281
use the new protobuf package and other minor stuff
...
Former-commit-id: 29bf71e8a73d34b27c6f5fe3f12c4ea1cc2b84b2
2020-06-21 17:15:28 +03:00
Gerasimos (Makis) Maropoulos
45c6bce15f
fix https://github.com/kataras/iris/issues/1542
...
Former-commit-id: 23f795a6b6b64745311d0630d8e630edc3f65244
2020-06-20 16:06:26 +03:00
Gerasimos (Makis) Maropoulos
3c86fa8010
dependency injection: fix read slices
...
rel: https://github.com/kataras/iris/issues/1542
Former-commit-id: 0028fafa60b80c80cade1e7a18a11109ce0e9948
2020-06-20 07:22:29 +03:00
Gerasimos (Makis) Maropoulos
311b560717
new feature: versioned controllers
...
Former-commit-id: c797e23c78b1e74bbe9ba56673f3a98f17f5e2f7
2020-06-19 20:58:24 +03:00
Gerasimos (Makis) Maropoulos
9724592697
fix https://github.com/kataras/iris/issues/1536#issuecomment-646258752
...
Former-commit-id: 129d115937617e4d77b7e6e7efddf3168b15d021
2020-06-18 23:53:53 +03:00
Gerasimos (Makis) Maropoulos
ed45c77be5
reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker
...
Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
2020-06-07 15:26:06 +03:00
Gerasimos (Makis) Maropoulos
c866709acc
add 'Context.Register/RemoveDependency' for registering dependencies for next handler in the chain from a common iris handler in serve-time
...
And also, add a Configuration.FireEmptyFormError if end-dev wants to receive an iris.ErrEmptyForm error on missing form data on 'Context.ReadForm/ReadBody'
Former-commit-id: a2713bec77375b2908f1f066a46be4f19e6b7a61
2020-05-19 09:28:27 +03:00
Gerasimos (Makis) Maropoulos
f3745cebbd
replace all common error responses with the new Context.StopWithError
...
Former-commit-id: 99b08a0b5564ef640456db12674cb37721f73ae3
2020-05-18 00:25:38 +03:00
Gerasimos (Makis) Maropoulos
44eafe739b
misspell
...
Former-commit-id: 3be90d3099bfd9eabebd299dc08f9d6c1e6c2a29
2020-05-16 01:00:51 +03:00
Gerasimos (Makis) Maropoulos
ad74d7b935
error handlers per party: log those routes too and all test cases paased
...
need cleanup though
Former-commit-id: 6b0c18e38b58af2388015c7cf1af9cc43d7d35d3
2020-05-11 11:11:27 +03:00
Gerasimos (Makis) Maropoulos
24665990ce
add ctx.Tr support to hero/mvc.Response
...
Former-commit-id: f5e60e591dbbb162af1d671706a108a795865516
2020-05-06 06:36:05 +03:00
Gerasimos (Makis) Maropoulos
c10dd32ad7
new simple _examples/README.md, wiki should live only inside kataras/iris/wiki and the provided e-book
...
Former-commit-id: 350eafb0f70f8433e394e103ff93fa332ee00a05
2020-05-05 16:03:19 +03:00
Gerasimos (Makis) Maropoulos
340664dca9
add test for hero/Container.UseResultHandler
...
Former-commit-id: 8954541f8da055f30965cce07a85f485580fee48
2020-04-19 12:05:22 +03:00
Gerasimos (Makis) Maropoulos
dcf02480b3
Implement ResultHandler as requested at: https://github.com/kataras/iris/issues/1465
...
Former-commit-id: 9d76c2f00766afd53cf6e591c25f861f179dd817
2020-04-18 22:40:47 +03:00
Gerasimos (Makis) Maropoulos
1bb76853a9
.DI() to ConfigureContainer(...builders)
...
Former-commit-id: 169671a8b5b706dc8f136e68c1a060f27a2c421b
2020-04-17 15:56:36 +03:00
Gerasimos (Makis) Maropoulos
1b02f048ef
new 'Party.DI()' method to return the Party's instance of the new 'APIBuilderDI' and move the DI-relative Router to this new APIBuilderDI
...
Former-commit-id: 2fb81406c6e3162991c90e0918a3cac1b77c2b54
2020-04-08 20:04:56 +03:00
Gerasimos (Makis) Maropoulos
5852327f30
move the hero binding logic to the new 'context.ReadBody'
...
Former-commit-id: d336bb1ec6ca66087fe9e8d28b38062508b45227
2020-04-08 17:27:23 +03:00