Documentation
¶
Index ¶
- Variables
- type Allocator
- type EventType
- type EventUnpacFunc
- type Generator
- type LeadType
- type TestEvent
- func (e *TestEvent) EventType() events.Type
- func (e *TestEvent) EventURL() string
- func (e *TestEvent) Fill(service string, event events.Type, status uint8, response adtype.Response, ...) error
- func (e *TestEvent) Pack() events.Code
- func (e *TestEvent) PrepareURL(url string) string
- func (e *TestEvent) PreparedEventURL() string
- func (e *TestEvent) SetDateTime(t int64)
- func (e *TestEvent) SetEventPurchaseViewPrice(price int64) error
- func (e *TestEvent) Unpack(data []byte, unpuckFnc ...EventUnpacFunc) error
- type TestLead
- type TestUserInfo
- type UserInfoType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidMultipleItemAsSingle = errors.New("can`t convert multipleitem to single action")
)
Errors set
Functions ¶
This section is empty.
Types ¶
type EventType ¶
type EventType interface {
// SetDateTime set date time of event
SetDateTime(t int64)
// EventType returns type of event
EventType() events.Type
// EventURL returns url of event target
EventURL() string
// PreparedEventURL returns prepared url of event target
PreparedEventURL() string
// PrepareURL prepare url for event
PrepareURL(url string) string
// SetEventPurchaseViewPrice set price of event
SetEventPurchaseViewPrice(price int64) error
// Pack event object to byte array
Pack() events.Code
// Unpack event object from byte array
Unpack(data []byte, unpuckFnc ...EventUnpacFunc) error
// Fill event object by response
Fill(service string, event events.Type, status uint8, response adtype.Response, it adtype.ResponseItem) error
}
EventType object for event basic type interface
type EventUnpacFunc ¶
type EventUnpacFunc = events.EventUnpacFunc
EventUnpacFunc object for event unpack function
type Generator ¶
type Generator[EventT EventType, UserInfoT UserInfoType] interface { // Event object by response Event(event events.Type, status uint8, response adtype.Response, it adtype.ResponseItem) (EventT, error) // Events object list Events(event events.Type, status uint8, response adtype.Response, it adtype.ResponseItemCommon) []EventT // UserInfo event object by response UserInfo(response adtype.Response, it adtype.ResponseItem) (UserInfoT, error) }
Generator object
type LeadType ¶
type LeadType interface {
// String returns string representation of object
String() string
// EventAuctionID returns auction id of event
EventAuctionID() string
// SetDateTime set date time of event
SetDateTime(t int64)
// Pack event object to byte array
Pack() events.Code
// Unpack event object from byte array
Unpack(data []byte) error
// Fill event object by response
Fill(item adtype.ResponseItem, response adtype.Response) error
}
LeadType object for lead basic type interface
type TestEvent ¶
type TestEvent struct{}
TestEvent object for testing
func (*TestEvent) Fill ¶
func (e *TestEvent) Fill(service string, event events.Type, status uint8, response adtype.Response, it adtype.ResponseItem) error
Fill event object by response
func (*TestEvent) PrepareURL ¶
PrepareURL prepare url for event
func (*TestEvent) PreparedEventURL ¶
PreparedEventURL returns prepared url of event target
func (*TestEvent) SetDateTime ¶
SetDateTime set date time of event
func (*TestEvent) SetEventPurchaseViewPrice ¶
SetEventPurchaseViewPrice set price of event
type TestLead ¶
type TestLead struct{}
TestLead object for testing
func (*TestLead) EventAuctionID ¶
EventAuctionID returns auction id of event
func (*TestLead) SetDateTime ¶
SetDateTime set date time of event
type TestUserInfo ¶
type TestUserInfo struct{}
TestUserInfo object for testing
func (*TestUserInfo) Fill ¶
func (u *TestUserInfo) Fill(response adtype.Response, it adtype.ResponseItem) error
Fill user info object by response
type UserInfoType ¶
type UserInfoType interface {
Fill(response adtype.Response, it adtype.ResponseItem) error
}
UserInfoType object for user info basic type interface
Click to show internal directories.
Click to hide internal directories.