ad

package
v0.0.11-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ad struct {
	Content  string
	Metadata map[string]string
}

Ad represents an advertisement with content and metadata.

type SubscriptionHandler

type SubscriptionHandler struct {
	Ads     []Ad
	AdTopic *pubsub.Topic
	// contains filtered or unexported fields
}

SubscriptionHandler handles storing advertisements and publishing them to the advertisement topic.

func (*SubscriptionHandler) HandleMessage

func (handler *SubscriptionHandler) HandleMessage(message *pubsub.Message)

HandleMessage implement subscription handler here

Jump to

Keyboard shortcuts

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