manager

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: 7 Imported by: 0

Documentation

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        time.Time `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 FlicAnalytics

type FlicAnalytics struct {
	CustomerKey string    `bigquery:"customer_key"`
	APIKey      string    `bigquery:"api_key"`
	Domain      string    `bigquery:"domain"`
	Entered     time.Time `bigquery:"entered"`
	Success     bool      `bigquery:"success"`
	SearchType  string    `bigquery:"type_search"`
}

FlicAnalytics FlicAnalytics

type FlicList

type FlicList struct {
	Key            string `json:"id"`
	LicName        string `json:"licenseName"`
	BusName        string `json:"businessName"`
	PremiseAddress string `json:"premiseAddress"`
}

FlicList FlicList

type FlicManager

type FlicManager struct {
	FlicDB         db.FlicDB
	Log            *lg.Logger
	AnalyticPusher ph.AnalyticPusher
	Puller         pu.Puller
	GcpProject     string //= "august-gantry-192521"
	DatasetName    string // = "ulboralabs"
	Table          string
}

FlicManager FlicManager

func (*FlicManager) FindFlicByKey

func (m *FlicManager) FindFlicByKey(req *FlicRequest) (bool, *Flic)

FindFlicByKey FindFlicByKey

func (*FlicManager) FindFlicListByZip

func (m *FlicManager) FindFlicListByZip(req *FlicRequest) (bool, *[]FlicList)

FindFlicListByZip FindFlicListByZip

func (*FlicManager) GetNew

func (m *FlicManager) GetNew() Manager

GetNew GetNew

func (*FlicManager) InitialBqTableName

func (m *FlicManager) InitialBqTableName() bool

InitialBqTableName InitialBqTableName

func (*FlicManager) SetTableName

func (m *FlicManager) SetTableName(table string) bool

SetTableName SetTableName

func (*FlicManager) ValidateUser

func (m *FlicManager) ValidateUser(req *FlicRequest) bool

ValidateUser ValidateUser

type FlicRequest

type FlicRequest struct {
	ID          string
	Zip         string
	CustomerKey string
	APIKey      string
	Domain      string
}

FlicRequest FlicRequest

type Manager

type Manager interface {
	FindFlicListByZip(req *FlicRequest) (bool, *[]FlicList)
	FindFlicByKey(req *FlicRequest) (bool, *Flic)
	SetTableName(table string) bool
	ValidateUser(req *FlicRequest) bool
	InitialBqTableName() bool
}

Manager Manager

Jump to

Keyboard shortcuts

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