sender

package
v1.3.16 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Sock string

	Schema  string
	Host    string
	Timeout time.Duration

	BackoffInterval time.Duration
	RetryCount      int

	Logger logger.Logger
}

type HTTPSender

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

func (*HTTPSender) Send

func (s *HTTPSender) Send()

Send is an empty method to distinguish from other interfaces

func (*HTTPSender) Start

func (s *HTTPSender) Start()

func (*HTTPSender) Stop

func (s *HTTPSender) Stop()

type Sender

type Sender interface {
	Start()
	Stop()

	Send()
}

func NewSender

func NewSender(cfg Config, in chan *profile_models.ProfileInfo) Sender

Jump to

Keyboard shortcuts

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