handlers

package
v0.0.0-...-f801222 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package handlers ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flic

type Flic struct {
	Key            string `json:"id"`
	Lic            string `json:"license"`
	ExpDate        string `json:"expDate"`
	LicName        string `json:"licenseName"`
	BusName        string `json:"businessName"`
	PremiseAddress string `json:"premiseAddress"`
	Address        string `json:"address"`
	City           string `json:"city"`
	State          string `json:"state"`
	PremiseZip     string `json:"premiseZip"`
	MailingAddress string `json:"mailingAddress"`
	Phone          string `json:"phone"`
}

Flic Flic

type FlicHandler

type FlicHandler struct {
	Manager mg.Manager
	Log     *lg.Logger
}

FlicHandler FlicHandler

func (*FlicHandler) FindFlicByKey

func (h *FlicHandler) FindFlicByKey(w http.ResponseWriter, r *http.Request)

FindFlicByKey FindFlicByKey

func (*FlicHandler) FindFlicListByZip

func (h *FlicHandler) FindFlicListByZip(w http.ResponseWriter, r *http.Request)

FindFlicListByZip FindFlicListByZip

func (*FlicHandler) GetNew

func (h *FlicHandler) GetNew() Handlers

GetNew GetNew

func (*FlicHandler) SetFlicTable

func (h *FlicHandler) SetFlicTable(w http.ResponseWriter, r *http.Request)

SetFlicTable SetFlicTable

func (*FlicHandler) SetLogLevel

func (h *FlicHandler) SetLogLevel(w http.ResponseWriter, r *http.Request)

SetLogLevel SetLogLevel

type Handlers

type Handlers interface {
	FindFlicListByZip(w http.ResponseWriter, r *http.Request)
	FindFlicByKey(w http.ResponseWriter, r *http.Request)
	SetFlicTable(w http.ResponseWriter, r *http.Request)
	SetLogLevel(w http.ResponseWriter, r *http.Request)
}

Handlers Handlers

type LogLevel

type LogLevel struct {
	Level string `json:"logLevel"`
}

LogLevel LogLevel

type LogResponse

type LogResponse struct {
	Success  bool   `json:"success"`
	LogLevel string `json:"logLevel"`
}

LogResponse LogResponse

type Request

type Request struct {
	Zip string `json:"zip"`
	ID  string `json:"id"`
}

Request Request

type TableRequest

type TableRequest struct {
	Name string `json:"name"`
}

TableRequest TableRequest

Jump to

Keyboard shortcuts

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