leadtracker

package
v0.0.0-...-cc2351a Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompactLeadEvent

type CompactLeadEvent struct {
	Event        string `json:"e"`
	AccountID    uint64 `json:"acc"`
	AdvAccountID uint64 `json:"acv"`
	ImpressionID string `json:"imp"`
	LeadTypeID   uint32 `json:"lt"`
	LeadTypeCH   uint32 `json:"ltid"`
	Price        int64  `json:"p"`
	LeadPrice    int64  `json:"lpr"`
	Time         int64  `json:"tm"`
}

CompactLeadEvent is the S2S /lead JSON payload (HTTP acc/clk/lt/p).

Eventstream already maps acv→adv_account_id and lpr→lead_price; lt is latitude on full events, so lead type is also emitted as ltid.

type Extension

type Extension[LeadT LeadType] struct {
	// contains filtered or unexported fields
}

Extension of the server

func NewExtension

func NewExtension[LeadT LeadType](opts ...Option[LeadT]) *Extension[LeadT]

NewExtension with options

func (*Extension[LeadType]) InitRouter

func (ext *Extension[LeadType]) InitRouter(ctx context.Context, router *router.Router, tracer opentracing.Tracer)

InitRouter of the HTTP server

type LeadType

type LeadType = eventgenerator.LeadType

type Option

type Option[LeadT LeadType] func(ext *Extension[LeadT])

Option type

func WithEventStream

func WithEventStream[LeadT LeadType](eventStream eventstream.Stream) Option[LeadT]

WithEventStream setter

func WithHTTPHandlerWrapper

func WithHTTPHandlerWrapper[LeadT LeadType](handlerWrapper *httphandler.HTTPHandlerWrapper) Option[LeadT]

WithHTTPHandlerWrapper setter

func WithLeadAllocator

func WithLeadAllocator[LeadT LeadType](leadAllocator eventgenerator.Allocator[LeadT]) Option[LeadT]

WithLeadAllocator setter

func WithURLGenerator

func WithURLGenerator[LeadT LeadType](urlGenerator adtype.URLGenerator) Option[LeadT]

WithURLGenerator interface

Jump to

Keyboard shortcuts

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