infrastructure

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boot

func Boot(ctx context.Context) (<-chan struct{}, error)

Prepares infrastructure layer

func GetLogger

func GetLogger() *zerolog.Logger

Types

type PubSub

type PubSub struct {
	message.Publisher
	message.Subscriber
}

func GetPubSub

func GetPubSub() *PubSub

type PubSubConfig added in v0.1.1

type PubSubConfig struct {
	SaramaConfig  *sarama.Config
	Brokers       []string `config:"pub-sub-brokers,required"`
	ConsumerGroup string   `config:"pub-sub-consumer-group"`
}

Jump to

Keyboard shortcuts

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