app

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: CC0-1.0 Imports: 15 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  `` /* 169-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"`
	PubkeyHex     string  `arg:"-" json:"-"`
	SeckeyHex     string  `arg:"-" json:"-"`
	Kinds         kinds.T `arg:"-k,--kinds" 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:"1000"`
	Interval      int64   `arg:"-i,--interval" help:"number of hours per interval of requests"`
	Pause         int     `arg:"-p,--pause" help:"time in seconds 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