queuing

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KafkaState kafkaState

Functions

func InitializeKafka

func InitializeKafka(nodeList []string, context client.Context)

func NewKafkaMsgFromRest

func NewKafkaMsgFromRest(msg sdk.Msg, ticketID TicketID, baseRequest rest.BaseReq, context client.Context) kafkaMsg

NewKafkaMsgFromRest : makes a msg to send to kafka queue

func NewKafkaState

func NewKafkaState(nodeList []string) *kafkaState

NewKafkaState : returns a kafka state

func RegisterRoutes

func RegisterRoutes(context client.Context, router *mux.Router)

func SendToKafka

func SendToKafka(kafkaMsg kafkaMsg, legacyAmino *codec.LegacyAmino) []byte

SendToKafka : handles sending message to kafka

Types

type TicketID

type TicketID string

TicketID : is a type that implements string

Jump to

Keyboard shortcuts

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