mirror of
https://git.numenor-labs.us/dsfx.git
synced 2025-04-28 16:00:33 +00:00
chore(project): change module name
This commit is contained in:
parent
5cca5467bb
commit
c348363f5c
@ -10,9 +10,9 @@
|
||||
|
||||
```bash
|
||||
# Run a server
|
||||
go run numenor-labs.us/dsfx/dsfx/cmd/dsfx@main
|
||||
go run git.numenor-labs.us/dsfx/cmd/dsfx@main
|
||||
# serving: dsfx://0.0.0.0:8000#<ed25519_public_key>
|
||||
|
||||
# Get the client
|
||||
go run numenor-labs.us/dsfx/dsfx/cmd/dsfxctl@main test dsfx://0.0.0.0:8000#<ed25519_public_key>
|
||||
go run git.numenor-labs.us/dsfx/cmd/dsfxctl@main test dsfx://0.0.0.0:8000#<ed25519_public_key>
|
||||
```
|
||||
|
@ -3,9 +3,9 @@ package main
|
||||
import (
|
||||
"context"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/system"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/peer"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/system"
|
||||
"git.numenor-labs.us/dsfx/internal/peer"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,9 +3,9 @@ package main
|
||||
import (
|
||||
"context"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/client"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/system"
|
||||
"git.numenor-labs.us/dsfx/internal/client"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/system"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -134,7 +134,7 @@ can slow down the server. To mitigate this, we recommend:
|
||||
## Handling Errors
|
||||
|
||||
Errors must always be handled explicitly - they are never ignored. In a function that can produce
|
||||
more than one error, wrap the errors using `fmt.Errorf("%v")` to provide additional debugging context
|
||||
more than one error, wrap the errors using `fmt.Errorf("%w")` to provide additional debugging context
|
||||
in a way that preserves the original error for use with `errors.Is` and `errors.As`. This allows
|
||||
for better error handling and debugging, especially in complex systems where multiple errors can
|
||||
occur.
|
||||
|
@ -8,7 +8,7 @@ server on your deployment machine.
|
||||
If you opted to _not_ install dsfx locally, then you can run it directly with the go toolchain.
|
||||
|
||||
```bash
|
||||
go run numenor-labs.us/dsfx/dsfx/cmd/dsfx@main
|
||||
go run git.numenor-labs.us/dsfx/cmd/dsfx@main
|
||||
```
|
||||
|
||||
Otherwise, you can run the server with the `dsfx` command. For those who built
|
||||
|
@ -44,7 +44,7 @@ Now that you have the go toolchain set up with access to our repository, you can
|
||||
project by using the `go install` command.
|
||||
|
||||
```bash
|
||||
go install numenor-labs.us/dsfx/dsfx/cmd/dsfx@main
|
||||
go install git.numenor-labs.us/dsfx/cmd/dsfx@main
|
||||
```
|
||||
|
||||
Assuming that you have the `GOPATH` environment variable set up correctly, you will now be able to
|
||||
|
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
||||
module numenor-labs.us/dsfx/dsfx
|
||||
module git.numenor-labs.us/dsfx
|
||||
|
||||
go 1.24.1
|
||||
|
@ -13,12 +13,12 @@ import (
|
||||
"net"
|
||||
"os"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/logging"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/network"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/storage/scoped"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/system"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/logging"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/network"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/storage/scoped"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/system"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"crypto/rand"
|
||||
"testing"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/encryption"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/crypto/encryption"
|
||||
)
|
||||
|
||||
func TestEncryptDecrypt(t *testing.T) {
|
||||
|
@ -3,7 +3,7 @@ package disk_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||
)
|
||||
|
||||
func TestDefaultDisk(t *testing.T) {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/frame"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/frame"
|
||||
)
|
||||
|
||||
func TestLenPrefixedWriteTo(t *testing.T) {
|
||||
|
@ -10,12 +10,12 @@ import (
|
||||
"io"
|
||||
"log/slog"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/assert"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/buffer"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/encryption"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/keyexchange"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/logging"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/assert"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/buffer"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/crypto/encryption"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/crypto/keyexchange"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/logging"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"sync"
|
||||
"testing"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/handshake"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/handshake"
|
||||
)
|
||||
|
||||
func TestHandshake(t *testing.T) {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"net"
|
||||
"strings"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/encryption"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/frame"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/crypto/encryption"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/frame"
|
||||
)
|
||||
|
||||
// Conn is a wrapper around net.TCPConn that encrypts and decrypts data as it is
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"log/slog"
|
||||
"net"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/handshake"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/handshake"
|
||||
)
|
||||
|
||||
// Listener ...
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"crypto/ed25519"
|
||||
"net"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/handshake"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/logging"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/handshake"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/logging"
|
||||
)
|
||||
|
||||
// Dial ...
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"io/fs"
|
||||
"path/filepath"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||
)
|
||||
|
||||
// StorageScope is an interface that extends the disk.Disk interface by ensuring
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"io/fs"
|
||||
"testing"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/storage/scoped"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/storage/scoped"
|
||||
)
|
||||
|
||||
func TestScopedStorage_Scope(t *testing.T) {
|
||||
|
@ -3,7 +3,7 @@ package system
|
||||
import (
|
||||
"os"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||
)
|
||||
|
||||
// Default returns a default implementation of the System interface.
|
||||
|
@ -1,7 +1,7 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||
)
|
||||
|
||||
type System interface {
|
||||
|
@ -13,12 +13,12 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/logging"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/network"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/storage/scoped"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/system"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/logging"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/network"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/storage/scoped"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/system"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||
)
|
||||
|
||||
// Tolerance defines simulation tolerance parameters.
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/system"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/system"
|
||||
)
|
||||
|
||||
// SimSystem is a simulated implementation of system.System.
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
||||
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user