Skip to content

Commit

Permalink
Add missing license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
pcholakov committed Sep 2, 2024
1 parent 1ab611b commit 06b1b21
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.idea
*.js
!jest.config.js
!test/handlers/handler.js
*.d.ts
node_modules
.cdk.staging
Expand Down
11 changes: 11 additions & 0 deletions lib/restate-constructs/deployments-common.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* Copyright (c) 2024 - Restate Software, Inc., Restate GmbH
*
* This file is part of the Restate SDK for Node.js/TypeScript,
* which is released under the MIT license.
*
* You can find a copy of the license in file LICENSE in the root
* directory of this repository or package, or at
* https://github.com/restatedev/sdk-typescript/blob/main/LICENSE
*/

export enum TracingMode {
DISABLED = "DISABLED",
AWS_XRAY = "AWS_XRAY",
Expand Down
11 changes: 11 additions & 0 deletions lib/restate-constructs/restate-cloud-environment.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* Copyright (c) 2024 - Restate Software, Inc., Restate GmbH
*
* This file is part of the Restate SDK for Node.js/TypeScript,
* which is released under the MIT license.
*
* You can find a copy of the license in file LICENSE in the root
* directory of this repository or package, or at
* https://github.com/restatedev/sdk-typescript/blob/main/LICENSE
*/

import * as iam from "aws-cdk-lib/aws-iam";
import * as secrets from "aws-cdk-lib/aws-secretsmanager";
import { Construct } from "constructs";
Expand Down
11 changes: 11 additions & 0 deletions lib/restate-constructs/restate-environment.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
* Copyright (c) 2024 - Restate Software, Inc., Restate GmbH
*
* This file is part of the Restate SDK for Node.js/TypeScript,
* which is released under the MIT license.
*
* You can find a copy of the license in file LICENSE in the root
* directory of this repository or package, or at
* https://github.com/restatedev/sdk-typescript/blob/main/LICENSE
*/

import * as iam from "aws-cdk-lib/aws-iam";
import * as secrets from "aws-cdk-lib/aws-secretsmanager";
import { FunctionOptions } from "aws-cdk-lib/aws-lambda";
Expand Down
28 changes: 28 additions & 0 deletions test/handlers/handler.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 - Restate Software, Inc., Restate GmbH
*
* This file is part of the Restate SDK for Node.js/TypeScript,
* which is released under the MIT license.
*
* You can find a copy of the license in file LICENSE in the root
* directory of this repository or package, or at
* https://github.com/restatedev/sdk-typescript/blob/main/LICENSE
*/

"use strict";

import * as restate from "@restatedev/restate-sdk/lambda";

const greet = async (ctx, name) => {
return `Hello, ${name ?? "Restate user"}!`;
};

export const handler = restate
.endpoint()
.bind(
restate.service({
name: "Greeter",
handlers: { greet },
}),
)
.handler();

0 comments on commit 06b1b21

Please sign in to comment.