Documentation
¶
Index ¶
Constants ¶
View Source
const ( Heartbeat = Topic("heartbeat") Alert = Topic("alert") Shutdown = Topic("shutdown") )
View Source
const (
UnlimitedResponseLength = -1
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommonEventFormat ¶
type CommonEventFormat interface {
ProduceHTTPRequestEventLog(*http.Request, int, string) (string, error)
ProduceNATSRequestEventLog(string, string, string, string, int, string, string) (string, error)
}
func NewCommonEventFormat ¶
func NewCommonEventFormat() CommonEventFormat
type Handler ¶
type Request ¶
type Request struct {
ReplyTo string `json:"reply_to"`
Method string
Payload []byte
ProtocolVersion ProtocolVersion `json:"protocol"`
}
func NewRequest ¶
func NewRequest(replyTo, method string, payload []byte, protocolVersion ProtocolVersion) Request
func PerformHandlerWithJSON ¶
Source Files
¶
- common_event_format.go
- handler_interface.go
- perform_handler_with_json.go
- request.go
- response.go
- target.go
- topic.go
Click to show internal directories.
Click to hide internal directories.