Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendJSONError ¶
func SendJSONError(w http.ResponseWriter, err *api.Error) error
SendJSONError sends an HTTP response containing a JSON error
Types ¶
type Options ¶
type Options struct {
Port int
NatsURL string
ClientID string
NoOfConcurrentRequests int
NatsStreamingClusterID string
TraceRequests bool
TraceAPIURL string
TraceHostPort string
ServiceName string
TraceDebug bool
OperationName string
}
func DefaultOptions ¶
func DefaultOptions() *Options
func ParseFlags ¶
func ParseFlags() *Options
Click to show internal directories.
Click to hide internal directories.