hostrディレクトリの内容をトップレベルに移動

This commit is contained in:
studiokaiji
2023-10-26 22:29:46 +09:00
parent c3c7dfa661
commit baee59dc4c
19 changed files with 21 additions and 25 deletions

View File

@@ -25,7 +25,5 @@ jobs:
- uses: goreleaser/goreleaser-action@v4 - uses: goreleaser/goreleaser-action@v4
with: with:
args: release --clean args: release --clean
workdir: ./hostr
version: latest
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

5
.gitignore vendored
View File

@@ -1 +1,4 @@
/nostr-rs-relay/data /nostr-rs-relay/data
main
dist/

View File

@@ -11,9 +11,9 @@ import (
"github.com/nbd-wtf/go-nostr" "github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip19" "github.com/nbd-wtf/go-nostr/nip19"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts" "github.com/studiokaiji/nostr-webhost/cmd/consts"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/keystore" "github.com/studiokaiji/nostr-webhost/cmd/keystore"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/relays" "github.com/studiokaiji/nostr-webhost/cmd/relays"
"golang.org/x/exp/slices" "golang.org/x/exp/slices"
"golang.org/x/net/html" "golang.org/x/net/html"
) )

View File

@@ -14,7 +14,7 @@ import (
"sync" "sync"
"github.com/nbd-wtf/go-nostr" "github.com/nbd-wtf/go-nostr"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/tools" "github.com/studiokaiji/nostr-webhost/cmd/tools"
) )
var availableContentTypes = []string{ var availableContentTypes = []string{

View File

@@ -8,8 +8,8 @@ import (
"github.com/nbd-wtf/go-nostr" "github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip19" "github.com/nbd-wtf/go-nostr/nip19"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts" "github.com/studiokaiji/nostr-webhost/cmd/consts"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/tools" "github.com/studiokaiji/nostr-webhost/cmd/tools"
) )
var allRelays []string var allRelays []string

View File

@@ -8,7 +8,7 @@ import (
"github.com/nbd-wtf/go-nostr" "github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip19" "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" const PATH = ".nostr_account_secret"

View File

@@ -5,7 +5,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/paths" "github.com/studiokaiji/nostr-webhost/cmd/paths"
) )
const PATH = ".nostr_relays" const PATH = ".nostr_relays"

View File

@@ -8,9 +8,9 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/nbd-wtf/go-nostr" "github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip19" "github.com/nbd-wtf/go-nostr/nip19"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts" "github.com/studiokaiji/nostr-webhost/cmd/consts"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/relays" "github.com/studiokaiji/nostr-webhost/cmd/relays"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/tools" "github.com/studiokaiji/nostr-webhost/cmd/tools"
) )
func Start(port string, mode string) { func Start(port string, mode string) {

View File

@@ -3,7 +3,7 @@ package tools
import ( import (
"fmt" "fmt"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/consts" "github.com/studiokaiji/nostr-webhost/cmd/consts"
) )
func GetContentType(kind int) (string, error) { func GetContentType(kind int) (string, error) {

View File

@@ -1,4 +1,4 @@
module github.com/studiokaiji/nostr-webhost/hostr module github.com/studiokaiji/nostr-webhost
go 1.21 go 1.21

5
hostr/.gitignore vendored
View File

@@ -1,5 +0,0 @@
main
dist/
.nostr_account_secret
.nostr_relays

View File

@@ -7,10 +7,10 @@ import (
"github.com/nbd-wtf/go-nostr" "github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip19" "github.com/nbd-wtf/go-nostr/nip19"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/deploy" "github.com/studiokaiji/nostr-webhost/cmd/deploy"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/keystore" "github.com/studiokaiji/nostr-webhost/cmd/keystore"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/relays" "github.com/studiokaiji/nostr-webhost/cmd/relays"
"github.com/studiokaiji/nostr-webhost/hostr/cmd/server" "github.com/studiokaiji/nostr-webhost/cmd/server"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )