Documentation ¶
Index ¶
- Constants
- type GetHostsToTrace
- type GetHostsToTraceDefault
- func (o *GetHostsToTraceDefault) SetPayload(payload *models.APIResponse)
- func (o *GetHostsToTraceDefault) SetStatusCode(code int)
- func (o *GetHostsToTraceDefault) WithPayload(payload *models.APIResponse) *GetHostsToTraceDefault
- func (o *GetHostsToTraceDefault) WithStatusCode(code int) *GetHostsToTraceDefault
- func (o *GetHostsToTraceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetHostsToTraceHandler
- type GetHostsToTraceHandlerFunc
- type GetHostsToTraceOK
- type GetHostsToTraceOKBody
- type GetHostsToTraceParams
- type GetHostsToTraceURL
- func (o *GetHostsToTraceURL) Build() (*url.URL, error)
- func (o *GetHostsToTraceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetHostsToTraceURL) Must(u *url.URL, err error) *url.URL
- func (o *GetHostsToTraceURL) SetBasePath(bp string)
- func (o *GetHostsToTraceURL) String() string
- func (o *GetHostsToTraceURL) StringFull(scheme, host string) string
- func (o *GetHostsToTraceURL) WithBasePath(bp string) *GetHostsToTraceURL
- type TraceSamplingManagerAPI
- func (o *TraceSamplingManagerAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *TraceSamplingManagerAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *TraceSamplingManagerAPI) Authorizer() runtime.Authorizer
- func (o *TraceSamplingManagerAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *TraceSamplingManagerAPI) Context() *middleware.Context
- func (o *TraceSamplingManagerAPI) DefaultConsumes() string
- func (o *TraceSamplingManagerAPI) DefaultProduces() string
- func (o *TraceSamplingManagerAPI) Formats() strfmt.Registry
- func (o *TraceSamplingManagerAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *TraceSamplingManagerAPI) Init()
- func (o *TraceSamplingManagerAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *TraceSamplingManagerAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *TraceSamplingManagerAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *TraceSamplingManagerAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *TraceSamplingManagerAPI) Serve(builder middleware.Builder) http.Handler
- func (o *TraceSamplingManagerAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *TraceSamplingManagerAPI) SetDefaultConsumes(mediaType string)
- func (o *TraceSamplingManagerAPI) SetDefaultProduces(mediaType string)
- func (o *TraceSamplingManagerAPI) SetSpec(spec *loads.Document)
- func (o *TraceSamplingManagerAPI) UseRedoc()
- func (o *TraceSamplingManagerAPI) UseSwaggerUI()
- func (o *TraceSamplingManagerAPI) Validate() error
Constants ¶
const GetHostsToTraceOKCode int = 200
GetHostsToTraceOKCode is the HTTP code returned for type GetHostsToTraceOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetHostsToTrace ¶
type GetHostsToTrace struct { Context *middleware.Context Handler GetHostsToTraceHandler }
GetHostsToTrace swagger:route GET /hostsToTrace getHostsToTrace
Get List of hosts to trace
func NewGetHostsToTrace ¶
func NewGetHostsToTrace(ctx *middleware.Context, handler GetHostsToTraceHandler) *GetHostsToTrace
NewGetHostsToTrace creates a new http.Handler for the get hosts to trace operation
func (*GetHostsToTrace) ServeHTTP ¶
func (o *GetHostsToTrace) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetHostsToTraceDefault ¶
type GetHostsToTraceDefault struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` // contains filtered or unexported fields }
GetHostsToTraceDefault unknown error
swagger:response getHostsToTraceDefault
func NewGetHostsToTraceDefault ¶
func NewGetHostsToTraceDefault(code int) *GetHostsToTraceDefault
NewGetHostsToTraceDefault creates GetHostsToTraceDefault with default headers values
func (*GetHostsToTraceDefault) SetPayload ¶
func (o *GetHostsToTraceDefault) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get hosts to trace default response
func (*GetHostsToTraceDefault) SetStatusCode ¶
func (o *GetHostsToTraceDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get hosts to trace default response
func (*GetHostsToTraceDefault) WithPayload ¶
func (o *GetHostsToTraceDefault) WithPayload(payload *models.APIResponse) *GetHostsToTraceDefault
WithPayload adds the payload to the get hosts to trace default response
func (*GetHostsToTraceDefault) WithStatusCode ¶
func (o *GetHostsToTraceDefault) WithStatusCode(code int) *GetHostsToTraceDefault
WithStatusCode adds the status to the get hosts to trace default response
func (*GetHostsToTraceDefault) WriteResponse ¶
func (o *GetHostsToTraceDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHostsToTraceHandler ¶
type GetHostsToTraceHandler interface {
Handle(GetHostsToTraceParams) middleware.Responder
}
GetHostsToTraceHandler interface for that can handle valid get hosts to trace params
type GetHostsToTraceHandlerFunc ¶
type GetHostsToTraceHandlerFunc func(GetHostsToTraceParams) middleware.Responder
GetHostsToTraceHandlerFunc turns a function with the right signature into a get hosts to trace handler
func (GetHostsToTraceHandlerFunc) Handle ¶
func (fn GetHostsToTraceHandlerFunc) Handle(params GetHostsToTraceParams) middleware.Responder
Handle executing the request and returning a response
type GetHostsToTraceOK ¶
type GetHostsToTraceOK struct { /* In: Body */ Payload *GetHostsToTraceOKBody `json:"body,omitempty"` }
GetHostsToTraceOK Success
swagger:response getHostsToTraceOK
func NewGetHostsToTraceOK ¶
func NewGetHostsToTraceOK() *GetHostsToTraceOK
NewGetHostsToTraceOK creates GetHostsToTraceOK with default headers values
func (*GetHostsToTraceOK) SetPayload ¶
func (o *GetHostsToTraceOK) SetPayload(payload *GetHostsToTraceOKBody)
SetPayload sets the payload to the get hosts to trace o k response
func (*GetHostsToTraceOK) WithPayload ¶
func (o *GetHostsToTraceOK) WithPayload(payload *GetHostsToTraceOKBody) *GetHostsToTraceOK
WithPayload adds the payload to the get hosts to trace o k response
func (*GetHostsToTraceOK) WriteResponse ¶
func (o *GetHostsToTraceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetHostsToTraceOKBody ¶
type GetHostsToTraceOKBody struct { // List of hosts to trace in the format of hostname:port Hosts []string `json:"hosts"` }
GetHostsToTraceOKBody get hosts to trace o k body
swagger:model GetHostsToTraceOKBody
func (*GetHostsToTraceOKBody) ContextValidate ¶
ContextValidate validates this get hosts to trace o k body based on context it is used
func (*GetHostsToTraceOKBody) MarshalBinary ¶
func (o *GetHostsToTraceOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetHostsToTraceOKBody) UnmarshalBinary ¶
func (o *GetHostsToTraceOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetHostsToTraceParams ¶
GetHostsToTraceParams contains all the bound params for the get hosts to trace operation typically these are obtained from a http.Request
swagger:parameters GetHostsToTrace
func NewGetHostsToTraceParams ¶
func NewGetHostsToTraceParams() GetHostsToTraceParams
NewGetHostsToTraceParams creates a new GetHostsToTraceParams object
There are no default values defined in the spec.
func (*GetHostsToTraceParams) BindRequest ¶
func (o *GetHostsToTraceParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetHostsToTraceParams() beforehand.
type GetHostsToTraceURL ¶
type GetHostsToTraceURL struct {
// contains filtered or unexported fields
}
GetHostsToTraceURL generates an URL for the get hosts to trace operation
func (*GetHostsToTraceURL) Build ¶
func (o *GetHostsToTraceURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetHostsToTraceURL) BuildFull ¶
func (o *GetHostsToTraceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetHostsToTraceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetHostsToTraceURL) SetBasePath ¶
func (o *GetHostsToTraceURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetHostsToTraceURL) String ¶
func (o *GetHostsToTraceURL) String() string
String returns the string representation of the path with query string
func (*GetHostsToTraceURL) StringFull ¶
func (o *GetHostsToTraceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetHostsToTraceURL) WithBasePath ¶
func (o *GetHostsToTraceURL) WithBasePath(bp string) *GetHostsToTraceURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type TraceSamplingManagerAPI ¶
type TraceSamplingManagerAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator // APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator // BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator // JSONConsumer registers a consumer for the following mime types: // - application/json JSONConsumer runtime.Consumer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // GetHostsToTraceHandler sets the operation handler for the get hosts to trace operation GetHostsToTraceHandler GetHostsToTraceHandler // ServeError is called when an error is received, there is a default handler // but you can set your own with this ServeError func(http.ResponseWriter, *http.Request, error) // PreServerShutdown is called before the HTTP(S) server is shutdown // This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic PreServerShutdown func() // ServerShutdown is called when the HTTP(S) server is shut down and done // handling all active connections and does not accept connections any more ServerShutdown func() // Custom command line argument groups with their descriptions CommandLineOptionsGroups []swag.CommandLineOptionsGroup // User defined logger function. Logger func(string, ...interface{}) // contains filtered or unexported fields }
TraceSamplingManagerAPI the trace sampling manager API
func NewTraceSamplingManagerAPI ¶
func NewTraceSamplingManagerAPI(spec *loads.Document) *TraceSamplingManagerAPI
NewTraceSamplingManagerAPI creates a new TraceSamplingManager instance
func (*TraceSamplingManagerAPI) AddMiddlewareFor ¶
func (o *TraceSamplingManagerAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*TraceSamplingManagerAPI) AuthenticatorsFor ¶
func (o *TraceSamplingManagerAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*TraceSamplingManagerAPI) Authorizer ¶
func (o *TraceSamplingManagerAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*TraceSamplingManagerAPI) ConsumersFor ¶
func (o *TraceSamplingManagerAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*TraceSamplingManagerAPI) Context ¶
func (o *TraceSamplingManagerAPI) Context() *middleware.Context
Context returns the middleware context for the trace sampling manager API
func (*TraceSamplingManagerAPI) DefaultConsumes ¶
func (o *TraceSamplingManagerAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*TraceSamplingManagerAPI) DefaultProduces ¶
func (o *TraceSamplingManagerAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*TraceSamplingManagerAPI) Formats ¶
func (o *TraceSamplingManagerAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*TraceSamplingManagerAPI) HandlerFor ¶
func (o *TraceSamplingManagerAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*TraceSamplingManagerAPI) Init ¶
func (o *TraceSamplingManagerAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*TraceSamplingManagerAPI) ProducersFor ¶
func (o *TraceSamplingManagerAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*TraceSamplingManagerAPI) RegisterConsumer ¶
func (o *TraceSamplingManagerAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*TraceSamplingManagerAPI) RegisterFormat ¶
func (o *TraceSamplingManagerAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*TraceSamplingManagerAPI) RegisterProducer ¶
func (o *TraceSamplingManagerAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*TraceSamplingManagerAPI) Serve ¶
func (o *TraceSamplingManagerAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*TraceSamplingManagerAPI) ServeErrorFor ¶
func (o *TraceSamplingManagerAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*TraceSamplingManagerAPI) SetDefaultConsumes ¶
func (o *TraceSamplingManagerAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*TraceSamplingManagerAPI) SetDefaultProduces ¶
func (o *TraceSamplingManagerAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*TraceSamplingManagerAPI) SetSpec ¶
func (o *TraceSamplingManagerAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*TraceSamplingManagerAPI) UseRedoc ¶
func (o *TraceSamplingManagerAPI) UseRedoc()
UseRedoc for documentation at /docs
func (*TraceSamplingManagerAPI) UseSwaggerUI ¶
func (o *TraceSamplingManagerAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*TraceSamplingManagerAPI) Validate ¶
func (o *TraceSamplingManagerAPI) Validate() error
Validate validates the registrations in the TraceSamplingManagerAPI