filesystem

package
v2.27.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileLogger

func NewFileLogger(filename string) (analytics.Module, error)

Method to initialize the analytic module

Types

type FileLogger

type FileLogger struct {
	Logger Logger
}

Module that can perform transactional logging

func (*FileLogger) LogAmpObject

func (f *FileLogger) LogAmpObject(ao *analytics.AmpObject)

Logs AmpObject to file

func (*FileLogger) LogAuctionObject

func (f *FileLogger) LogAuctionObject(ao *analytics.AuctionObject)

Writes AuctionObject to file

func (*FileLogger) LogCookieSyncObject

func (f *FileLogger) LogCookieSyncObject(cso *analytics.CookieSyncObject)

Logs CookieSyncObject to file

func (*FileLogger) LogNotificationEventObject

func (f *FileLogger) LogNotificationEventObject(ne *analytics.NotificationEvent)

Logs NotificationEvent to file

func (*FileLogger) LogSetUIDObject

func (f *FileLogger) LogSetUIDObject(so *analytics.SetUIDObject)

Logs SetUIDObject to file

func (*FileLogger) LogVideoObject

func (f *FileLogger) LogVideoObject(vo *analytics.VideoObject)

Writes VideoObject to file

func (*FileLogger) Shutdown added in v2.26.0

func (f *FileLogger) Shutdown()

Shutdown the logger

type Logger added in v2.26.0

type Logger interface {
	Debug(v ...interface{})
	Flush()
}

type RequestType

type RequestType string
const (
	COOKIE_SYNC        RequestType = "/cookie_sync"
	AUCTION            RequestType = "/openrtb2/auction"
	VIDEO              RequestType = "/openrtb2/video"
	SETUID             RequestType = "/set_uid"
	AMP                RequestType = "/openrtb2/amp"
	NOTIFICATION_EVENT RequestType = "/event"
)

Jump to

Keyboard shortcuts

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