queuing

package
v0.3.1 Latest Latest
Warning

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

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

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