guoguangwu
115e48a202
chore: remove refs to deprecated io/ioutil
...
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com >
2023-10-19 11:05:38 +08:00
dependabot[bot]
47d0dc5938
chore(deps): bump golang from 1.16.6 to 1.17.0 in /.github/go ( #185 )
...
* chore(deps): bump golang from 1.16.6 to 1.17.0 in /.github/go
Bumps golang from 1.16.6 to 1.17.0.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix: guard against writing HTTP Status 0
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2021-08-18 11:37:51 +02:00
pancho horrillo
6821eca6f3
fix: drop black magic that is no longer needed
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2021-01-11 17:59:31 +01:00
pancho horrillo
ec227c2ba3
fix: don't flush status immediately
...
Closes : #148
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2021-01-11 17:54:54 +01:00
pancho horrillo
4d05223224
feat: Access Logging on the user server
...
Closes : #98
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2020-12-17 16:30:55 +01:00
pancho horrillo
41be4f9344
refactor: use a common logger for consistency
...
All kapow messages will end up in stderr (incl. debug mode).
stdout is reserved for the access logs.
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2020-12-16 17:29:26 +01:00
pancho horrillo
4546fc65b6
fix: honor global flag --debug
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2020-12-15 18:59:29 +01:00
pancho horrillo
58fae53e2e
test: logStream() behaves correctly like a good kiddo
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2020-12-15 18:37:44 +01:00
pancho horrillo
6ec9b54670
fix: add missing spawner reset code to test
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2020-12-15 18:37:44 +01:00
Roberto Abdelkader Martínez Pérez
0dd9cf07ab
wip: create pipes to manage entrypoint stdout/stderr even after termination
2020-12-15 18:37:44 +01:00
Héctor Hurtado
248f7d1fcc
Added stderr output management to jaillover.
...
Added Spawn support for stderr redirection.
Added --debug option to server cmd.
Added debug information to documentation.
Finnished script logger.
2020-04-20 10:18:16 +02:00
Héctor Hurtado
e6e25f25c7
Fix #102
2020-04-06 18:02:29 +02:00
Héctor Hurtado
73ef493f04
cmd/server sets now environment variables KAPOW_DATA_URL and KAPOW_CONTROL_URL
...
Remove golinter error S1036: unnecessary guard around map access in
spawn package
2020-04-03 21:42:42 +02:00
Héctor Hurtado
f103b39a94
If CA certificate file is incorrect return an error instead of use default syustem CA store
2020-01-24 11:54:06 +01:00
Héctor Hurtado
cddc5ff351
Fixes #45 : Added Support fot Mutual TLS Authentication
2020-01-23 17:39:58 +01:00
Héctor Hurtado
493e6be78c
Added support fot https in user server
2020-01-22 17:27:24 +01:00
Héctor Hurtado
a65eb102b2
Fix variable name in spawn function. Added working with json, upload examples and install&configuration documentation
2019-11-20 16:33:18 +01:00
pancho horrillo
7ea43048bc
Add missing comments
2019-11-20 07:14:00 +01:00
pancho horrillo
83e4523dc7
Simplify files via gofmt -s (thanks, Go Report Card!)
2019-11-19 14:14:55 +01:00
pancho horrillo
92fbb72735
Fix typos catched via misspell (thanks Go Report Card!)
2019-11-19 14:07:58 +01:00
pancho horrillo
2d5743af84
Add blank line between legal header and package declaration
...
Otherwise, the legal header is rendered as package documentation.
2019-11-13 18:18:44 +01:00
Héctor Hurtado
a54c6f24a1
Added getRoute to control api
2019-10-24 17:52:03 +02:00
Héctor Hurtado
723e4787b3
Added legal header to all Go source files
2019-10-23 13:35:01 +02:00
pancho horrillo
034a5ab677
Fix typo in comment
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-22 16:29:54 +02:00
Roberto Abdelkader Martínez Pérez
304276db47
Fix dummy return. Closes #34
2019-10-18 23:55:25 +02:00
pancho horrillo
b4f2e9ffdd
Refactor tests
...
* Get rid of spurious model.Route{} var, by adding content
directly into model.Handler{} literal.
* Adjust spacing to adhere to the prepare-call-test test structure.
2019-10-13 08:17:16 +02:00
pancho horrillo
c62a0d6a9a
Sort imports intro three blocks (stdlib, non-stdlib, current prj)
2019-10-13 08:09:15 +02:00
Roberto Abdelkader Martínez Pérez
ed03e1a89f
Added TODO about refactor
2019-10-11 11:05:40 +02:00
Roberto Abdelkader Martínez Pérez
c2ab6a0de1
Implemented internal/server/user.Run(). Will be tested with E2E.
2019-10-11 08:43:40 +02:00
Roberto Abdelkader Martínez Pérez
bbca5873a0
Update mux on delete route
2019-10-11 07:56:10 +02:00
pancho horrillo
df5d38e94f
swappableMux is now public and Append() now updates Server.Handler
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-10 20:22:09 +02:00
pancho horrillo
b4dd6e9805
Add New() func & Update() method to internal/server/user/mux/swappableMux
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-10 19:26:17 +02:00
pancho horrillo
463382bfb2
Add internal/server/user/mux/handlerbuilder{,_test}.go
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-10 18:16:15 +02:00
pancho horrillo
2129c4a1f6
internal/server/model.Handler.Route is no longer a pointer
...
Also Spawn() now checks if entrypoint is not set
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-10 18:16:15 +02:00
pancho horrillo
a39e0f6605
Spawner ready
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-10 11:49:58 +02:00
pancho horrillo
d0764f07a4
First cut to spawner
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-09 18:28:33 +02:00
pancho horrillo
49252a78a6
Fix misuse of gorilla/mux.Router{} use mux.NewRouter() instead
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-09 15:22:50 +02:00
pancho horrillo
401644b65e
Finish gorillize()
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-09 13:10:04 +02:00
Roberto Abdelkader Martínez Pérez
8729e1e492
Implement Route.Delete()
...
Co-authored-by: pancho horrillo <pedrofelipe.horrillo@bbva.com >
2019-10-09 11:45:41 +02:00
Roberto Abdelkader Martínez Pérez
6810cb99ee
Add List method to Routes singletone returning the list of numbered routes
2019-10-09 09:54:27 +02:00
Roberto Abdelkader Martínez Pérez
31f6015110
Increase legibility of gorillize function
2019-10-09 08:39:12 +02:00
Roberto Abdelkader Martínez Pérez
f656f9f3b0
Change function gorillize signature slightly
2019-10-08 21:09:48 +02:00
pancho horrillo
2cd96d5a4b
Add the controversial gorillize()
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-08 19:39:44 +02:00
pancho horrillo
037347dbe3
Augment safeRouteList.Append() to return a model.Route with index
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-08 17:53:15 +02:00
pancho horrillo
e0dd6f5dd5
Refactor internal/server/user package structure
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-08 17:22:09 +02:00
pancho horrillo
2eb32610a0
Exclude test from race condition verification
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-08 15:34:42 +02:00
pancho horrillo
3b405bd9f6
Add ServeHTTP() method to swappableMux struct
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-08 15:06:08 +02:00
Roberto Abdelkader Martínez Pérez
0348df1df5
Prevent linter from reporting a deprecation warning in a test
2019-10-08 09:09:47 +02:00
Roberto Abdelkader Martínez Pérez
22f03eb67f
Move swappableMux and its methods to its own module
2019-10-08 09:01:40 +02:00
pancho horrillo
10586bae95
Add internal/server/user/server{,_test}.go
...
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com >
2019-10-07 19:05:59 +02:00