service

package
v0.0.0-...-f52297a Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SenderPoolService

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

func (*SenderPoolService) Send

func (s *SenderPoolService) Send(_ context.Context, event interface{}) error

func (*SenderPoolService) Stop

func (s *SenderPoolService) Stop()

type SenderService

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

func (*SenderService) Send

func (s *SenderService) Send(_ context.Context, event interface{}) error

func (*SenderService) Stop

func (s *SenderService) Stop()

type Service

type Service interface {
	Send(ctx context.Context, event interface{}) error
	Stop()
}

func MakeSenderPoolServcie

func MakeSenderPoolServcie(adapter adapter.Adapter, numWorkers uint8, logger log.Logger) Service

func MakeSenderService

func MakeSenderService(adapter adapter.Adapter, logger log.Logger) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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