Documentation ¶
Index ¶
- Variables
- func Decode(data []byte, c interface{}) (err error)
- func EnvOf(str ...string) []string
- func HeaderGet(h Header, name string) string
- type CfgMap
- type Command
- type Commands
- type Event
- type EventType
- type Flags
- type Handler
- type Header
- type Healthy
- type L
- type M
- type MiddleNext
- type Middleware
- type Publisher
- type Request
- type Response
- type Strs
- type Subscriber
- type Vars
- type WatchResp
- type Watcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EventType_name = map[int32]string{ 0: "UNKNOWN", 1: "CREATE", 2: "UPDATE", 3: "DELETE", } EventType_value = map[string]int32{ "UNKNOWN": 0, "CREATE": 1, "UPDATE": 2, "DELETE": 3, } )
Enum value maps for EventType.
View Source
var File_types_event_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Event ¶
type Event struct { // Key sets the key of the message for routing policy Key string // Payload for the message Payload []byte // Properties attach application defined properties on the message Properties map[string]string }
Event is an abstraction for all messages that are sent to queue or received from queue.
type EventType ¶
type EventType int32
func (EventType) Descriptor ¶
func (EventType) Descriptor() protoreflect.EnumDescriptor
func (EventType) EnumDescriptor
deprecated
func (EventType) Number ¶
func (x EventType) Number() protoreflect.EnumNumber
func (EventType) Type ¶
func (EventType) Type() protoreflect.EnumType
type Handler ¶
Handler is a callback function that processes messages delivered to asynchronous subscribers.
type MiddleNext ¶
type Middleware ¶
type Middleware func(next MiddleNext) MiddleNext
type Request ¶
type Request interface { // Client server or client Client() bool // Kind [http|grpc...] Kind() string // Service name requested Service() string // Method The action requested Method() string // Endpoint name requested Endpoint() string // ContentType Content type provided ContentType() string // Header of the request Header() Header // Codec The encoded message Codec() encoding.Codec // Payload is the decoded value Payload() interface{} // Read the encode request body Read() ([]byte, error) // Stream Indicates whether it's a stream Stream() bool }
Request is a synchronous request interface
type Subscriber ¶
Subscriber is an abstraction for receiving messages from queue.
Click to show internal directories.
Click to hide internal directories.