app

package
v1.2.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "ingestr"

Variables

This section is empty.

Functions

func Ingest

func Ingest(args *Config) int

Types

type Config

type Config struct {
	Nsec          string `` /* 168-byte string literal not displayed */
	DownloadRelay string `arg:"positional,required" json:"-"`
	UploadRelay   string `arg:"positional,required" json:"-"`
	Since         int64  `arg:"-s,--since" json:"-" help:"only query events since this unix timestamp" default:"1640305963"`
	PubkeyHex     string `arg:"-" json:"-"`
	SeckeyHex     string `arg:"-" json:"-"`
	// Kinds         kinds.T `arg:"-k,--kinds,separate" help:"comma separated list of kind numbers to ingest"`
	Limit        int   `arg:"-l,--limit" help:"maximum of number of events to return for each interval" default:"500"`
	Interval     int64 `arg:"-i,--interval" help:"number of seconds per interval of requests" default:"3"`
	Pause        int   `arg:"-p,--pause" default:"100" help:"time in milliseconds to wait between requests"`
	OtherPubkeys tag.T `arg:"-f,--follows,separate" help:"other pubkeys to search for"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL