purge

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AppName = "nfspampurge"

Variables

This section is empty.

Functions

func CLI

func CLI(args []string) error

Types

type Data

type Data struct {
	HostPage  string `json:"host_page"`
	Name      string `json:"name"`
	Email     string `json:"email"`
	Subject   string `json:"subject"`
	Cc        string `json:"CC"`
	Comment   string `json:"comment"`
	IP        string `json:"ip"`
	UserAgent string `json:"user_agent"`
	Referrer  string `json:"referrer"`
}

type HumanFields

type HumanFields struct {
	HostURL string `json:"Host URL"`
	From    string `json:"From"`
	Email   string `json:"Email"`
	Subject string `json:"Subject"`
	Cc      string `json:"Cc"`
	Comment string `json:"Comment"`
}

type NFResponse

type NFResponse []struct {
	Number             int                  `json:"number"`
	Title              any                  `json:"title"`
	Email              string               `json:"email"`
	Name               string               `json:"name"`
	FirstName          string               `json:"first_name"`
	LastName           any                  `json:"last_name"`
	Company            any                  `json:"company"`
	Summary            string               `json:"summary"`
	Body               string               `json:"body"`
	Data               Data                 `json:"data"`
	CreatedAt          time.Time            `json:"created_at"`
	HumanFields        HumanFields          `json:"human_fields"`
	OrderedHumanFields []OrderedHumanFields `json:"ordered_human_fields"`
	ID                 string               `json:"id"`
	FormID             string               `json:"form_id"`
	SiteURL            string               `json:"site_url"`
	FormName           string               `json:"form_name"`
}

type OrderedHumanFields

type OrderedHumanFields struct {
	Title string `json:"title"`
	Name  string `json:"name"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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