Documentation ¶
Index ¶
Constants ¶
View Source
const ( ActionAdd = ActionType("add") ActionDelete = ActionType("delete") ActionUpdate = ActionType("update") )
Variables ¶
This section is empty.
Functions ¶
func EnableViews ¶
func EnableViews() error
func NewHTTPHandler ¶
func NewHTTPHandler(fn Handler, opts ...Option) http.HandlerFunc
Types ¶
type ActionType ¶
type ActionType string
type Data ¶
type Data struct { RawData io.Reader `json:"-"` DataType DataType `json:"data_type"` *EventData *DeviceData *PersonData *PlaceData }
type DeviceData ¶
type HandlerFunc ¶
func ReportStats ¶
func ReportStats(fn Handler) HandlerFunc
func (HandlerFunc) ServeWebhook ¶
func (fn HandlerFunc) ServeWebhook(ctx context.Context, data *Data) error
type PersonData ¶
type PersonData struct { DetectedImageURL string `json:"detected_image_url"` PersonID string `json:"personID"` AliasID string `json:"aliasID"` PersonName string `json:"personName"` PersonType PersonType `json:"personType"` }
type PersonType ¶
type PersonType string
const ( PersonEmployee PersonType = "0" PersonCustomer PersonType = "1" PersonStranger PersonType = "2" PersonStranger3 PersonType = "3" PersonStrangerNoFace PersonType = "4" PersonStranger5 PersonType = "5" PersonCameraPhoto PersonType = "6" )
func (PersonType) IsStranger ¶
func (p PersonType) IsStranger() bool
func (PersonType) String ¶
func (p PersonType) String() string
Click to show internal directories.
Click to hide internal directories.