forked from elixir-grpc/grpc-reflection
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Isolate state management (elixir-grpc#19)
* interface service module, and move agent struct to state * merge lookup into state * state mutation goes to state, and un-nest Builder.Util * code cleanup and organization * cleanup and simplify
- Loading branch information
1 parent
cec8410
commit a86e804
Showing
10 changed files
with
350 additions
and
315 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
defmodule GrpcReflection.Service do | ||
@moduledoc """ | ||
Primary interface to internal reflection state and logic | ||
""" | ||
|
||
alias GrpcReflection.Service.Agent | ||
alias GrpcReflection.Service.Builder | ||
|
||
defdelegate build_reflection_tree(services), to: Builder | ||
|
||
defdelegate put_state(cfg, state), to: Agent | ||
|
||
defdelegate list_services(cfg), to: Agent | ||
defdelegate get_by_symbol(cfg, symbol), to: Agent | ||
defdelegate get_by_filename(cfg, filename), to: Agent | ||
defdelegate get_by_extension(cfg, containing_type), to: Agent | ||
defdelegate get_extension_numbers_by_type(cfg, mod), to: Agent | ||
end |
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.