activity

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(
	listClient activitylog.ClientInterface,
	detailsClient details.ClientInterface,
	normalizer details.ResponseNormalizerInterface,
	processor ProcessorInterface,
	logger *log.Logger,
) Handler

func ProvideHandler

func ProvideHandler(responseReader reader.Interface, responseWriter writer.Interface, logger *logrus.Logger) (Handler, error)

func (Handler) GetActivityLog

func (h Handler) GetActivityLog() ([]activitylog.ResponseItem, error)

func (Handler) Handle

func (h Handler) Handle() error

type HandlerInterface

type HandlerInterface interface {
	Handle() error
}

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(
	builder document.ModelBuilderInterface,
	docDownloader document.DownloaderInterface,
	logger *log.Logger,
) Processor

func (Processor) Process

func (p Processor) Process(response details.NormalizedResponse) error

type ProcessorInterface

type ProcessorInterface interface {
	Process(response details.NormalizedResponse) error
}

Jump to

Keyboard shortcuts

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