handlers

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxSize = 50
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoRiaHandler

type AutoRiaHandler struct {
	API           *autoria.API
	Recognizer    *openalpr.API
	Storage       *toolkit.Client
	Subscriptions map[int64]*subscription.Subscription
	FilePath      string
}

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 {
	OpenCars   *toolkit.Client
	Recognizer *openalpr.API
}

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)

Jump to

Keyboard shortcuts

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