Commit Graph

254 Commits

Author SHA1 Message Date
770eeaa25c feat(smalltrip,problem): use handler browser as default handler 2025-07-30 19:14:43 -03:00
5069ac6478 feat(smalltrip,problem): middleware support to set global handlers 2025-07-30 19:14:43 -03:00
47670daf55 feat(smalltrip,problem): handler browser 2025-07-30 19:14:43 -03:00
6fca911c8f feat(smalltrip,problem): handler template 2025-07-30 19:14:42 -03:00
793b6180e7 refactor(smalltrip,problems): remove fallbacks from handlers 2025-07-30 19:14:42 -03:00
0f1d7a01d8 refactor(smalltrip,problems): rename http.go to handlers.go 2025-07-29 19:18:28 -03:00
ed8f1e9601 feat(smalltrip,problems): use Problem interface on handlers 2025-07-29 19:18:28 -03:00
22f2ea5fa8 feat(smalltrip,problems): Problem interface 2025-07-29 19:18:27 -03:00
61d9bee554 fix(smalltrip,problems): make problems be structs with Problem embedded 2025-07-29 19:15:10 -03:00
6ed38cf1cf refactor(smalltrip,problems): define RetryAfter header parsing into separated type 2025-07-29 19:15:10 -03:00
42f2f114fa feat(smallstrip,problems): 400s codes constructors and problems 2025-07-29 19:14:36 -03:00
e8fdd9cbf5 refactor(smallstrip,problems): make 500 error types distinct and not aliases 2025-07-29 19:14:36 -03:00
3c08d5dbec feat(smalltrip,problems): 500s code constructors and problems 2025-07-04 19:15:27 -03:00
5fe4fae97e feat(smalltrip,problems): http handler for problems (wip) 2025-07-04 19:15:26 -03:00
9ce32a5f6b feat(smalltrip,problems): new problem package to handle 400 and 500 error codes
This is planned to replace the exceptions package, having a nicer and
more extendable API, based on the RFC 9457 (HTTP problems)
2025-07-04 19:15:24 -03:00
7ae5c14f6c feat(smalltrip): use multiplexer interface instead of http.ServeMux
This will be useful for the future to provide something akin to
plugins/addons to the router.
2025-06-27 22:02:39 -03:00
3fc9631fbc feat(smallstrip): WithMiddleware option 2025-06-27 22:01:13 -03:00
13f15a479b chore(smalltrip): delete routes file 2025-06-27 21:59:55 -03:00
9f3fb63e3d refactor(smalltrip): simplify router implementation
This removes all the parse route and route group code, since they
haven't a lot of use for it. Router is now just a small wrapper over Mux
to add middleware support.
2025-06-27 21:59:16 -03:00
c62be87c6a docs(tinyssert): documentation about the functional options 2025-05-14 11:46:00 -03:00
fec910c22f docs(tinyssert): documentation about the New constructor 2025-05-14 11:45:45 -03:00
2e9139c682 docs(tinyssert): follow revive's format for package documentation 2025-05-14 11:34:52 -03:00
52bf759e7f docs(tinyssert): add example of using dependency injection 2025-05-14 11:33:34 -03:00
a0d8a88bef feat(tinyssert): update top-level methods, export Default implementation 2025-05-14 11:33:10 -03:00
d425c35414 feat(tinyssert): update disabled assertions implementation 2025-05-14 11:32:32 -03:00
62e4743aba feat(tinyssert): major refactor, APIs now return a Failure error instead of booleans, options are now functional 2025-05-14 11:32:08 -03:00
9c59adeba8 docs(tinyssert): add documentation about msg argument in methods 2025-05-14 11:30:42 -03:00
ceda7536f1 fix(smalltrip,exception): make MethodNotAllowed error more clear about allowed methods 2025-03-11 19:28:25 -03:00
56e822a184 feat(smallstrip,middleware): rename Dev middleware to DisableCache 2025-03-06 18:44:33 -03:00
0ccb26ab78 refactor(smalltrip,exception): rename exceptions package to exception, singular form 2025-03-05 13:51:22 -03:00
883118156a fix(smallstrip,exceptions): missing return causing nil de-reference 2025-03-05 12:21:50 -03:00
a2452dd239 fix(smallstrip,exceptions): superfulous call when responding exception after first Write 2025-03-05 11:51:14 -03:00
9055d4ad3a feat(smallstrip,exceptions): improve default exception template 2025-03-05 10:41:58 -03:00
05619c382c revert(smalltrip,middleware): remove net.ParseIP to validate ip address 2025-03-05 09:57:04 -03:00
a16254848b fix(smalltrip): middlewares are not wrapped with previous ones 2025-03-05 09:45:56 -03:00
3851ae51f7 revert(smalltrip,middleware): remove premature optimization from logger 2025-03-05 09:45:31 -03:00
f3317501f7 fix(smalltrip,middleware): cache directives using floats instead of int 2025-03-05 09:12:13 -03:00
357ec79656 chore(deps): remove unused dependencies from go.mod 2025-03-04 17:41:24 -03:00
90a5169f1b chore(smalltrip): format the copyright author line 2025-02-27 16:21:57 -03:00
49192ad704 chore(smalltrip): add LICENSE file and headers 2025-02-27 16:21:01 -03:00
88631bff47 fix(smalltrip,middleware): import statement still poiting to groute 2025-02-27 16:20:35 -03:00
19297f7658 chore(groute): remove unused groute package 2025-02-27 15:45:07 -03:00
98f1701a84 chore(tinyssert): update names in README.md 2025-02-27 15:44:26 -03:00
645690b7f8 refactor(smalltrip): remove unecessary length argument in make 2025-02-26 19:30:25 -03:00
1a40569716 refactor(smalltrip): rename handleRouter to handleGroup 2025-02-26 19:30:06 -03:00
1208c26780 refactor(tinyssert): remove uncessessary else statement 2025-02-26 19:29:36 -03:00
81e36b8acc docs(tinyssert): make NewDisableAssertion docs follow revive's rules 2025-02-26 19:24:25 -03:00
25582aabf4 refactor(tinyssert): move NewDisabledAssertions definition closer to disabledAssertions 2025-02-26 19:20:19 -03:00
d8f92c848e refactor(tinyssert): remove unecessary undercode receiver 2025-02-26 19:19:02 -03:00
58a158f446 chore(tinissert): fix path of the original file in license notice 2025-02-26 19:07:25 -03:00