This website requires JavaScript.
e3813daa80
fix(multiplexer): EnsureMethod string comparasion not properly checking method
main
Gustavo "Guz" L de Mello
2025-11-13 14:17:45 -03:00
18fa785154
chore(deps): update to go 1.25.2
Gustavo "Guz" L de Mello
2025-11-13 14:16:55 -03:00
bb634f58cb
chore: update module domain
Gustavo "Guz" L de Mello
2025-10-13 15:16:57 -03:00
484584882a
docs(readme): contributing information
Gustavo "Guz" L de Mello
2025-08-26 16:03:49 -03:00
71117f2c08
docs(readme): how to use the package
Gustavo "Guz" L de Mello
2025-08-26 16:03:37 -03:00
38a1ab4ff1
docs(readme): about the package
Gustavo "Guz" L de Mello
2025-08-26 16:03:13 -03:00
24f397b9e3
docs: Smalltrip.go logo
Gustavo "Guz" L de Mello
2025-08-26 15:43:16 -03:00
a10df34cce
chore(ci): update to golangci-lint v2 config
Gustavo "Guz" L de Mello
2025-08-26 15:41:45 -03:00
3211a6917b
chore(module,repository): update module path with new repository
Gustavo "Guz" L de Mello
2025-08-26 15:41:05 -03:00
67bf6cf61e
chore(lint): configure golang_ci
Gustavo "Guz" L de Mello
2025-08-11 17:37:14 -03:00
a9949c8b5d
chore(flake): dev shell setup via nix flake
Gustavo "Guz" L de Mello
2025-08-11 17:37:03 -03:00
23789c02f4
feat(smalltrip,problem): problem multiplexer to handle 404 and 405 errors
Gustavo "Guz" L de Mello
2025-08-11 19:16:53 -03:00
b339cf23cb
feat(smalltrip,middleware): FormMethod middleware
Gustavo "Guz" L de Mello
2025-08-08 19:17:57 -03:00
cecf19693f
feat(smalltrip,multiplexer): pattern options and rules multiplexer
Gustavo "Guz" L de Mello
2025-08-08 19:17:57 -03:00
dfebde8c4e
feat(smalltrip,multiplexer): form method multiplexer
Gustavo "Guz" L de Mello
2025-08-08 19:17:57 -03:00
547a88db80
feat(smalltrip,multiplexer): Multiplexer interface constructor, alias to http.NewServeMux
Gustavo "Guz" L de Mello
2025-08-08 19:17:56 -03:00
47b5014f21
feat(smalltrip,problem): expose context key of middleware
Gustavo "Guz" L de Mello
2025-08-08 19:17:01 -03:00
b4235ab5e9
feat!(smalltrip,router): log handler type name and package on Handle and HandleFunc
Gustavo "Guz" L de Mello
2025-08-08 19:16:44 -03:00
d0506a6c14
feat(smalltrip,problem): panic middleware
Gustavo "Guz" L de Mello
2025-07-30 19:15:18 -03:00
407da65f38
feat(smalltrip,problem): make WithDetail, WithDetailf and WithError append message if there is already one
Gustavo "Guz" L de Mello
2025-07-30 19:15:08 -03:00
f62fc22a06
fix(smalltrip,problem): name NewInternalServerError instead of NewInternalError
Gustavo "Guz" L de Mello
2025-07-30 19:14:59 -03:00
49ddff5c41
chore(smalltrip,problem): add license header to problem package files
Gustavo "Guz" L de Mello
2025-07-30 19:14:46 -03:00
c733c6538b
feat(smalltrip): remove exceptions package in favor of problem
Gustavo "Guz" L de Mello
2025-07-30 19:14:44 -03:00
94db7c51ea
feat(smalltrip,problem): use handler browser as default handler
Gustavo "Guz" L de Mello
2025-07-30 19:14:43 -03:00
e2e26c89e0
feat(smalltrip,problem): middleware support to set global handlers
Gustavo "Guz" L de Mello
2025-07-30 19:14:43 -03:00
8f77794295
feat(smalltrip,problem): handler browser
Gustavo "Guz" L de Mello
2025-07-30 19:14:43 -03:00
fac89e5565
feat(smalltrip,problem): handler template
Gustavo "Guz" L de Mello
2025-07-30 19:14:42 -03:00
bbebb0d140
refactor(smalltrip,problems): remove fallbacks from handlers
Gustavo "Guz" L de Mello
2025-07-30 19:14:42 -03:00
da132231f7
refactor(smalltrip,problems): rename http.go to handlers.go
Gustavo "Guz" L de Mello
2025-07-29 19:18:28 -03:00
e7268c9fa0
feat(smalltrip,problems): use Problem interface on handlers
Gustavo "Guz" L de Mello
2025-07-29 19:18:28 -03:00
8c51880748
feat(smalltrip,problems): Problem interface
Gustavo "Guz" L de Mello
2025-07-29 19:18:27 -03:00
d4836e877a
fix(smalltrip,problems): make problems be structs with Problem embedded
Gustavo "Guz" L de Mello
2025-07-29 19:15:10 -03:00
830bafcbbe
refactor(smalltrip,problems): define RetryAfter header parsing into separated type
Gustavo "Guz" L de Mello
2025-07-29 19:15:10 -03:00
b4a9c349bb
feat(smallstrip,problems): 400s codes constructors and problems
Gustavo "Guz" L de Mello
2025-07-29 19:14:36 -03:00
d9c1bf0df5
refactor(smallstrip,problems): make 500 error types distinct and not aliases
Gustavo "Guz" L de Mello
2025-07-29 19:14:36 -03:00
c847f2b421
feat(smalltrip,problems): 500s code constructors and problems
Gustavo "Guz" L de Mello
2025-07-04 19:15:27 -03:00
8bab404d03
feat(smalltrip,problems): http handler for problems (wip)
Gustavo "Guz" L de Mello
2025-07-04 19:15:26 -03:00
094eab5333
feat(smalltrip,problems): new problem package to handle 400 and 500 error codes
Gustavo "Guz" L de Mello
2025-07-04 19:15:24 -03:00
5f6093d2ce
feat(smalltrip): use multiplexer interface instead of http.ServeMux
Gustavo "Guz" L de Mello
2025-06-27 22:02:39 -03:00
93f9d7e2c3
feat(smallstrip): WithMiddleware option
Gustavo "Guz" L de Mello
2025-06-27 22:01:13 -03:00
5466adaa42
chore(smalltrip): delete routes file
Gustavo "Guz" L de Mello
2025-06-27 21:59:55 -03:00
a1aeadf017
refactor(smalltrip): simplify router implementation
Gustavo "Guz" L de Mello
2025-06-27 21:59:16 -03:00
523ec24e76
fix(smalltrip,exception): make MethodNotAllowed error more clear about allowed methods
Gustavo "Guz" L de Mello
2025-03-11 19:28:25 -03:00
28da082450
feat(smallstrip,middleware): rename Dev middleware to DisableCache
Gustavo "Guz" L de Mello
2025-03-06 18:44:33 -03:00
f580091c05
refactor(smalltrip,exception): rename exceptions package to exception, singular form
Gustavo "Guz" L de Mello
2025-03-05 13:51:22 -03:00
5a11c2a872
fix(smallstrip,exceptions): missing return causing nil de-reference
Gustavo "Guz" L de Mello
2025-03-05 12:21:50 -03:00
e6007de362
fix(smallstrip,exceptions): superfulous call when responding exception after first Write
Gustavo "Guz" L de Mello
2025-03-05 11:51:14 -03:00
e782fdce33
feat(smallstrip,exceptions): improve default exception template
Gustavo "Guz" L de Mello
2025-03-05 10:41:58 -03:00
ccb6231f0d
revert(smalltrip,middleware): remove net.ParseIP to validate ip address
Gustavo "Guz" L de Mello
2025-03-05 09:57:04 -03:00
6944d2cccd
fix(smalltrip): middlewares are not wrapped with previous ones
Gustavo "Guz" L de Mello
2025-03-05 09:45:56 -03:00
7ee8e222fd
revert(smalltrip,middleware): remove premature optimization from logger
Gustavo "Guz" L de Mello
2025-03-05 09:45:31 -03:00
ce3a9da0f1
fix(smalltrip,middleware): cache directives using floats instead of int
Gustavo "Guz" L de Mello
2025-03-05 09:12:13 -03:00
5b99723788
chore(smalltrip): format the copyright author line
Gustavo "Guz" L de Mello
2025-02-27 16:21:57 -03:00
c1798847fd
chore(smalltrip): add LICENSE file and headers
Gustavo "Guz" L de Mello
2025-02-27 16:21:01 -03:00
239f5d1f4e
fix(smalltrip,middleware): import statement still poiting to groute
Gustavo "Guz" L de Mello
2025-02-27 16:20:35 -03:00
4ca5db44bd
refactor(smalltrip): remove unecessary length argument in make
Gustavo "Guz" L de Mello
2025-02-26 19:30:25 -03:00
753a4bb19e
refactor(smalltrip): rename handleRouter to handleGroup
Gustavo "Guz" L de Mello
2025-02-26 19:30:06 -03:00
ee3e6c9a90
fix(smallstrip,middleware): rename bool variable to not conflict with built-in id
Gustavo "Guz" L de Mello
2025-02-26 18:38:49 -03:00
a99079d3a3
feat(smalltrip,middleware): check interface of directives struct
Gustavo "Guz" L de Mello
2025-02-26 18:37:34 -03:00
51517fdfa8
refactor(smalltrip,exceptions): use std log levels as Severity Levels
Gustavo "Guz" L de Mello
2025-02-26 18:12:22 -03:00
6a07ce9470
feat(smalltrip,exceptions): make panic errors be of severity FATAL
Gustavo "Guz" L de Mello
2025-02-26 17:51:21 -03:00
ba74401be8
feat(smalltrip,exceptions): PanicMiddleware to recover from unexcepted panics
Gustavo "Guz" L de Mello
2025-02-26 17:48:44 -03:00
2dfa195cee
docs(smalltrip,exceptions): add MDN documentation for each status code on 500s contructors
Gustavo "Guz" L de Mello
2025-02-26 16:47:03 -03:00
201f274f01
feat(smalltrip,exceptions): retryAfter in 503 Service Unavailable exceptionn
Gustavo "Guz" L de Mello
2025-02-26 16:39:35 -03:00
21dbf4f772
docs(smalltrip,exceptions): document all 500s status code constructors
Gustavo "Guz" L de Mello
2025-02-26 16:03:15 -03:00
f165e22900
feat(smalltrip,exceptions): 500 exceptions constructors
Gustavo "Guz" L de Mello
2025-02-26 15:58:23 -03:00
4e24437a96
docs(smalltrip,exceptions): add MDN documentation for each status code on 400s contructors
Gustavo "Guz" L de Mello
2025-02-26 10:54:38 -03:00
466406d7ef
docs(smalltrip,exceptions): document all 400s status code constructors
Gustavo "Guz" L de Mello
2025-02-26 10:54:18 -03:00
fb976f6e0d
feat(smalltrip,exceptions): constructor for all 400 status codes
Gustavo "Guz" L de Mello
2025-02-26 10:51:10 -03:00
6019cdeb0e
feat(smalltrip,exceptions): exception constructor
Gustavo "Guz" L de Mello
2025-02-26 10:47:19 -03:00
6c4b90fe44
feat(smalltrip,exceptions): headers field for additional headers to be sent with exception
Gustavo "Guz" L de Mello
2025-02-25 16:00:21 -03:00
4741cf988a
feat(smalltrip,exceptions): Data field for additional contextual data
Gustavo "Guz" L de Mello
2025-02-25 15:59:48 -03:00
2d81fffdba
feat(smalltrip,exceptions): Severity type implementation
Gustavo "Guz" L de Mello
2025-02-25 14:31:23 -03:00
852afa65de
feat(smalltrip,exceptions): exception middleware to provide handlers depending of Accept header
Gustavo "Guz" L de Mello
2025-02-25 14:31:02 -03:00
6bcd0e214a
feat(smalltrip,exceptions): use a JSON handler if none is provided via the context
Gustavo "Guz" L de Mello
2025-02-25 14:30:14 -03:00
ad1769e044
feat(smalltrip): new exceptions package for structurerd error codes
Gustavo "Guz" L de Mello
2025-02-25 14:28:07 -03:00
f508d12ba8
feat(smalltrip): TODO PersistentCache middlware
Gustavo "Guz" L de Mello
2025-02-24 08:05:37 -03:00
21495998cf
feat(smalltrip): TODO SmartCache middlware
Gustavo "Guz" L de Mello
2025-02-24 08:04:49 -03:00
049b70f23d
feat(smalltrip): cache middleware
Gustavo "Guz" L de Mello
2025-02-24 08:04:28 -03:00
ac50e1e2d6
feat(smalltrip): logger middleware
Gustavo "Guz" L de Mello
2025-02-24 08:03:53 -03:00
d470007c63
feat(smalltrip): development middleware
Gustavo "Guz" L de Mello
2025-02-24 08:03:45 -03:00
4fac484f1f
feat(smalltrip): new smalltrip package
Gustavo "Guz" L de Mello
2025-02-24 08:03:07 -03:00