kepler

package
v0.0.0-...-ba7b6eb Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGroups

func AddGroups(r *gin.Engine)

func ConvertToCsv

func ConvertToCsv(listings []Listing) []byte

func ConvertToCsv_Brief

func ConvertToCsv_Brief(listings []Listing) []byte

func HandleKepler

func HandleKepler(c *gin.Context)

func HandleKeplers

func HandleKeplers(c *gin.Context)

func KeplerAll

func KeplerAll(c *gin.Context)

func KeplerCorp

func KeplerCorp(c *gin.Context)

func KeplerLlc

func KeplerLlc(c *gin.Context)

func KeplerNumber

func KeplerNumber(c *gin.Context)

func Sanitize

func Sanitize(name string) string

func SetCsvHeaders

func SetCsvHeaders(headers http.Header, filename string)

func SetHtmlHeaders

func SetHtmlHeaders(headers http.Header)

func SetUrl

func SetUrl(url string)

func WriteContentFromTemplate

func WriteContentFromTemplate(w http.ResponseWriter, in_template string, data interface{})

func WriteTemplate

func WriteTemplate(w *bytes.Buffer, in_template string, data interface{}) error

@TODO: Move this to separate file

Types

type Agent

type Agent struct {
	Name         string
	Address      string
	CityStateZip string
}

type AspContext

type AspContext struct {
	EventTarget        string
	EventArgument      string
	ViewState          string
	ViewStateEncrypted string
	EventValidation    string
	Additional         string
}

func CreateContextFromPage

func CreateContextFromPage(doc *goquery.Document) AspContext

func CreateContextQueryCorp

func CreateContextQueryCorp(Name string) AspContext

func CreateContextQueryEntity

func CreateContextQueryEntity(Entity string) AspContext

func CreateContextQueryLlclp

func CreateContextQueryLlclp(Name string) AspContext

func (AspContext) ToString

func (this AspContext) ToString() string

type BusinessType

type BusinessType int
const (
	Corporation BusinessType = iota + 1
	LLC_LP
	EntityNumber
	Corp_LLC_LP
)

type Listing

type Listing struct {
	Name         string
	Number       string
	DateFiled    string
	Status       string
	Jurisdiction string
	Address      string
	CityStateZip string
	Agent        Agent
	Type         BusinessType
}

func GetListing

func GetListing(entityNumber string) (Listing, error)

func ProcessCorporation

func ProcessCorporation(name string) ([]Listing, error)

func ProcessEntityNumber

func ProcessEntityNumber(entityNumber string) ([]Listing, error)

func ProcessLlcLp

func ProcessLlcLp(name string) ([]Listing, error)

func ProcessNumber

func ProcessNumber(name string) ([]Listing, error)

type ResponseFormat

type ResponseFormat int
const (
	Json ResponseFormat = iota
	Csv
	Html
)

Jump to

Keyboard shortcuts

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