dsplib

package
v0.0.0-...-fa2b1a7 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Basic test DSP

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Campaign

type Campaign struct {
	ID            string
	Type          string
	Width, Height int
	ImageURL      string
	VideoURL      string
	ClickURL      string
	BidCPM        float64
}

type DSP

type DSP struct {
	BaseURL string
	BidURL  string
	// contains filtered or unexported fields
}

func NewDSP

func NewDSP(listen string, cs []Campaign) *DSP

func (*DSP) Close

func (dsp *DSP) Close() error

func (*DSP) Mux

func (dsp *DSP) Mux() *httprouter.Router

func (*DSP) Won

func (dsp *DSP) Won() (int, float64)

Won returns count+total CPM of winnotices

Jump to

Keyboard shortcuts

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