Home
last modified time | relevance | path

Searched refs:grpc_json (Results 1 – 25 of 34) sorted by relevance

12

/external/grpc-grpc/src/core/lib/json/
Djson.h32 typedef struct grpc_json { struct
33 struct grpc_json* next; argument
34 struct grpc_json* prev; argument
35 struct grpc_json* child; argument
36 struct grpc_json* parent; argument
44 } grpc_json; typedef
59 grpc_json* grpc_json_parse_string_with_len(char* input, size_t size);
60 grpc_json* grpc_json_parse_string(char* input);
70 char* grpc_json_dump_to_string(grpc_json* json, int indent);
77 grpc_json* grpc_json_create(grpc_json_type type);
[all …]
Djson.cc30 grpc_json* grpc_json_create(grpc_json_type type) { in grpc_json_create()
31 grpc_json* json = static_cast<grpc_json*>(gpr_zalloc(sizeof(*json))); in grpc_json_create()
37 void grpc_json_destroy(grpc_json* json) { in grpc_json_destroy()
59 grpc_json* grpc_json_link_child(grpc_json* parent, grpc_json* child, in grpc_json_link_child()
60 grpc_json* sibling) { in grpc_json_link_child()
80 grpc_json* grpc_json_create_child(grpc_json* sibling, grpc_json* parent, in grpc_json_create_child()
83 grpc_json* child = grpc_json_create(type); in grpc_json_create_child()
91 grpc_json* grpc_json_add_number_string_child(grpc_json* parent, grpc_json* it, in grpc_json_add_number_string_child()
Djson_string.cc43 grpc_json* top;
44 grpc_json* current_container;
45 grpc_json* current_value;
173 static grpc_json* json_create_and_link(void* userdata, grpc_json_type type) { in json_create_and_link()
175 grpc_json* json = grpc_json_create(type); in json_create_and_link()
201 grpc_json* container; in json_reader_container_begins()
248 grpc_json* json = json_create_and_link(userdata, GRPC_JSON_STRING); in json_reader_set_string()
254 grpc_json* json = json_create_and_link(userdata, GRPC_JSON_NUMBER); in json_reader_set_number()
283 grpc_json* grpc_json_parse_string_with_len(char* input, size_t size) { in grpc_json_parse_string_with_len()
286 grpc_json* json = nullptr; in grpc_json_parse_string_with_len()
[all …]
/external/grpc-grpc/src/core/lib/channel/
Dchannelz.cc50 grpc_json* json = RenderJson(); in RenderJsonString()
70 void CallCountingHelper::PopulateCallCounts(grpc_json* json) { in PopulateCallCounts()
71 grpc_json* json_iterator = nullptr; in PopulateCallCounts()
101 grpc_json* ChannelNode::RenderJson() { in RenderJson()
103 grpc_json* top_level_json = grpc_json_create(GRPC_JSON_OBJECT); in RenderJson()
104 grpc_json* json = top_level_json; in RenderJson()
105 grpc_json* json_iterator = nullptr; in RenderJson()
117 grpc_json* data = grpc_json_create_child(json_iterator, json, "data", nullptr, in RenderJson()
129 grpc_json* trace_json = trace_.RenderJson(); in RenderJson()
155 grpc_json* ServerNode::RenderJson() { in RenderJson()
[all …]
Dchannelz_registry.cc79 grpc_json* top_level_json = grpc_json_create(GRPC_JSON_OBJECT); in InternalGetTopChannels()
80 grpc_json* json = top_level_json; in InternalGetTopChannels()
81 grpc_json* json_iterator = nullptr; in InternalGetTopChannels()
97 grpc_json* array_parent = grpc_json_create_child( in InternalGetTopChannels()
100 grpc_json* channel_json = top_level_channels[i]->RenderJson(); in InternalGetTopChannels()
116 grpc_json* top_level_json = grpc_json_create(GRPC_JSON_OBJECT); in InternalGetServers()
117 grpc_json* json = top_level_json; in InternalGetServers()
118 grpc_json* json_iterator = nullptr; in InternalGetServers()
133 grpc_json* array_parent = grpc_json_create_child( in InternalGetServers()
136 grpc_json* server_json = servers[i]->RenderJson(); in InternalGetServers()
[all …]
Dchannel_trace.cc137 void ChannelTrace::TraceEvent::RenderTraceEvent(grpc_json* json) const { in RenderTraceEvent()
138 grpc_json* json_iterator = nullptr; in RenderTraceEvent()
154 grpc_json* child_ref = grpc_json_create_child( in RenderTraceEvent()
164 grpc_json* ChannelTrace::RenderJson() const { in RenderJson()
167 grpc_json* json = grpc_json_create(GRPC_JSON_OBJECT); in RenderJson()
168 grpc_json* json_iterator = nullptr; in RenderJson()
178 grpc_json* events = grpc_json_create_child(json_iterator, json, "events", in RenderJson()
Dchannelz.h68 virtual grpc_json* RenderJson() GRPC_ABSTRACT;
102 void PopulateCallCounts(grpc_json* json);
125 grpc_json* RenderJson() override;
139 virtual void PopulateConnectivityState(grpc_json* json) {} in PopulateConnectivityState()
140 virtual void PopulateChildRefs(grpc_json* json) {} in PopulateChildRefs()
178 grpc_json* RenderJson() override;
Dchannel_trace.h70 grpc_json* RenderJson() const;
89 void RenderTraceEvent(grpc_json* json) const;
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dclient_channel_channelz.cc55 void ClientChannelNode::PopulateConnectivityState(grpc_json* json) { in PopulateConnectivityState()
70 void ClientChannelNode::PopulateChildRefs(grpc_json* json) { in PopulateChildRefs()
73 grpc_json* json_iterator = nullptr; in PopulateChildRefs()
77 grpc_json* array_parent = grpc_json_create_child( in PopulateChildRefs()
88 grpc_json* array_parent = grpc_json_create_child( in PopulateChildRefs()
125 void SubchannelNode::PopulateConnectivityState(grpc_json* json) { in PopulateConnectivityState()
139 grpc_json* SubchannelNode::RenderJson() { in RenderJson()
140 grpc_json* top_level_json = grpc_json_create(GRPC_JSON_OBJECT); in RenderJson()
141 grpc_json* json = top_level_json; in RenderJson()
142 grpc_json* json_iterator = nullptr; in RenderJson()
[all …]
Dmethod_params.cc42 grpc_json* field, ClientChannelMethodParams::WaitForReady* wait_for_ready) { in ParseWaitForReady()
55 bool ParseDuration(grpc_json* field, grpc_millis* duration) { in ParseDuration()
85 grpc_json* field) { in ParseRetryPolicy()
88 for (grpc_json* sub_field = field->child; sub_field != nullptr; in ParseRetryPolicy()
127 for (grpc_json* element = sub_field->child; element != nullptr; in ParseRetryPolicy()
151 ClientChannelMethodParams::CreateFromJson(const grpc_json* json) { in CreateFromJson()
154 for (grpc_json* field = json->child; field != nullptr; field = field->next) { in CreateFromJson()
Dclient_channel_channelz.h55 void PopulateConnectivityState(grpc_json* json) override;
56 void PopulateChildRefs(grpc_json* json) override;
77 grpc_json* RenderJson() override;
99 void PopulateConnectivityState(grpc_json* json);
/external/grpc-grpc/src/core/lib/transport/
Dservice_config.h68 using ProcessJson = void (*)(const grpc_json*, T*);
82 using CreateValue = RefCountedPtr<T> (*)(const grpc_json* method_config_json);
103 ServiceConfig(UniquePtr<char> json_string, grpc_json* json_tree);
106 static int CountNamesInMethodConfig(grpc_json* json);
110 static UniquePtr<char> ParseJsonMethodName(grpc_json* json);
117 grpc_json* json, CreateValue<T> create_value,
121 grpc_json* json_tree_;
134 for (grpc_json* field = json_tree_->child; field != nullptr; in ParseGlobalParams()
144 grpc_json* json, CreateValue<T> create_value, in ParseJsonMethodConfig()
151 for (grpc_json* child = json->child; child != nullptr; child = child->next) { in ParseJsonMethodConfig()
[all …]
Dservice_config.cc38 grpc_json* json_tree = grpc_json_parse_string(json_string.get()); in Create()
46 ServiceConfig::ServiceConfig(UniquePtr<char> json_string, grpc_json* json_tree) in ServiceConfig()
56 for (grpc_json* field = json_tree_->child; field != nullptr; in GetLoadBalancingPolicyName()
68 int ServiceConfig::CountNamesInMethodConfig(grpc_json* json) { in CountNamesInMethodConfig()
70 for (grpc_json* field = json->child; field != nullptr; field = field->next) { in CountNamesInMethodConfig()
73 for (grpc_json* name = field->child; name != nullptr; name = name->next) { in CountNamesInMethodConfig()
82 UniquePtr<char> ServiceConfig::ParseJsonMethodName(grpc_json* json) { in ParseJsonMethodName()
86 for (grpc_json* child = json->child; child != nullptr; child = child->next) { in ParseJsonMethodName()
/external/grpc-grpc/test/core/security/
Djson_token_test.cc208 static grpc_json* parse_json_part_from_jwt(const char* str, size_t len, in parse_json_part_from_jwt()
213 grpc_json* json; in parse_json_part_from_jwt()
232 static void check_jwt_header(grpc_json* header) { in check_jwt_header()
233 grpc_json* ptr; in check_jwt_header()
234 grpc_json* alg = nullptr; in check_jwt_header()
235 grpc_json* typ = nullptr; in check_jwt_header()
236 grpc_json* kid = nullptr; in check_jwt_header()
261 static void check_jwt_claim(grpc_json* claim, const char* expected_audience, in check_jwt_claim()
266 grpc_json* iss = nullptr; in check_jwt_claim()
267 grpc_json* scope = nullptr; in check_jwt_claim()
[all …]
Djwt_verifier_test.cc209 grpc_json* json = grpc_json_parse_string_with_len( in test_claims_success()
228 grpc_json* json = grpc_json_parse_string_with_len( in test_expired_claims_failure()
253 grpc_json* json = grpc_json_parse_string_with_len( in test_invalid_claims_failure()
262 grpc_json* json = grpc_json_parse_string_with_len( in test_bad_audience_claims_failure()
276 grpc_json* json = grpc_json_parse_string_with_len( in test_bad_subject_claims_failure()
/external/grpc-grpc/test/core/channel/
Dchannelz_test.cc62 grpc_json* GetJsonChild(grpc_json* parent, const char* key) { in GetJsonChild()
64 for (grpc_json* child = parent->child; child != nullptr; in GetJsonChild()
71 void ValidateJsonArraySize(grpc_json* json, const char* key, in ValidateJsonArraySize()
73 grpc_json* arr = GetJsonChild(json, key); in ValidateJsonArraySize()
81 for (grpc_json* child = arr->child; child != nullptr; child = child->next) { in ValidateJsonArraySize()
90 grpc_json* parsed_json = grpc_json_parse_string(json_str); in ValidateGetTopChannels()
94 grpc_json* end = GetJsonChild(parsed_json, "end"); in ValidateGetTopChannels()
109 grpc_json* parsed_json = grpc_json_parse_string(json_str); in ValidateGetServers()
113 grpc_json* end = GetJsonChild(parsed_json, "end"); in ValidateGetServers()
175 void ValidateChildInteger(grpc_json* json, int64_t expect, const char* key) { in ValidateChildInteger()
[all …]
Dchannel_trace_test.cc56 grpc_json* GetJsonChild(grpc_json* parent, const char* key) { in GetJsonChild()
58 for (grpc_json* child = parent->child; child != nullptr; in GetJsonChild()
65 void ValidateJsonArraySize(grpc_json* json, const char* key, in ValidateJsonArraySize()
67 grpc_json* arr = GetJsonChild(json, key); in ValidateJsonArraySize()
71 for (grpc_json* child = arr->child; child != nullptr; child = child->next) { in ValidateJsonArraySize()
77 void ValidateChannelTraceData(grpc_json* json, in ValidateChannelTraceData()
81 grpc_json* num_events_logged_json = GetJsonChild(json, "numEventsLogged"); in ValidateChannelTraceData()
83 grpc_json* start_time = GetJsonChild(json, "creationTimestamp"); in ValidateChannelTraceData()
100 grpc_json* json = tracer->RenderJson(); in ValidateChannelTrace()
105 grpc_json* parsed_json = grpc_json_parse_string(json_str); in ValidateChannelTrace()
/external/grpc-grpc/src/core/lib/security/credentials/jwt/
Djwt_verifier.cc80 static grpc_json* parse_json_part_from_jwt(const char* str, size_t len, in parse_json_part_from_jwt()
82 grpc_json* json; in parse_json_part_from_jwt()
99 static const char* validate_string_field(const grpc_json* json, in validate_string_field()
108 static gpr_timespec validate_time_field(const grpc_json* json, in validate_time_field()
135 static jose_header* jose_header_from_json(grpc_json* json, grpc_slice buffer) { in jose_header_from_json()
136 grpc_json* cur; in jose_header_from_json()
185 grpc_json* json;
195 const grpc_json* grpc_jwt_claims_json(const grpc_jwt_claims* claims) { in grpc_jwt_claims_json()
236 grpc_jwt_claims* grpc_jwt_claims_from_json(grpc_json* json, grpc_slice buffer) { in grpc_jwt_claims_from_json()
237 grpc_json* cur; in grpc_jwt_claims_from_json()
[all …]
Djson_token.cc67 grpc_auth_json_key grpc_auth_json_key_create_from_json(const grpc_json* json) { in grpc_auth_json_key_create_from_json()
122 grpc_json* json = grpc_json_parse_string(scratchpad); in grpc_auth_json_key_create_from_string()
152 static grpc_json* create_child(grpc_json* brother, grpc_json* parent, in create_child()
155 grpc_json* child = grpc_json_create(type); in create_child()
165 grpc_json* json = grpc_json_create(GRPC_JSON_OBJECT); in encoded_jwt_header()
166 grpc_json* child = nullptr; in encoded_jwt_header()
184 grpc_json* json = grpc_json_create(GRPC_JSON_OBJECT); in encoded_jwt_claim()
185 grpc_json* child = nullptr; in encoded_jwt_claim()
Djwt_verifier.h59 const grpc_json* grpc_jwt_claims_json(const grpc_jwt_claims* claims);
118 grpc_jwt_claims* grpc_jwt_claims_from_json(grpc_json* json, grpc_slice buffer);
/external/grpc-grpc/src/core/lib/security/util/
Djson_util.cc28 const char* grpc_json_get_string_property(const grpc_json* json, in grpc_json_get_string_property()
30 grpc_json* child; in grpc_json_get_string_property()
45 bool grpc_copy_json_string_property(const grpc_json* json, in grpc_copy_json_string_property()
Djson_util.h34 const char* grpc_json_get_string_property(const grpc_json* json,
39 bool grpc_copy_json_string_property(const grpc_json* json,
/external/grpc-grpc/test/core/json/
Djson_test.cc145 grpc_json* json; in test_pairs()
173 grpc_json* json = grpc_json_parse_string(scratchpad); in test_atypical()
174 grpc_json* brother; in test_atypical()
/external/grpc-grpc/src/core/ext/filters/client_channel/resolver/dns/c_ares/
Ddns_resolver_ares.cc225 bool ValueInJsonArray(grpc_json* array, const char* value) { in ValueInJsonArray()
226 for (grpc_json* entry = array->child; entry != nullptr; entry = entry->next) { in ValueInJsonArray()
235 grpc_json* choices_json = grpc_json_parse_string(service_config_choice_json); in ChooseServiceConfig()
241 for (grpc_json* choice = choices_json->child; choice != nullptr; in ChooseServiceConfig()
247 grpc_json* service_config_json = nullptr; in ChooseServiceConfig()
248 for (grpc_json* field = choice->child; field != nullptr; in ChooseServiceConfig()
/external/grpc-grpc/src/core/lib/security/credentials/oauth2/
Doauth2_credentials.cc43 const grpc_json* json) { in grpc_auth_refresh_token_create_from_json()
79 grpc_json* json = grpc_json_parse_string(scratchpad); in grpc_auth_refresh_token_create_from_string()
124 grpc_json* json = nullptr; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
146 grpc_json* access_token = nullptr; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
147 grpc_json* token_type = nullptr; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
148 grpc_json* expires_in = nullptr; in grpc_oauth2_token_fetcher_credentials_parse_server_response()
149 grpc_json* ptr; in grpc_oauth2_token_fetcher_credentials_parse_server_response()

12