-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: embedded REST proxy and web console server (#729)
* feat(pkg/server): embedded REST API / console server * chore: netgo tag is not required since Go 1.5 https://golang.org/doc/go1.5#net * feat: embedd webconsole with Go < 1.16 * chore: use go run to run statik * chore: add test for embedded API/web console server * chore(pkg/server/webserver): Use ImmuService directly instead of a gRPC client Note that the generated gateway code has a comment about this: // RegisterImmuServiceHandlerServer registers the http handlers for service ImmuService to "mux". // UnaryRPC :call ImmuServiceServer directly. // StreamingRPC :currently unsupported pending grpc/grpc-go#906. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterImmuServiceHandlerFromEndpoint instead. func RegisterImmuServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ImmuServiceServer) error { * chore: expose web server settings * chore: embed from a contained dist directory * chore: regenerate files * feat: add TLS support to the webconsole * chore: fix webserver test * chore: document webconsole build * chore: method not longer needed * chore: add test for webserver options * chore(pkg/server): increase coverage for Options * chore(pkg/server): increase coverage for Options
- Loading branch information
Showing
17 changed files
with
942 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.