Skip to content

createOpaqueAdvisoryLockKey — @gj-kit/toss-payments-postgresql

A public function from @gj-kit/toss-payments-postgresql/testing. The signature below is taken directly from the 0.5.1 release declaration.

import { createOpaqueAdvisoryLockKey } from '@gj-kit/toss-payments-postgresql/testing';
/**
* 앱이 만든 HMAC/blind-index를 opaque lock key로 명시적으로 표시한다.
*
* 이 함수는 HMAC을 생성하거나 원본 식별자를 보호하지 않는다. 앱의 key management와
* canonicalization은 앱 소유이다. empty/비정상적으로 큰 입력만 fail-fast로 거부하며,
* 오류 메시지에는 전달된 값을 포함하지 않는다.
*/
declare function createOpaqueAdvisoryLockKey(value: string): OpaqueAdvisoryLockKey;

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/toss-payments-postgresql
  • Version: 0.5.1
  • Public entry: ./testing
  • Source: GitHub