queuing

package
v0.0.0-...-f0435bf Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KafkaState kafkaState

Functions

func InitializeKafka

func InitializeKafka(nodeList []string, cliContext context.CLIContext)

func NewKafkaMsgFromRest

func NewKafkaMsgFromRest(msg sdk.Msg, ticketID TicketID, baseRequest rest.BaseReq, cliCtx context.CLIContext) 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(cliContext context.CLIContext, router *mux.Router)

func SendToKafka

func SendToKafka(kafkaMsg kafkaMsg, codec *codec.Codec) []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