Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
hk: update v16 -> v17
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmCherry committed Sep 2, 2022
1 parent 37a9c1e commit de6f64c
Show file tree
Hide file tree
Showing 38 changed files with 46 additions and 46 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# openrtb [![Go Reference](https://pkg.go.dev/badge/github.com/mxmCherry/openrtb/v16.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v16) [![Test](https://github.com/mxmCherry/openrtb/actions/workflows/test.yml/badge.svg)](https://github.com/mxmCherry/openrtb/actions/workflows/test.yml)
# openrtb [![Go Reference](https://pkg.go.dev/badge/github.com/mxmCherry/openrtb/v17.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17) [![Test](https://github.com/mxmCherry/openrtb/actions/workflows/test.yml/badge.svg)](https://github.com/mxmCherry/openrtb/actions/workflows/test.yml)

[OpenRTB](https://iabtechlab.com/standards/openrtb/), [AdCOM](https://iabtechlab.com/standards/openmedia) and [OpenRTB Dynamic Native Ads](https://iabtechlab.com/standards/openrtb-native/) types for [Go programming language](https://golang.org/)

Expand All @@ -16,19 +16,19 @@ Also, [test/matcher library](https://github.com/onsi/gomega) relies on newer Go
# Using

```bash
go get -u "github.com/mxmCherry/openrtb/v16/..."
go get -u "github.com/mxmCherry/openrtb/v17/..."
```

```go
import (
openrtb2 "github.com/mxmCherry/openrtb/v16/openrtb2"
openrtb2 "github.com/mxmCherry/openrtb/v17/openrtb2"

openrtb3 "github.com/mxmCherry/openrtb/v16/openrtb3"
adcom1 "github.com/mxmCherry/openrtb/v16/adcom1"
openrtb3 "github.com/mxmCherry/openrtb/v17/openrtb3"
adcom1 "github.com/mxmCherry/openrtb/v17/adcom1"

native1 "github.com/mxmCherry/openrtb/v16/native1"
nreq "github.com/mxmCherry/openrtb/v16/native1/request"
nres "github.com/mxmCherry/openrtb/v16/native1/response"
native1 "github.com/mxmCherry/openrtb/v17/native1"
nreq "github.com/mxmCherry/openrtb/v17/native1/request"
nres "github.com/mxmCherry/openrtb/v17/native1/response"
)
```

Expand Down Expand Up @@ -65,7 +65,7 @@ Pointer | Omitempty | When to use

Using both pointer and `omitempty` is mostly just to save traffic / generate more "canonical" (strict) JSON.

## Documentation ([pkg.go.dev](https://pkg.go.dev/github.com/mxmCherry/openrtb/v16))
## Documentation ([pkg.go.dev](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17))
- [Godoc: documenting Go code](http://blog.golang.org/godoc-documenting-go-code)
- Each entity (type, struct key or constant) should be documented
- Ideally, copy-paste descriptions as-is, but feel free to omit section numbers, so just `<GoTypeName> defines <copy-pasted description from spec>`
Expand Down
2 changes: 1 addition & 1 deletion adcom1/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# adcom1 [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/adcom1?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v16/adcom1)
# adcom1 [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/adcom1?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17/adcom1)

[AdCOM](https://iabtechlab.com/standards/openmedia/) [1.0](https://github.com/InteractiveAdvertisingBureau/AdCOM) types for [Go programming language](https://golang.org/)
2 changes: 1 addition & 1 deletion adcom1/adcom1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"

. "github.com/mxmCherry/openrtb/v16/adcom1"
. "github.com/mxmCherry/openrtb/v17/adcom1"
)

var _ = DescribeTable(
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/mxmCherry/openrtb/v16
module github.com/mxmCherry/openrtb/v17

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion native1/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# native1 [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/native1?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v16/native1)
# native1 [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/native1?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17/native1)

[OpenRTB Dynamic Native Ads API](https://iabtechlab.com/standards/openrtb-native/) [1.2](https://iabtechlab.com/wp-content/uploads/2016/07/OpenRTB-Native-Ads-Specification-Final-1.2.pdf) section "7 Reference Lists/Enumerations" types for [Go programming language](https://golang.org/)

Expand Down
2 changes: 1 addition & 1 deletion native1/request/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# native1/request [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/native1/request?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v16/native1/request)
# native1/request [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/native1/request?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17/native1/request)

[OpenRTB Dynamic Native Ads API](https://iabtechlab.com/standards/openrtb-native/) [1.2](https://iabtechlab.com/wp-content/uploads/2016/07/OpenRTB-Native-Ads-Specification-Final-1.2.pdf) section "4 Native Ad Request Markup Details" types for [Go programming language](https://golang.org/)
2 changes: 1 addition & 1 deletion native1/request/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package request
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/native1"
"github.com/mxmCherry/openrtb/v17/native1"
)

// 4.6 Data Object
Expand Down
2 changes: 1 addition & 1 deletion native1/request/event_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package request
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/native1"
"github.com/mxmCherry/openrtb/v17/native1"
)

// 4.7 Event Trackers Request Object
Expand Down
2 changes: 1 addition & 1 deletion native1/request/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package request
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/native1"
"github.com/mxmCherry/openrtb/v17/native1"
)

// 4.4 Image Object
Expand Down
2 changes: 1 addition & 1 deletion native1/request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package request
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/native1"
"github.com/mxmCherry/openrtb/v17/native1"
)

// 4.1 Native Markup Request Object
Expand Down
2 changes: 1 addition & 1 deletion native1/request/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"path/filepath"

. "github.com/mxmCherry/openrtb/v16/native1/request"
. "github.com/mxmCherry/openrtb/v17/native1/request"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
Expand Down
2 changes: 1 addition & 1 deletion native1/request/video.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package request

import (
"github.com/mxmCherry/openrtb/v16/openrtb2"
"github.com/mxmCherry/openrtb/v17/openrtb2"
)

// 4.5 Video Object
Expand Down
2 changes: 1 addition & 1 deletion native1/response/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# native1/response [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/native1/response?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v16/native1/response)
# native1/response [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/native1/response?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17/native1/response)

[OpenRTB Dynamic Native Ads API](https://iabtechlab.com/standards/openrtb-native/) [1.2](https://iabtechlab.com/wp-content/uploads/2016/07/OpenRTB-Native-Ads-Specification-Final-1.2.pdf) section "5 Native Ad Response Markup Details" types for [Go programming language](https://golang.org/)
2 changes: 1 addition & 1 deletion native1/response/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package response
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/native1"
"github.com/mxmCherry/openrtb/v17/native1"
)

// 5.5 Object: Data
Expand Down
2 changes: 1 addition & 1 deletion native1/response/event_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package response
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/native1"
"github.com/mxmCherry/openrtb/v17/native1"
)

// 5.8 Event Tracker Response Object
Expand Down
2 changes: 1 addition & 1 deletion native1/response/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package response
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/native1"
"github.com/mxmCherry/openrtb/v17/native1"
)

// 5.4 Object: Image
Expand Down
2 changes: 1 addition & 1 deletion native1/response/response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"path/filepath"

. "github.com/mxmCherry/openrtb/v16/native1/response"
. "github.com/mxmCherry/openrtb/v17/native1/response"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# openrtb2 [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/openrtb2?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v16/openrtb2)
# openrtb2 [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/openrtb2?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17/openrtb2)

[OpenRTB](https://iabtechlab.com/standards/openrtb/) [2.6](https://iabtechlab.com/wp-content/uploads/2022/04/OpenRTB-2-6_FINAL.pdf) types for [Go programming language](https://golang.org/)
2 changes: 1 addition & 1 deletion openrtb2/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.14 Object: App
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/audio.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.8 Object: Audio
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.6 Object: Banner
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/bid.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 4.3.3 Object: Bid
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/bid_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.1 Object: BidRequest
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/bid_request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"path/filepath"

. "github.com/mxmCherry/openrtb/v16/openrtb2"
. "github.com/mxmCherry/openrtb/v17/openrtb2"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/bid_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/openrtb3"
"github.com/mxmCherry/openrtb/v17/openrtb3"
)

// 4.3.1 Object: BidResponse
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/bid_response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"path/filepath"

. "github.com/mxmCherry/openrtb/v16/openrtb2"
. "github.com/mxmCherry/openrtb/v17/openrtb2"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.16 Object: Content
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.18 Object: Device
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/geo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.19 Object: Geo
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.9 Object: Native
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.17 Object: Producer
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.15 Object: Publisher
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.13 Object: Site
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/uid.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.28 Object: UID
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/user_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.29 Object: UserAgent
Expand Down
2 changes: 1 addition & 1 deletion openrtb2/video.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package openrtb2
import (
"encoding/json"

"github.com/mxmCherry/openrtb/v16/adcom1"
"github.com/mxmCherry/openrtb/v17/adcom1"
)

// 3.2.7 Object: Video
Expand Down
2 changes: 1 addition & 1 deletion openrtb3/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# openrtb3 [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/openrtb3?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v16/openrtb3)
# openrtb3 [![GoDoc](https://godoc.org/github.com/mxmCherry/openrtb/openrtb3?status.svg)](https://pkg.go.dev/github.com/mxmCherry/openrtb/v17/openrtb3)

[OpenRTB](https://iabtechlab.com/standards/openrtb/) [3.0](https://github.com/InteractiveAdvertisingBureau/openrtb) types for [Go programming language](https://golang.org/)
2 changes: 1 addition & 1 deletion openrtb3/openrtb3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"path/filepath"

. "github.com/mxmCherry/openrtb/v16/openrtb3"
. "github.com/mxmCherry/openrtb/v17/openrtb3"

. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
Expand Down

0 comments on commit de6f64c

Please sign in to comment.