Skip to content

Commit

Permalink
Add copyright notices
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Dec 15, 2022
1 parent 350c944 commit f57b5bf
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/database/badger/database.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

// Package badger provides a database implementation using badger v3.
package badger

Expand Down
3 changes: 3 additions & 0 deletions internal/database/badger/database_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package badger

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/database/badger/settings.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package badger

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/database/badger/settings_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package badger

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/database/badger/table.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package badger

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/database/badger/writebatch.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package badger

import "github.com/dgraph-io/badger/v3"
Expand Down
3 changes: 3 additions & 0 deletions internal/database/errors.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package database

import "errors"
Expand Down
3 changes: 3 additions & 0 deletions internal/database/interfaces.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

// Package databse contains common interfaces and errors for all database implementations.
package database

Expand Down
3 changes: 3 additions & 0 deletions internal/database/memory/database.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

// Package memory provides an in-memory database implementation.
package memory

Expand Down
3 changes: 3 additions & 0 deletions internal/database/memory/database_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package memory

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/database/memory/helpers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package memory

func copyBytes(b []byte) (bCopy []byte) {
Expand Down
3 changes: 3 additions & 0 deletions internal/database/memory/race_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package memory

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/database/memory/table.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package memory

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/database/memory/table_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package memory

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/database/memory/writebatch.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package memory

type operationKind uint8
Expand Down
3 changes: 3 additions & 0 deletions internal/database/memory/writebatch_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 ChainSafe Systems (ON)
// SPDX-License-Identifier: LGPL-3.0-only

package memory

import (
Expand Down

0 comments on commit f57b5bf

Please sign in to comment.