importer

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCorrelationId

func GenerateCorrelationId(n int) string

Types

type Dispatcher

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

func NewDispatcher

func NewDispatcher(ctx context.Context, importer string, stream ImportStream) *Dispatcher

func (*Dispatcher) Send

func (*Dispatcher) Start

func (mng *Dispatcher) Start()

func (*Dispatcher) Stop

func (mng *Dispatcher) Stop()

type ImportStream

type ImportStream interface {
	Receive() (*customerv1.ImportSessionResponse, error)
	Send(*customerv1.ImportSessionRequest) error
	CloseRequest() error
	CloseResponse() error
}

type Manager

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

func NewManager

func NewManager(ctx context.Context, importer string, stream ImportStream) (*Manager, error)

func (*Manager) Stop

func (mng *Manager) Stop() error

func (*Manager) UpsertCustomerByRef

func (mng *Manager) UpsertCustomerByRef(interalReference string, customer *customerv1.Customer, extra map[string]interface{}) error

Jump to

Keyboard shortcuts

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