Skip to content

Commit

Permalink
Switching License to BSD 3-Clause License
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitbbhayani committed Jan 20, 2025
1 parent 61085e1 commit 28d96e4
Show file tree
Hide file tree
Showing 320 changed files with 1,920 additions and 5,922 deletions.
686 changes: 25 additions & 661 deletions LICENSE

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ format: ## format the code using go fmt

GOLANGCI_LINT_VERSION := 1.60.1

lint: check-golangci-lint ## run golangci-lint
lint:
gofmt -w .
golangci-lint run ./...

check-golangci-lint:
Expand Down Expand Up @@ -109,3 +110,6 @@ release: ## build and push the Docker image to Docker Hub with the latest tag an
push-binary-remote:
$(MAKE) build
scp -i ${SSH_PEM_PATH} ./dicedb ubuntu@${REMOTE_HOST}:.

add-license-notice:
./add_license_notice.sh
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ DiceDB
<a href="https://dicedb.io">![slatedb.io](https://img.shields.io/badge/site-dicedb.io-00A1FF?style=flat-square)</a>
<a href="https://dicedb.io/get-started/installation/">![Docs](https://img.shields.io/badge/docs-00A1FF?style=flat-square)</a>
<a target="_blank" href="https://discord.gg/6r8uXWtXh7"><img src="https://dcbadge.limes.pink/api/server/6r8uXWtXh7?style=flat" alt="discord community" /></a>
[![License](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](LICENSE)

DiceDB is an open source, redis-compliant, reactive, scalable, highly available, unified cache optimized for modern hardware.

Expand Down Expand Up @@ -196,7 +197,12 @@ Contributors can join the [Discord Server](https://discord.gg/6r8uXWtXh7) for qu
<img src = "https://contrib.rocks/image?repo=dicedb/dice"/>
</a>

## License

This project is licensed under the BSD 3-Clause License. See the [LICENSE](LICENSE) file for details.

## Troubleshoot

### Forcefully killing the process

```
Expand Down
19 changes: 19 additions & 0 deletions add_license_notice.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Define the license notice
LICENSE_NOTICE="// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information."

# Find all Go files and add the notice if not already present
find . -type f -name "*.go" | while read -r FILE; do
# Check if the file already contains the license notice
if ! grep -q "$LICENSE_NOTICE" "$FILE"; then
# Add the license notice at the top of the file
echo -e "$LICENSE_NOTICE\n\n$(cat "$FILE")" > "$FILE"
echo "Added license notice to $FILE"
else
echo "License notice already present in $FILE"
fi
done

echo "Finished adding license notice to all Go files."
17 changes: 2 additions & 15 deletions config/config.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package config

Expand Down
17 changes: 2 additions & 15 deletions config/parser.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package config

Expand Down
17 changes: 2 additions & 15 deletions config/validator.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package config

Expand Down
17 changes: 2 additions & 15 deletions examples/leaderboard-go/main.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package main

Expand Down
25 changes: 6 additions & 19 deletions examples/url-shortener/main.go
Original file line number Diff line number Diff line change
@@ -1,37 +1,24 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package main

import (
"context"
"encoding/json"
"os"
"fmt"

"os"

"log"
"net/http"

"github.com/dicedb/dicedb-go" // DiceDB Go SDK
"github.com/gin-gonic/gin"
"github.com/google/uuid"
"github.com/dicedb/dicedb-go" // DiceDB Go SDK
)

type URL struct {
LongURL string `json:"long_url"`
LongURL string `json:"long_url"`
}

var db *dicedb.Client
Expand Down
17 changes: 2 additions & 15 deletions integration_tests/commands/http/append_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
// This file is part of DiceDB.
// Copyright (C) 2024 DiceDB (dicedb.io).
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Copyright (c) 2022-present, DiceDB contributors
// All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE file in the project root for full license information.

package http

Expand Down
Loading

0 comments on commit 28d96e4

Please sign in to comment.