publish

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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