Documentation
¶
Index ¶
- type CompactLeadEvent
- type Extension
- type LeadType
- type Option
- func WithEventStream[LeadT LeadType](eventStream eventstream.Stream) Option[LeadT]
- func WithHTTPHandlerWrapper[LeadT LeadType](handlerWrapper *httphandler.HTTPHandlerWrapper) Option[LeadT]
- func WithLeadAllocator[LeadT LeadType](leadAllocator eventgenerator.Allocator[LeadT]) Option[LeadT]
- func WithURLGenerator[LeadT LeadType](urlGenerator adtype.URLGenerator) Option[LeadT]
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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.