config

package
v0.0.0-...-d2cf722 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Configuration represent the variable of configuration model
	Configuration = &ConfigurationModel{}
)

Functions

func InitKafkaConsumer

func InitKafkaConsumer() (sarama.Consumer, error)

InitKafkaConsumer will create a variable that represent the sarama.Consumer

Types

type ConfigurationModel

type ConfigurationModel struct {
	Kafka struct {
		Addr string `json:"addr"`
	} `json:"kafka"`
}

ConfigurationModel represent the configuration model

Jump to

Keyboard shortcuts

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