MCPcopy Create free account
hub / github.com/authzed/authzed-node / NewClientWithChannelCredentials

Function NewClientWithChannelCredentials

src/v1.ts:353–360  ·  view source on GitHub ↗
(
  endpoint = util.authzedEndpoint,
  creds: grpc.ChannelCredentials,
  preconnect: PreconnectServices = PreconnectServices.PERMISSIONS_SERVICE,
  options?: grpc.ClientOptions,
)

Source from the content-addressed store, hash-verified

351 * @returns Client for calling Authzed APIs.
352 */
353export function NewClientWithChannelCredentials(
354 endpoint = util.authzedEndpoint,
355 creds: grpc.ChannelCredentials,
356 preconnect: PreconnectServices = PreconnectServices.PERMISSIONS_SERVICE,
357 options?: grpc.ClientOptions,
358): ZedClientInterface {
359 return ZedCombinedClient.create(endpoint, creds, preconnect, options);
360}
361/**
362 * Creates a google.protobuf.Struct object suitable for use as
363 * optionalTransactionMetadata in WriteRelationshipsRequest.

Callers 2

NewClientFunction · 0.85
NewClientWithCustomCertFunction · 0.85

Calls 1

createMethod · 0.45

Tested by

no test coverage detected