adservice

package
v0.0.0-...-ec86544 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ad struct {
	weaver.AutoMarshal
	RedirectURL string // URL to redirect to when an ad is clicked.
	Text        string // Short advertisement text to display.
}

Ad represents an advertisement.

func (*Ad) WeaverMarshal

func (x *Ad) WeaverMarshal(enc *codegen.Encoder)

func (*Ad) WeaverUnmarshal

func (x *Ad) WeaverUnmarshal(dec *codegen.Decoder)

type AdService

type AdService interface {
	GetAds(ctx context.Context, keywords []string) ([]Ad, error)
}

Jump to

Keyboard shortcuts

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