Documentation
¶
Index ¶
- Constants
- Variables
- type Code
- func (c Code) Compress() Code
- func (c Code) Data() []byte
- func (c Code) DecodeObject(target any, gen ...types.DecodeGenerator) error
- func (c Code) Decompress() Code
- func (c Code) Error() string
- func (c Code) ErrorObj() error
- func (c *Code) ResetData()
- func (c Code) String() string
- func (c Code) URLDecode() Code
- func (c Code) URLEncode() Code
- func (c *Code) Write(p []byte) (n int, err error)
- type EventUnpacFunc
- type Type
Constants ¶
View Source
const ( StatusUndefined = 0 StatusSuccess = 1 StatusFailed = 2 StatusCompromised = 3 StatusCustom = 4 // User code )
Event status
View Source
const LZ4BlockMaxSize = 64 << 10
LZ4BlockMaxSize constant
Variables ¶
View Source
var ErrEmptyData = errors.New(`data is empty`)
ErrEmptyData error
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code struct {
// contains filtered or unexported fields
}
Code structure can contains and conver data for URL
func ObjectCode ¶
func ObjectCode(obj any, gen ...types.EncodeGenerator) Code
ObjectCode converts object to code object with defined encoder/decoder
func (Code) DecodeObject ¶
func (c Code) DecodeObject(target any, gen ...types.DecodeGenerator) error
DecodeObject converts current object data to target
type Type ¶
type Type string
Type of event
const ( Undefined Type = "" Request Type = "request" Impression Type = "impression" View Type = "view" Direct Type = "direct" Click Type = "click" Lead Type = "lead" // Source types SourceNoBid Type = "src.nobid" SourceBid Type = "src.bid" SourceWin Type = "src.win" SourceFail Type = "src.fail" SourceSkip Type = "src.skip" // Access Point types AccessPointNoBid Type = "ap.nobid" AccessPointBid Type = "ap.bid" AccessPointWin Type = "ap.win" AccessPointBillingNotice Type = "ap.bin" AccessPointFail Type = "ap.fail" AccessPointSkip Type = "ap.skip" )
Event types
Click to show internal directories.
Click to hide internal directories.