gossiper_service

package
v0.0.0-...-b107f7d Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedSourceDriver      = errors.New("unsupported source driver")
	ErrUnsupportedDestinationDriver = errors.New("unsupported destination driver")
)

Functions

This section is empty.

Types

type Destination

type Destination interface {
	Push(interface{}) error
	Close() error
}

func NewDestination

func NewDestination(name string, args ...interface{}) (Destination, error)

func NewFlowDestination

func NewFlowDestination(args ...interface{}) (Destination, error)

type DestinationFactory

type DestinationFactory func(...interface{}) (Destination, error)

type FlowDestination

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

func (*FlowDestination) Close

func (d *FlowDestination) Close() error

func (*FlowDestination) Push

func (d *FlowDestination) Push(data interface{}) error

type FlowDestinationOption

type FlowDestinationOption struct {
	FlowName string
}

type GossiperService

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

func (*GossiperService) InitModuleService

func (s *GossiperService) InitModuleService(m *component.Module) error

type RedisStreamSource

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

func (*RedisStreamSource) Close

func (s *RedisStreamSource) Close() error

func (*RedisStreamSource) Pull

func (s *RedisStreamSource) Pull() (map[string]interface{}, error)

type RedisStreamSourceOption

type RedisStreamSourceOption struct {
	Addr     string
	Db       int
	Password string
	Topic    string
	Nonce    string
}

type Source

type Source interface {
	Pull() (map[string]interface{}, error)
	Close() error
}

func NewRedisStreamSource

func NewRedisStreamSource(args ...interface{}) (Source, error)

func NewSource

func NewSource(name string, args ...interface{}) (Source, error)

type SourceFactory

type SourceFactory func(...interface{}) (Source, error)

Jump to

Keyboard shortcuts

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