bundle

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PublisherKey = "transport.amqp.publisher"
View Source
const SubscriberKey = "transport.amqp.subscriber"

Variables

This section is empty.

Functions

func InitializePublisher

func InitializePublisher() (*publisher, error)

func InitializeSubscriber

func InitializeSubscriber() (*subscriber, error)

func PublisherName

func PublisherName(topic string) string

func SubscriberFileName

func SubscriberFileName(topic string) string

SubscriberFileName assembles the target .go file into which the handler is going to be generated.

func SubscriberHandlerName

func SubscriberHandlerName(topic string) string

SubscriberHandlerName returns the handler name of the subscriber based on the subscription topic The topic 'user.created' will be handled by the 'UserCreatedSubscriber'

Types

type MySQLDatastore

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

type SubscriberConfiguration

type SubscriberConfiguration struct {
	RabbitMQ    rabbitmq.Subscription
	HandlerName string `json:"handler_name" mapstructure:"handler_name"`
	Protobuf    struct {
		GoModule    string `json:"go_module" mapstructure:"go_module"`
		MessageName string `json:"message_name" mapstructure:"message_name"`
	}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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