|
|
|
@ -34,12 +34,14 @@ cdef class CallCredentials: |
|
|
|
|
raise NotImplementedError() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cdef int _get_metadata( |
|
|
|
|
void *state, grpc_auth_metadata_context context, |
|
|
|
|
grpc_credentials_plugin_metadata_cb cb, void *user_data, |
|
|
|
|
grpc_metadata creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX], |
|
|
|
|
size_t *num_creds_md, grpc_status_code *status, |
|
|
|
|
const char **error_details) except * with gil: |
|
|
|
|
cdef int _get_metadata(void *state, |
|
|
|
|
grpc_auth_metadata_context context, |
|
|
|
|
grpc_credentials_plugin_metadata_cb cb, |
|
|
|
|
void *user_data, |
|
|
|
|
grpc_metadata creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX], |
|
|
|
|
size_t *num_creds_md, |
|
|
|
|
grpc_status_code *status, |
|
|
|
|
const char **error_details) except * with gil: |
|
|
|
|
cdef size_t metadata_count |
|
|
|
|
cdef grpc_metadata *c_metadata |
|
|
|
|
def callback(metadata, grpc_status_code status, bytes error_details): |
|
|
|
|