handlers

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Unlicense Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleApiFeed

func HandleApiFeed(w http.ResponseWriter, r *http.Request, db *sql.DB, secret *string, dsn *string)

func HandleCreateFeed

func HandleCreateFeed(w http.ResponseWriter, r *http.Request, db *sql.DB, secret *string, dsn *string)

func HandleNip05

func HandleNip05(w http.ResponseWriter, r *http.Request, db *sql.DB, ownerPubKey *string, enableAutoRegistration *bool)

func HandleSearch

func HandleSearch(w http.ResponseWriter, r *http.Request, db *sql.DB)

func HandleWebpage

func HandleWebpage(w http.ResponseWriter, r *http.Request, db *sql.DB, mainDomainName *string)

Types

type Entry

type Entry struct {
	PubKey       string
	NPubKey      string
	Url          string
	Error        bool
	ErrorMessage string
	ErrorCode    int
}

type PageData

type PageData struct {
	Count          uint64
	FilteredCount  uint64
	Entries        []Entry
	MainDomainName string
}

Jump to

Keyboard shortcuts

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