ogiconsumer

package
v0.0.0-...-6483e35 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConsumerPluginPath = golenv.OverrideIfEnv("CONSUMER_PLUGIN_PATH", "./consumer.so")
)
View Source
var (
	ConsumerType = golenv.OverrideIfEnv("CONSUMER_TYPE", "tcp-server")
)

Functions

func Consume

func Consume()

Types

type Consumer

type Consumer interface {
	Consume()
}

func NewConsumerPlugin

func NewConsumerPlugin() Consumer

func NewTCPServer

func NewTCPServer() Consumer

type ConsumerPlugin

type ConsumerPlugin struct {
	Name        string
	ConsumeFunc plugin.Symbol
}

func (*ConsumerPlugin) Consume

func (plugin *ConsumerPlugin) Consume()

type NewConsumerFunc

type NewConsumerFunc func() Consumer

type TCPServer

type TCPServer struct {
	Port string
}

func (*TCPServer) Consume

func (t *TCPServer) Consume()

func (*TCPServer) Start

func (t *TCPServer) Start()

func (*TCPServer) Transform

func (t *TCPServer) Transform(lyne string)

Jump to

Keyboard shortcuts

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