Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
070a2873
Commit
070a2873
authored
8 years ago
by
Mark D. Roth
Browse files
Options
Downloads
Patches
Plain Diff
Improve documentation in method_config.h.
parent
c1c38586
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/ext/client_config/method_config.h
+17
-0
17 additions, 0 deletions
src/core/ext/client_config/method_config.h
with
17 additions
and
0 deletions
src/core/ext/client_config/method_config.h
+
17
−
0
View file @
070a2873
...
@@ -43,7 +43,18 @@
...
@@ -43,7 +43,18 @@
/// Per-method configuration.
/// Per-method configuration.
typedef
struct
grpc_method_config
grpc_method_config
;
typedef
struct
grpc_method_config
grpc_method_config
;
/// Creates a grpc_method_config with the specified parameters.
/// Any parameter may be NULL to indicate that the value is unset.
/// Any parameter may be NULL to indicate that the value is unset.
///
/// \a wait_for_ready indicates whether the client should wait until the
/// request deadline for the channel to become ready, even if there is a
/// temporary failure before the deadline while attempting to connect.
///
/// \a timeout indicates the timeout for calls.
///
/// \a max_request_message_bytes and \a max_response_message_bytes
/// indicate the maximum sizes of the request (checked when sending) and
/// response (checked when receiving) messages.
grpc_method_config
*
grpc_method_config_create
(
grpc_method_config
*
grpc_method_config_create
(
bool
*
wait_for_ready
,
gpr_timespec
*
timeout
,
bool
*
wait_for_ready
,
gpr_timespec
*
timeout
,
int32_t
*
max_request_message_bytes
,
int32_t
*
max_response_message_bytes
);
int32_t
*
max_request_message_bytes
,
int32_t
*
max_response_message_bytes
);
...
@@ -51,6 +62,8 @@ grpc_method_config* grpc_method_config_create(
...
@@ -51,6 +62,8 @@ grpc_method_config* grpc_method_config_create(
grpc_method_config
*
grpc_method_config_ref
(
grpc_method_config
*
method_config
);
grpc_method_config
*
grpc_method_config_ref
(
grpc_method_config
*
method_config
);
void
grpc_method_config_unref
(
grpc_method_config
*
method_config
);
void
grpc_method_config_unref
(
grpc_method_config
*
method_config
);
/// Compares two grpc_method_configs.
/// The sort order is stable but undefined.
int
grpc_method_config_cmp
(
const
grpc_method_config
*
method_config1
,
int
grpc_method_config_cmp
(
const
grpc_method_config
*
method_config1
,
const
grpc_method_config
*
method_config2
);
const
grpc_method_config
*
method_config2
);
...
@@ -84,9 +97,13 @@ grpc_method_config_table* grpc_method_config_table_ref(
...
@@ -84,9 +97,13 @@ grpc_method_config_table* grpc_method_config_table_ref(
grpc_method_config_table
*
table
);
grpc_method_config_table
*
table
);
void
grpc_method_config_table_unref
(
grpc_method_config_table
*
table
);
void
grpc_method_config_table_unref
(
grpc_method_config_table
*
table
);
/// Compares two grpc_method_config_tables.
/// The sort order is stable but undefined.
int
grpc_method_config_table_cmp
(
const
grpc_method_config_table
*
table1
,
int
grpc_method_config_table_cmp
(
const
grpc_method_config_table
*
table1
,
const
grpc_method_config_table
*
table2
);
const
grpc_method_config_table
*
table2
);
/// Gets the method config for the specified \a path, which should be of
/// the form "/service/method".
/// Returns NULL if the method has no config.
/// Returns NULL if the method has no config.
/// Caller does NOT own a reference to the result.
/// Caller does NOT own a reference to the result.
grpc_method_config
*
grpc_method_config_table_get_method_config
(
grpc_method_config
*
grpc_method_config_table_get_method_config
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment