service

package
v0.0.0-...-db3c348 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Consumer  providers.ConsumerProvider
	Processor providers.ProcessorProvider
	Logger    zerolog.Logger
}

Dependencies are providers which this service operates with.

type Service

type Service interface {
	Run(ctx context.Context)
}

Service interface defines a service which can Run something.

func New

func New(deps Dependencies) Service

New creates a new service with all of its dependencies and configurations.

Jump to

Keyboard shortcuts

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