middlewares

package
v0.0.0-...-791dfb5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClientJWTmiddlewares

func SetClientJWTmiddlewares(g *echo.Group, role string)

SetClientJWTmiddlewares func

func SubmitKafkaPayload

func SubmitKafkaPayload(i interface{}, model string) (err error)

SubmitKafkaPayload submits payload to kafka

Types

type Covid19KafkaHandlers

type Covid19KafkaHandlers struct {
	KafkaConsumer     sarama.Consumer
	PartitionConsumer sarama.PartitionConsumer
}

Covid19KafkaHandlers type

func (*Covid19KafkaHandlers) Listen

func (k *Covid19KafkaHandlers) Listen() ([]byte, error)

Listen to kafka

func (*Covid19KafkaHandlers) SetPartitionConsumer

func (k *Covid19KafkaHandlers) SetPartitionConsumer(topic string) (err error)

SetPartitionConsumer func

Jump to

Keyboard shortcuts

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