define

package
v0.0.0-...-d5b0b98 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTypeInternal = 1
	EventTypeExternal = 2
)
View Source
const (
	ProtocolTypeGRPCSend = "grpcSend"
	ProtocolTypeHTTPSend = "httpSend"

	ProtocolTypeGRPCInternalHandler = "grpcInternalHandler"
)
View Source
const (
	RepeatDuplicatePre       = "1"
	RepeatDuplicateCommitted = "2"
	RepeatDuplicatePreFirst  = "3"
	RepeatDuplicateGetErr    = "5"
	RepeatDuplicateSetErr    = "6"
)
View Source
const (
	KeyRepeatDuplicate = "evhub:processor:repeat:duplicate:%v"

	RepeatDuplicateTimeOut = 60
)
View Source
const (
	RepeatDuplicateScript = `` /* 464-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func TopicRepeatDuplicateKey

func TopicRepeatDuplicateKey(dispatcherEventID string) string

TopicRepeatDuplicateKey returns the duplicate key for a topic

Types

type ConnectorType

type ConnectorType string

ConnectorType connector type

const (
	ConnectorTypePulsar ConnectorType = "pulsar"
	ConnectorTypeNsq    ConnectorType = "nsq"

	ConnectorTypeKafka ConnectorType = "kafka"
)

type EndPoint

type EndPoint struct {
	Addr    string
	Timeout time.Duration
}

EndPoint information about the address

type EventType

type EventType int

EventType event type

type InternalHandlerReq

type InternalHandlerReq struct {
	Msg      *comm.EvhubMsg
	EndPoint *EndPoint
}

InternalHandlerReq is req of the internal handler

type InternalHandlerRsp

type InternalHandlerRsp struct {
}

InternalHandlerRsp is rsp of the internal handler

type SendReq

type SendReq struct {
	DispatchID  string
	EventID     string
	Event       *comm.Event
	RetryTimes  uint32
	RepeatTimes uint32
	PassBack    []byte
	EndPoint    *EndPoint
}

SendReq is req of the dispatcher

type SendRsp

type SendRsp struct {
	PassBack []byte
}

SendRsp is rsp of the dispatcher

Jump to

Keyboard shortcuts

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