mirror of
https://git.numenor-labs.us/dsfx.git
synced 2025-04-29 00:00:35 +00:00
chore(project): change module name
This commit is contained in:
parent
5cca5467bb
commit
c348363f5c
@ -10,9 +10,9 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Run a server
|
# 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>
|
# serving: dsfx://0.0.0.0:8000#<ed25519_public_key>
|
||||||
|
|
||||||
# Get the client
|
# 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 (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/system"
|
"git.numenor-labs.us/dsfx/internal/lib/system"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/peer"
|
"git.numenor-labs.us/dsfx/internal/peer"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -3,9 +3,9 @@ package main
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/client"
|
"git.numenor-labs.us/dsfx/internal/client"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/system"
|
"git.numenor-labs.us/dsfx/internal/lib/system"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -134,7 +134,7 @@ can slow down the server. To mitigate this, we recommend:
|
|||||||
## Handling Errors
|
## Handling Errors
|
||||||
|
|
||||||
Errors must always be handled explicitly - they are never ignored. In a function that can produce
|
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
|
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
|
for better error handling and debugging, especially in complex systems where multiple errors can
|
||||||
occur.
|
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.
|
If you opted to _not_ install dsfx locally, then you can run it directly with the go toolchain.
|
||||||
|
|
||||||
```bash
|
```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
|
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.
|
project by using the `go install` command.
|
||||||
|
|
||||||
```bash
|
```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
|
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
|
go 1.24.1
|
||||||
|
@ -13,12 +13,12 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/logging"
|
"git.numenor-labs.us/dsfx/internal/lib/logging"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/network"
|
"git.numenor-labs.us/dsfx/internal/lib/network"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/storage/scoped"
|
"git.numenor-labs.us/dsfx/internal/lib/storage/scoped"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/system"
|
"git.numenor-labs.us/dsfx/internal/lib/system"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/encryption"
|
"git.numenor-labs.us/dsfx/internal/lib/crypto/encryption"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestEncryptDecrypt(t *testing.T) {
|
func TestEncryptDecrypt(t *testing.T) {
|
||||||
|
@ -3,7 +3,7 @@ package disk_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDefaultDisk(t *testing.T) {
|
func TestDefaultDisk(t *testing.T) {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/frame"
|
"git.numenor-labs.us/dsfx/internal/lib/frame"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLenPrefixedWriteTo(t *testing.T) {
|
func TestLenPrefixedWriteTo(t *testing.T) {
|
||||||
|
@ -10,12 +10,12 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/assert"
|
"git.numenor-labs.us/dsfx/internal/lib/assert"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/buffer"
|
"git.numenor-labs.us/dsfx/internal/lib/buffer"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/encryption"
|
"git.numenor-labs.us/dsfx/internal/lib/crypto/encryption"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/keyexchange"
|
"git.numenor-labs.us/dsfx/internal/lib/crypto/keyexchange"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/logging"
|
"git.numenor-labs.us/dsfx/internal/lib/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -10,8 +10,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/handshake"
|
"git.numenor-labs.us/dsfx/internal/lib/handshake"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHandshake(t *testing.T) {
|
func TestHandshake(t *testing.T) {
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/encryption"
|
"git.numenor-labs.us/dsfx/internal/lib/crypto/encryption"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/frame"
|
"git.numenor-labs.us/dsfx/internal/lib/frame"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Conn is a wrapper around net.TCPConn that encrypts and decrypts data as it is
|
// Conn is a wrapper around net.TCPConn that encrypts and decrypts data as it is
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"log/slog"
|
"log/slog"
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/handshake"
|
"git.numenor-labs.us/dsfx/internal/lib/handshake"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Listener ...
|
// Listener ...
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"crypto/ed25519"
|
"crypto/ed25519"
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/handshake"
|
"git.numenor-labs.us/dsfx/internal/lib/handshake"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/logging"
|
"git.numenor-labs.us/dsfx/internal/lib/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Dial ...
|
// Dial ...
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"io/fs"
|
"io/fs"
|
||||||
"path/filepath"
|
"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
|
// StorageScope is an interface that extends the disk.Disk interface by ensuring
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"io/fs"
|
"io/fs"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/storage/scoped"
|
"git.numenor-labs.us/dsfx/internal/lib/storage/scoped"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestScopedStorage_Scope(t *testing.T) {
|
func TestScopedStorage_Scope(t *testing.T) {
|
||||||
|
@ -3,7 +3,7 @@ package system
|
|||||||
import (
|
import (
|
||||||
"os"
|
"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.
|
// Default returns a default implementation of the System interface.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package system
|
package system
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||||
)
|
)
|
||||||
|
|
||||||
type System interface {
|
type System interface {
|
||||||
|
@ -13,12 +13,12 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/logging"
|
"git.numenor-labs.us/dsfx/internal/lib/logging"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/network"
|
"git.numenor-labs.us/dsfx/internal/lib/network"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/storage/scoped"
|
"git.numenor-labs.us/dsfx/internal/lib/storage/scoped"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/system"
|
"git.numenor-labs.us/dsfx/internal/lib/system"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Tolerance defines simulation tolerance parameters.
|
// Tolerance defines simulation tolerance parameters.
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/disk"
|
"git.numenor-labs.us/dsfx/internal/lib/disk"
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/system"
|
"git.numenor-labs.us/dsfx/internal/lib/system"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SimSystem is a simulated implementation of system.System.
|
// SimSystem is a simulated implementation of system.System.
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"numenor-labs.us/dsfx/dsfx/internal/lib/crypto/identity"
|
"git.numenor-labs.us/dsfx/internal/lib/crypto/identity"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user