nak outbox

This commit is contained in:
fiatjaf
2025-01-18 18:33:42 -03:00
parent a3ef9b45de
commit 5509095277
6 changed files with 148 additions and 14 deletions

View File

@@ -19,18 +19,15 @@ import (
"github.com/nbd-wtf/go-nostr/sdk"
)
var sys = sdk.NewSystem()
var sys *sdk.System
var (
hintsFilePath string
hintsFileExists bool
)
var json = jsoniter.ConfigFastest
func init() {
sys.Pool = nostr.NewSimplePool(context.Background(),
nostr.WithRelayOptions(
nostr.WithRequestHeader(http.Header{textproto.CanonicalMIMEHeaderKey("user-agent"): {"nak/b"}}),
),
)
}
const (
LINE_PROCESSING_ERROR = iota
)