core

package
v0.0.0-...-7e5df9d Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(router *gin.Engine)

Routes has all the core routes

Types

type Advertiser

type Advertiser struct {
	Name        string `json:"name" binding:"required"`
	Description string `json:"description"`
}

Advertiser is the one who wants to show an ad

type Campaign

type Campaign struct {
	Name        string   `json:"name" binding:"required"`
	Description string   `json:"description"`
	Status      string   `json:"status"`
	StartAt     int32    `json:"startAt" binding:"required" time_format:"unix"`
	EndAt       int32    `json:"endAt" time_format:"unix"`
	Advertiser  string   `json:"advertiser" binding:"required"`
	Creatives   []string `json:"creatives"`
}

Campaign is used to serve and track ad creatives

type Publisher

type Publisher struct {
	Name        string `json:"name" binding:"required"`
	Description string `json:"description"`
}

Publisher is the one who wants to show an ad

type Tracker

type Tracker struct {
	// contains filtered or unexported fields
}

Tracker is structure for creating event trackers

Jump to

Keyboard shortcuts

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