Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CtxStreamObject = struct{ s string }{"eventstream"} CtxWinsObject = struct{ s string }{"eventstream.wins"} )
Functions ¶
func WithStream ¶
WithStream puts stream to context
Types ¶
type EventType ¶
type EventType = eventgenerator.EventType
type Stream ¶
type Stream interface {
// SendEvent native action
SendEvent(ctx context.Context, event any) error
// Send response
Send(event events.Type, status uint8, response adtype.Response, it adtype.ResponseItem) error
// SendLeadEvent as lead code type
SendLeadEvent(ctx context.Context, event any) error
// SendSourceSkip event for the response
SendSourceSkip(response adtype.Response) error
// SendSourceNoBid event for the response
SendSourceNoBid(response adtype.Response) error
// SendSourceFail event for the response
SendSourceFail(response adtype.Response) error
// SendAccessPointBid event for the response
SendAccessPointBid(response adtype.Response, it ...adtype.ResponseItem) error
// SendAccessPointSkip event for the response
SendAccessPointSkip(response adtype.Response) error
// SendAccessPointNoBid event for the response
SendAccessPointNoBid(response adtype.Response) error
// SendAccessPointFail event for the response
SendAccessPointFail(response adtype.Response) error
}
Stream accessor interface for the event tracking
func New ¶
func New[EventT EventType, UserInfoT UserInfoType](events, userInfo nc.Publisher, generator eventgenerator.Generator[EventT, UserInfoT]) Stream
New stream object
func StreamFromContext ¶
StreamFromContext object
type UserInfoType ¶
type UserInfoType = eventgenerator.UserInfoType
type WinNotifier ¶
type WinNotifier struct {
// contains filtered or unexported fields
}
WinNotifier redeclared type
func WinNotifications ¶
func WinNotifications(p nc.Publisher) *WinNotifier
WinNotifications returns win notifier wrapper
func WinsFromContext ¶
func WinsFromContext(ctx context.Context) *WinNotifier
WinsFromContext object
Click to show internal directories.
Click to hide internal directories.