Documentation ¶
Index ¶
- type PixelInput
- type SensorInput
- type Session
- func (s *Session) GeneratePixelData(ctx context.Context, input *PixelInput) (string, error)
- func (s *Session) GenerateReese84Sensor(ctx context.Context, site, userAgent string) (string, error)
- func (s *Session) GenerateSensorData(ctx context.Context, input *SensorInput) (string, error)
- func (s *Session) GenerateUtmvcCookie(ctx context.Context, input *UtmvcInput) (string, error)
- func (s *Session) WithClient(client *http.Client) *Session
- func (s *Session) WithJwtKey(jwt string) *Session
- type UtmvcInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PixelInput ¶
type PixelInput struct { UserAgent string `json:"userAgent"` HTMLVar string `json:"htmlVar"` ScriptVar string `json:"scriptVar"` }
func (PixelInput) MarshalEasyJSON ¶
func (v PixelInput) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PixelInput) MarshalJSON ¶
func (v PixelInput) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PixelInput) UnmarshalEasyJSON ¶
func (v *PixelInput) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PixelInput) UnmarshalJSON ¶
func (v *PixelInput) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SensorInput ¶
type SensorInput struct { Abck string `json:"abck"` Bmsz string `json:"bmsz"` Version string `json:"version"` PageUrl string `json:"pageUrl"` UserAgent string `json:"userAgent"` ScriptHash string `json:"scriptHash"` }
func (SensorInput) MarshalEasyJSON ¶
func (v SensorInput) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SensorInput) MarshalJSON ¶
func (v SensorInput) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SensorInput) UnmarshalEasyJSON ¶
func (v *SensorInput) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SensorInput) UnmarshalJSON ¶
func (v *SensorInput) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Session ¶
func NewSession ¶
NewSession creates a new Session that can be used to make requests to the Hyper Solutions API.
func (*Session) GeneratePixelData ¶
GeneratePixelData returns the pixel data using the Hyper Solutions API.
func (*Session) GenerateReese84Sensor ¶
func (s *Session) GenerateReese84Sensor(ctx context.Context, site, userAgent string) (string, error)
GenerateReese84Sensor returns the sensor data required to generate valid reese84 cookies using the Hyper Solutions API.
func (*Session) GenerateSensorData ¶
GenerateSensorData returns the sensor data required to generate valid akamai cookies using the Hyper Solutions API.
func (*Session) GenerateUtmvcCookie ¶
GenerateUtmvcCookie returns the utmvc cookie using the Hyper Solutions API.
func (*Session) WithClient ¶
WithClient sets a new client that will be used to make requests to the Hyper Solutions API.
func (*Session) WithJwtKey ¶
WithJwtKey adds the JWT Key to the session. If not empty, a signature will be added to each request.
type UtmvcInput ¶
type UtmvcInput struct { UserAgent string `json:"userAgent"` SessionIds []string `json:"sessionIds"` Script string `json:"script"` }
func (UtmvcInput) MarshalEasyJSON ¶
func (v UtmvcInput) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (UtmvcInput) MarshalJSON ¶
func (v UtmvcInput) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*UtmvcInput) UnmarshalEasyJSON ¶
func (v *UtmvcInput) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*UtmvcInput) UnmarshalJSON ¶
func (v *UtmvcInput) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface