adservice

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 13 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 T

type T 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