Skip to content

Commit

Permalink
hostrディレクトリの内容をトップレベルに移動
Browse files Browse the repository at this point in the history
  • Loading branch information
studiokaiji committed Oct 26, 2023
1 parent c3c7dfa commit baee59d
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 25 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,5 @@ jobs:
- uses: goreleaser/goreleaser-action@v4
with:
args: release --clean
workdir: ./hostr
version: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/nostr-rs-relay/data
/nostr-rs-relay/data

main
dist/
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions hostr/cmd/deploy/deploy.go → cmd/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (

"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip19"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/keystore"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/relays"
"github.com/studiokaiji/nostr-webhost/cmd/consts"
"github.com/studiokaiji/nostr-webhost/cmd/keystore"
"github.com/studiokaiji/nostr-webhost/cmd/relays"
"golang.org/x/exp/slices"
"golang.org/x/net/html"
)
Expand Down
2 changes: 1 addition & 1 deletion hostr/cmd/deploy/media.go → cmd/deploy/media.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"sync"

"github.com/nbd-wtf/go-nostr"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/tools"
"github.com/studiokaiji/nostr-webhost/cmd/tools"
)

var availableContentTypes = []string{
Expand Down
4 changes: 2 additions & 2 deletions hostr/cmd/deploy/nostr.go → cmd/deploy/nostr.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip19"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/tools"
"github.com/studiokaiji/nostr-webhost/cmd/consts"
"github.com/studiokaiji/nostr-webhost/cmd/tools"
)

var allRelays []string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip19"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/paths"
"github.com/studiokaiji/nostr-webhost/cmd/paths"
)

const PATH = ".nostr_account_secret"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion hostr/cmd/relays/relays.go → cmd/relays/relays.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path/filepath"
"strings"

"github.com/studiokaiji/nostr-webhost/hostr/cmd/paths"
"github.com/studiokaiji/nostr-webhost/cmd/paths"
)

const PATH = ".nostr_relays"
Expand Down
6 changes: 3 additions & 3 deletions hostr/cmd/server/server.go → cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/gin-gonic/gin"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip19"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/relays"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/tools"
"github.com/studiokaiji/nostr-webhost/cmd/consts"
"github.com/studiokaiji/nostr-webhost/cmd/relays"
"github.com/studiokaiji/nostr-webhost/cmd/tools"
)

func Start(port string, mode string) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tools
import (
"fmt"

"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts"
"github.com/studiokaiji/nostr-webhost/cmd/consts"
)

func GetContentType(kind int) (string, error) {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hostr/go.mod → go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/studiokaiji/nostr-webhost/hostr
module github.com/studiokaiji/nostr-webhost

go 1.21

Expand Down
File renamed without changes.
5 changes: 0 additions & 5 deletions hostr/.gitignore

This file was deleted.

8 changes: 4 additions & 4 deletions hostr/main.go → main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip19"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/deploy"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/keystore"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/relays"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/server"
"github.com/studiokaiji/nostr-webhost/cmd/deploy"
"github.com/studiokaiji/nostr-webhost/cmd/keystore"
"github.com/studiokaiji/nostr-webhost/cmd/relays"
"github.com/studiokaiji/nostr-webhost/cmd/server"
"github.com/urfave/cli/v2"
)

Expand Down

0 comments on commit baee59d

Please sign in to comment.