-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
310 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* eslint local-rules/context: "error" */ | ||
|
||
export class SessionService extends AuthenticatedService<TableService> { | ||
// public endpoint: Endpoint; | ||
// private readonly logger: Logger; | ||
|
||
// eslint-disable-next-line max-len | ||
constructor(endpoint: Endpoint, database: string, authService: IAuthService, logger: Logger, sslCredentials?: ISslCredentials, clientOptions?: ClientOptions) { | ||
const ctx = ContextWithLogger.getSafe('ydb-nodejs-sdk:SessionService.constructor', logger); | ||
const host = ctx.doSync(() => endpoint.toString()); | ||
// | ||
// super(host, database, 'Ydb.Table.V1.TableService', TableService, authService, sslCredentials, clientOptions); | ||
// this.endpoint = endpoint; | ||
// this.logger = logger; | ||
} | ||
|
||
// @retryable() | ||
// @pessimizable | ||
// async create(): Promise<Session> { | ||
// // const ctx = ContextWithLogger.getSafe('ydb-nodejs-sdk:SessionService.create', this); | ||
// // const response = await ctx.do(() => this.api.createSession(CreateSessionRequest.create())); | ||
// // const payload = ctx.doSync(() => getOperationPayload(response)); | ||
// // const { sessionId } = ctx.doSync(() => CreateSessionResult.decode(payload)); | ||
// | ||
// // eslint-disable-next-line @typescript-eslint/no-use-before-define | ||
// return new Session(this.api, this.endpoint, sessionId, ctx.logger, ctx.doSync(() => this.getResponseMetadata.bind(this))); | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.