ads

package
v0.0.0-...-2b8df31 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Campaign

type Campaign struct {
	ClickUrl  string
	Price     float64
	Targeting Targeting
}

func GetStaticCampaigns

func GetStaticCampaigns() []*Campaign

func MakeAuction

func MakeAuction(in []*Campaign, u *User) (winner *Campaign)

type Server

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

func NewServer

func NewServer(geoip *geoip2.Reader) *Server

func (*Server) Listen

func (s *Server) Listen() error

type Targeting

type Targeting struct {
	Country string
	Browser string
}

type User

type User struct {
	Country string
	Browser string
}

Jump to

Keyboard shortcuts

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