multasgt

package module
v0.0.0-...-c75792f Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: MIT Imports: 8 Imported by: 3

README

MultasGT

Soporte

  • Guatemala
  • Mixco
  • Santa Catarina Pinula
  • Frainajes
  • Villa Nueva
  • PNC
  • Antigua Guatemala

LICENSE

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanStrings

func CleanStrings(s string) string

CleanStrings removes any white unnecessary whitespace

func GetAttribute

func GetAttribute(attrName string, n *html.Node) string

GetAttribute gets an attribute from an HTML node.

Types

type Antigua

type Antigua struct {
	Client *http.Client
}

Antigua implementation.

func (*Antigua) Check

func (a *Antigua) Check(plateType, plateNumber string) ([]Ticket, error)

Check retrieves all tickes and aditional information.

type Emetra

type Emetra struct {
	Client *http.Client
}

Emetra implementation.

func (*Emetra) Check

func (e *Emetra) Check(plateType, plateNumber string) ([]Ticket, error)

Check retrieves all tickes and aditional information.

type Emixtra

type Emixtra struct {
	Client *http.Client
}

Emixtra implementation.

func (*Emixtra) Check

func (e *Emixtra) Check(plateType, plateNumber string) ([]Ticket, error)

Check retrieves all tickes and aditional information.

type Fraijanes

type Fraijanes struct {
	Client *http.Client
}

Fraijanes implementation.

func (*Fraijanes) Check

func (f *Fraijanes) Check(plateType, plateNumber string) ([]Ticket, error)

Check retrieves all tickes and aditional information.

type PNC

type PNC struct {
	Client *http.Client
}

PNC implementation.

func (*PNC) Check

func (p *PNC) Check(plateType, plateNumber string) ([]Ticket, error)

Check retrieves all tickes and aditional information.

type SCP

type SCP struct {
	Client *http.Client
}

SCP implementation.

func (*SCP) Check

func (s *SCP) Check(plateType, plateNumber string) ([]Ticket, error)

Check retrieves all tickes and aditional information.

type Ticket

type Ticket struct {
	ID       string `json:"id"`
	Entity   string `json:"entity"`
	Date     string `json:"date"`
	Amount   string `json:"amount"`
	Discount string `json:"discount"`
	Total    string `json:"total"`
	Location string `json:"location"`
	Info     string `json:"info"`
	Photo    string `json:"photo"`
}

Ticket represents the information related to the ticket.

func GetAllTickets

func GetAllTickets(plateType, plateNumber string, c *http.Client) ([]Ticket, error)

GetAllTickets retrieves tickets from all entities.

type TicketChecker

type TicketChecker interface {
	Check(plateType, plateNumber string) ([]Ticket, error)
}

TicketChecker is the interface that all checkers must implement.

type Tickets

type Tickets struct {
	Tickets []Ticket
	M       sync.Mutex
}

Tickets represents all collected tickets

type VillaNueva

type VillaNueva struct {
	Client *http.Client
}

VillaNueva implementation.

func (*VillaNueva) Check

func (f *VillaNueva) Check(plateType, plateNumber string) ([]Ticket, error)

Check retrieves all tickes and aditional information.

Directories

Path Synopsis
cmd
entities

Jump to

Keyboard shortcuts

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