handlers

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHandler added in v0.0.29

func StartHandler(msg *bot.Event)

Types

type AutoRiaHandler

type AutoRiaHandler struct {
	API           *autoria.API
	Period        time.Duration
	Toolkit       *toolkit.Client
	Subscriptions map[int64]*subscription.Subscription
}

func (AutoRiaHandler) AnalyzePhotos

func (h AutoRiaHandler) AnalyzePhotos(photos []autoria.Photo) string

func (AutoRiaHandler) CarInfoHandler

func (h AutoRiaHandler) CarInfoHandler(msg *bot.Event)

Analyze first 50 photos, then find best number, that matches the rules. Send message firstly.

func (AutoRiaHandler) FollowHandler

func (h AutoRiaHandler) FollowHandler(msg *bot.Event)

func (AutoRiaHandler) StopHandler

func (h AutoRiaHandler) StopHandler(msg *bot.Event)

type OpenCarsHandler

type OpenCarsHandler struct {
	// contains filtered or unexported fields
}

func NewOpenCarsHandler added in v0.0.27

func NewOpenCarsHandler(client *toolkit.Client) *OpenCarsHandler

func (*OpenCarsHandler) GetReportByVIN added in v0.0.29

func (h *OpenCarsHandler) GetReportByVIN(vin string) (string, error)

func (OpenCarsHandler) NotImplemented added in v0.0.16

func (h OpenCarsHandler) NotImplemented(msg *bot.Event)

func (OpenCarsHandler) PhotoHandler

func (h OpenCarsHandler) PhotoHandler(msg *bot.Event)

func (OpenCarsHandler) PlatesHandler

func (h OpenCarsHandler) PlatesHandler(msg *bot.Event)

func (OpenCarsHandler) RegistrationHandler added in v0.0.22

func (h OpenCarsHandler) RegistrationHandler(msg *bot.Event)

func (OpenCarsHandler) ReportByVIN added in v0.0.29

func (h OpenCarsHandler) ReportByVIN(msg *bot.Event)

Jump to

Keyboard shortcuts

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