response

package
v0.0.0-...-9c64db6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 1 Imported by: 0

README

response

import "github.com/timehop/nimbus-openrtb/go/response"

Overview

Index

Package files

bid_response.go primitives.go

type Bid

type Bid struct {
    Type           string    `json:"type"`
    AuctionID      string    `json:"auction_id"`
    BidInCents     int       `json:"bid_in_cents"`
    BidRaw         float64   `json:"bid_raw"`
    ContentType    string    `json:"content_type"`
    Height         int       `json:"height,omitempty"`
    Width          int       `json:"width,omitempty"`
    IsInterstitial int       `json:"is_interstitial"`
    Markup         string    `json:"markup"`
    Network        string    `json:"network"`
    Trackers       *Trackers `json:"trackers,omitempty"`
    PlacementID    string    `json:"placement_id,omitempty"`
}

Bid represents what Nimbus responds with and is unique to the Nimbus environment

func (*Bid) NKeys
func (r *Bid) NKeys() int

NKeys returns the number of keys to unmarshal

func (*Bid) UnmarshalJSONObject
func (r *Bid) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type Strings

type Strings []string

Strings is an alias of []string

func (*Strings) UnmarshalJSONArray
func (a *Strings) UnmarshalJSONArray(dec *gojay.Decoder) error

UnmarshalJSONArray decodes JSON array elements into slice

type Trackers

type Trackers struct {
    ImpressionTrackers []string `json:"impression_trackers,omitempty"`
}

Trackers provides a forward thinking impression structure that clients have to fire

func (*Trackers) NKeys
func (t *Trackers) NKeys() int

NKeys returns the number of keys to unmarshal

func (*Trackers) UnmarshalJSONObject
func (t *Trackers) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject


Generated by godoc2md

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bid

type Bid struct {
	Type           string    `json:"type"`
	AuctionID      string    `json:"auction_id"`
	Adomain        []string  `json:"adomain,omitempty"`
	BidInCents     int       `json:"bid_in_cents"`
	BidRaw         float64   `json:"bid_raw"`
	ContentType    string    `json:"content_type"`
	Crid           string    `json:"crid,omitempty"`
	Height         int       `json:"height,omitempty"`
	Width          int       `json:"width,omitempty"`
	IsInterstitial int       `json:"is_interstitial"`
	IsMraid        int       `json:"is_mraid"`
	Markup         string    `json:"markup"`
	Network        string    `json:"network"`
	Trackers       *Trackers `json:"trackers,omitempty"`
	PlacementID    string    `json:"placement_id,omitempty"`
	Duration       int       `json:"duration,omitempty"`
	Ext            *BidExt   `json:"ext,omitempty"`
}

Bid represents what Nimbus responds with and is unique to the Nimbus environment

func (*Bid) NKeys

func (r *Bid) NKeys() int

NKeys returns the number of keys to unmarshal

func (*Bid) UnmarshalJSONObject

func (r *Bid) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type BidExt

type BidExt struct {
	Skadn *Skadn `json:"skadn,omitempty"`
}

func (*BidExt) NKeys

func (e *BidExt) NKeys() int

NKeys returns the number of keys to unmarshal

func (*BidExt) UnmarshalJSONObject

func (e *BidExt) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type Skadn

type Skadn struct {
	Version    string `json:"version"       valid:"optional"`
	Network    string `json:"network"       valid:"optional"`
	Campaign   string `json:"campaign"      valid:"required"`
	Itunesitem string `json:"itunesitem"    valid:"required"`
	Nonce      string `json:"nonce"         valid:"required"`
	Sourceapp  string `json:"sourceapp"     valid:"required"`
	Timestamp  string `json:"timestamp"     valid:"optional"`
	Signature  string `json:"signature"     valid:"optional"`
}

func (*Skadn) NKeys

func (s *Skadn) NKeys() int

NKeys returns the number of keys to unmarshal

func (*Skadn) UnmarshalJSONObject

func (s *Skadn) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type Strings

type Strings []string

Strings is an alias of []string

func (*Strings) UnmarshalJSONArray

func (a *Strings) UnmarshalJSONArray(dec *gojay.Decoder) error

UnmarshalJSONArray decodes JSON array elements into slice

type Trackers

type Trackers struct {
	ImpressionTrackers []string `json:"impression_trackers,omitempty"`
	ClickTrackers      []string `json:"click_trackers,omitempty"`
}

Trackers provides a forward-thinking impression structure that clients have to fire typically handled by the nimbus render sdk

func (*Trackers) NKeys

func (t *Trackers) NKeys() int

NKeys returns the number of keys to unmarshal

func (*Trackers) UnmarshalJSONObject

func (t *Trackers) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL