Documentation
¶
Index ¶
Constants ¶
View Source
const ( Director = Target("director") HealthMonitor = Target("hm") )
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 Response ¶
type Response interface {
// Shorten attempts to return a response
// that can be serialized in a smaller size.
Shorten() Response
}
func NewExceptionResponse ¶
func NewValueResponse ¶
func NewValueResponse(value interface{}) Response
Click to show internal directories.
Click to hide internal directories.