Commit Graph

28 Commits (e8d52274e7073c0caa616729f4ef7993cd09b646)

Author SHA1 Message Date
bel 6b962ea509 parse datacenter from Tags field 2024-04-13 10:24:02 -06:00
bel b1d93a7698 add /events and /eventnames 2024-04-13 10:15:29 -06:00
bel 10630df394 Accept $ASSET_PATTERN 2024-04-13 10:00:21 -06:00
bel 1324376399 also accpt text/tsv 2024-04-13 09:52:53 -06:00
bel e58fa50656 accept Accept:text/csv 2024-04-13 09:48:28 -06:00
bel 9bfbcf2d70 wip text/csv 2024-04-13 09:29:00 -06:00
bel 847cd83fd5 extract into writeJSON 2024-04-13 09:26:02 -06:00
bel e7b3418932 extract parsing ?since 2024-04-13 09:20:03 -06:00
bel ab933e3c53 impl GET /api/v1/messages 2024-04-13 09:19:53 -06:00
bel a48518fea6 yay 2024-04-12 15:30:50 -06:00
Bel LaPointe 20a9589eb8 add HTTP server test with main and testdata 2024-04-12 14:05:02 -06:00
Bel LaPointe c0977a6b7a return ErrIrrelevantMessage and log http server ignored messages 2024-04-12 13:32:53 -06:00
Bel LaPointe 6ca1f83727 stub handling GET /.../messages 2024-04-12 11:23:30 -06:00
Bel LaPointe 0d3910829d if $POSTGRES_CONN set then use it 2024-04-12 10:00:13 -06:00
Bel LaPointe 8f288cf12e impl Postgres driver 2024-04-12 09:58:32 -06:00
Bel LaPointe 1b148092b9 on slack webhook storage.Upsert message 2024-04-12 09:22:42 -06:00
Bel LaPointe 24628f4ebb Config has a .storage, .queue, .driiver 2024-04-12 09:21:36 -06:00
Bel LaPointe 82fc7526d0 main parses incoming slack event 2024-04-12 09:15:16 -06:00
Bel LaPointe fb5e7b580e log not impl'd slack event 2024-04-11 17:21:44 -06:00
Bel LaPointe bdc40e91b4 only write METHOD PATH | BODY if $DEBUG=true 2024-04-11 17:21:07 -06:00
Bel LaPointe 64af8f5085 only handle slack events in $SLACK_CHANNELS csv 2024-04-11 17:19:32 -06:00
Bel LaPointe 6a6524692a POST /api/v1/events/slack asserts .token==$SLACK_TOKEN 2024-04-11 17:11:43 -06:00
Bel LaPointe 2372fa8bb9 route /api/v1/events/slack differently when INITIALIZE_SLACK=true 2024-04-11 17:02:03 -06:00
Bel LaPointe 967d33b03b log 2024-04-11 16:51:23 -06:00
Bel LaPointe 84e4600737 http.ServeMux to route POST /api/v1/events/x$ 2024-04-11 16:49:17 -06:00
Bel LaPointe bf7e067628 log access 2024-04-11 16:39:56 -06:00
Bel LaPointe 4c4d92478d to Config struct for configging 2024-04-11 16:36:23 -06:00
Bel LaPointe 8b732b196d An http server 2024-04-11 16:07:39 -06:00