ingest

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adaptable

type Adaptable interface {
	Message() string
	SenderID() string
	Time() time.Time
	RequestID() string
}

Adaptable matches both protocol.Request and protocol.Reply

type Framework

type Framework interface {
	Configuration() *config.Config
	MiddlewareServers() (servers srvcache.Servers, err error)
	NewRequestFromTransportJSON(payload []byte, skipvalidate bool) (msg protocol.Request, err error)
	NewReplyFromTransportJSON(payload []byte, skipvalidate bool) (msg protocol.Reply, err error)
}

type NatsIngest

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

func New

func New(name string, work chan Adaptable, fw Framework, logger *log.Entry) ([]*NatsIngest, error)

func (*NatsIngest) Connect

func (na *NatsIngest) Connect(ctx context.Context, cm choria.ConnectionManager) error

func (*NatsIngest) Receiver

func (na *NatsIngest) Receiver(ctx context.Context, wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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