service

package
v0.0.0-...-6bf298d Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service implements main analytics logic

func New

func New(chIn chan models.MsgTask, chOut chan models.MsgSMTP, wrk int) (*Service, error)

New creates a new auth service

func (*Service) Start

func (s *Service) Start(ctx context.Context) error

Start reads MsgTask from chanIn, composes MsgSMTP and sends them to chanOut. The number of simultaneously working go-routines is defined by Service.workers

Jump to

Keyboard shortcuts

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