api

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

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RotationService

type RotationService struct {
	Storage      interfaces.Storage
	Publisher    mq.Publisher
	ExchangeName string
	// contains filtered or unexported fields
}

RotationService represents gRPC banner rotation service.

func NewRotationService

func NewRotationService(ctx context.Context, s interfaces.Storage, p mq.Publisher, exch string) *RotationService

NewRotationService creates new banner rotation service.

func (*RotationService) AckClick

AckClick acknowledges a click on a banner by users group.

func (*RotationService) Add

Add adds new banner into rotation.

func (*RotationService) Delete

Delete deletes banner for specific slot out of rotation.

func (*RotationService) Run

func (rs *RotationService) Run(c configs.Config) error

Run starts gRPC server.

func (*RotationService) SelectOne

SelectOne selects banner to be shown for specific users group in specific slot.

Jump to

Keyboard shortcuts

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