pub unsafe extern "C" fn grpc_authorization_policy_provider_file_watcher_create(
authz_policy_path: *const c_char,
refresh_interval_sec: c_uint,
code: *mut Type,
error_details: *mut *const c_char
) -> *mut grpc_authorization_policy_provider
Expand description
EXPERIMENTAL - Subject to change. Creates a grpc_authorization_policy_provider by watching for gRPC authorization policy changes in filesystem.
- authz_policy is the file path of gRPC authorization policy.
- refresh_interval_sec is the amount of time the internal thread would wait before checking for file updates.
- code is the error status code on failure. On success, it equals GRPC_STATUS_OK.
- error_details contains details about the error if any. If the initialization is successful, it will be null. Caller must use gpr_free to destroy this string.