James Hillyerd
33784cbb94
chore: more small lint/perf fixes ( #493 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-16 16:53:50 -08:00
James Hillyerd
8adae023dc
chore: rework client example to omit log.Fatal, breaks defer ( #489 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-15 19:13:03 -08:00
James Hillyerd
ea585c4851
chore: fix more capitalization style warnings ( #487 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-15 18:31:43 -08:00
James Hillyerd
baa2dbd3a1
chore: fix many cosmetic linter warnings ( #486 )
...
* fix whitespace warnings
Signed-off-by: James Hillyerd <james@hillyerd.com >
* fix a number of typos
Signed-off-by: James Hillyerd <james@hillyerd.com >
* fix many cosmetic linter warnings
Signed-off-by: James Hillyerd <james@hillyerd.com >
---------
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-15 18:02:26 -08:00
corey-aloia
3112deb3e6
[Rest Client] changing to enable relative urls ( #477 )
...
* changing to enable relative urls
Signed-off-by: Corey Aloia <corey.aloia@sap.com >
2024-02-09 08:53:44 -08:00
James Hillyerd
6a389c78cc
rest/client: fix comment lint error ( #465 )
...
Signed-off-by: James Hillyerd <james@hillyerd.com >
2024-02-04 19:50:02 -08:00
James Hillyerd
6d66012a0c
Rename client.WithOptTransport ( #464 )
...
* Update apiv1_client_opts.go
* Update apiv1_client_test.go
2024-01-25 10:06:35 -08:00
corey-aloia
b5ccd3da51
[Rest Client] Use options for client.New ( #463 )
...
* adding in clientopts to the rest client
Signed-off-by: Corey Aloia <corey.aloia@sap.com >
2024-01-25 09:46:31 -08:00
James Hillyerd
7ae7d29741
rest: resolve linter errors ( #430 )
2023-11-12 19:32:43 -08:00
James Hillyerd
9836c0ffbb
go: update mod and imports to correctly reflect major version ( #388 )
2023-09-09 12:36:21 -07:00
guangwu
0ae452ed17
chore: remove refs to deprecated io/ioutil ( #376 )
...
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com >
2023-08-07 16:25:36 -07:00
James Hillyerd
e4c48a0705
go code: rename to github.com/inbucket/inbucket
2019-02-24 09:43:10 -08:00
James Hillyerd
523c04a522
Logging improvements, handler extraction.
...
- rest: improve error logging.
- web: extract handlers/middleware into their own file.
- web: log all requests, not just ones hitting our handlers.
- test: improve integration test logging format.
2018-11-12 20:38:00 -08:00
James Hillyerd
469132fe2f
rest: Add godoc example test for client.
...
- Update README and CHANGELOG
2018-10-31 19:45:15 -07:00
James Hillyerd
690b19a22c
rest: Rewrite client tests using httptest server.
2018-10-31 18:44:32 -07:00
James Hillyerd
dc02092cf6
rest: Implement MarkSeen for #58
...
- message: Add MarkSeen to Manager, StoreManager.
- rest: Add PATCH for /mailbox/name/id.
- rest: Add MailboxMarkSeenV1 handler.
- rest: Add Seen to model.
- rest: Update handlers to set Seen.
- rest: Add doJSONBody func.
2018-04-01 13:30:43 -07:00
James Hillyerd
f8c30a678a
Reorganize packages, closes #79
...
- All packages go into either cmd or pkg directories
- Most packages renamed
- Server packages moved into pkg/server
- sanitize moved into webui, as that's the only place it's used
- filestore moved into pkg/storage/file
- Makefile updated, and PKG variable use fixed
2018-03-10 12:04:13 -08:00