profile

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ProfilingStartCreatedCode int = 201

ProfilingStartCreatedCode is the HTTP code returned for type ProfilingStartCreated

View Source
const ProfilingStopCreatedCode int = 201

ProfilingStopCreatedCode is the HTTP code returned for type ProfilingStopCreated

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfilingStart

type ProfilingStart struct {
	Context *middleware.Context
	Handler ProfilingStartHandler
}
ProfilingStart swagger:route POST /profiling/start Profile profilingStart

Start recording profile data

func NewProfilingStart

func NewProfilingStart(ctx *middleware.Context, handler ProfilingStartHandler) *ProfilingStart

NewProfilingStart creates a new http.Handler for the profiling start operation

func (*ProfilingStart) ServeHTTP

func (o *ProfilingStart) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ProfilingStartCreated

type ProfilingStartCreated struct {

	/*
	  In: Body
	*/
	Payload *models.StartProfilingList `json:"body,omitempty"`
}

ProfilingStartCreated A successful response.

swagger:response profilingStartCreated

func NewProfilingStartCreated

func NewProfilingStartCreated() *ProfilingStartCreated

NewProfilingStartCreated creates ProfilingStartCreated with default headers values

func (*ProfilingStartCreated) SetPayload

func (o *ProfilingStartCreated) SetPayload(payload *models.StartProfilingList)

SetPayload sets the payload to the profiling start created response

func (*ProfilingStartCreated) WithPayload

WithPayload adds the payload to the profiling start created response

func (*ProfilingStartCreated) WriteResponse

func (o *ProfilingStartCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ProfilingStartDefault

type ProfilingStartDefault struct {

	/*
	  In: Body
	*/
	Payload *models.APIError `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ProfilingStartDefault Generic error response.

swagger:response profilingStartDefault

func NewProfilingStartDefault

func NewProfilingStartDefault(code int) *ProfilingStartDefault

NewProfilingStartDefault creates ProfilingStartDefault with default headers values

func (*ProfilingStartDefault) SetPayload

func (o *ProfilingStartDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the profiling start default response

func (*ProfilingStartDefault) SetStatusCode

func (o *ProfilingStartDefault) SetStatusCode(code int)

SetStatusCode sets the status to the profiling start default response

func (*ProfilingStartDefault) WithPayload

func (o *ProfilingStartDefault) WithPayload(payload *models.APIError) *ProfilingStartDefault

WithPayload adds the payload to the profiling start default response

func (*ProfilingStartDefault) WithStatusCode

func (o *ProfilingStartDefault) WithStatusCode(code int) *ProfilingStartDefault

WithStatusCode adds the status to the profiling start default response

func (*ProfilingStartDefault) WriteResponse

func (o *ProfilingStartDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ProfilingStartHandler

type ProfilingStartHandler interface {
	Handle(ProfilingStartParams, *models.Principal) middleware.Responder
}

ProfilingStartHandler interface for that can handle valid profiling start params

type ProfilingStartHandlerFunc

type ProfilingStartHandlerFunc func(ProfilingStartParams, *models.Principal) middleware.Responder

ProfilingStartHandlerFunc turns a function with the right signature into a profiling start handler

func (ProfilingStartHandlerFunc) Handle

Handle executing the request and returning a response

type ProfilingStartParams

type ProfilingStartParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *models.ProfilingStartRequest
}

ProfilingStartParams contains all the bound params for the profiling start operation typically these are obtained from a http.Request

swagger:parameters ProfilingStart

func NewProfilingStartParams

func NewProfilingStartParams() ProfilingStartParams

NewProfilingStartParams creates a new ProfilingStartParams object

There are no default values defined in the spec.

func (*ProfilingStartParams) BindRequest

func (o *ProfilingStartParams) 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 NewProfilingStartParams() beforehand.

type ProfilingStartURL

type ProfilingStartURL struct {
	// contains filtered or unexported fields
}

ProfilingStartURL generates an URL for the profiling start operation

func (*ProfilingStartURL) Build

func (o *ProfilingStartURL) Build() (*url.URL, error)

Build a url path and query string

func (*ProfilingStartURL) BuildFull

func (o *ProfilingStartURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ProfilingStartURL) Must

func (o *ProfilingStartURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ProfilingStartURL) SetBasePath

func (o *ProfilingStartURL) 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 (*ProfilingStartURL) String

func (o *ProfilingStartURL) String() string

String returns the string representation of the path with query string

func (*ProfilingStartURL) StringFull

func (o *ProfilingStartURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ProfilingStartURL) WithBasePath

func (o *ProfilingStartURL) WithBasePath(bp string) *ProfilingStartURL

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 ProfilingStop

type ProfilingStop struct {
	Context *middleware.Context
	Handler ProfilingStopHandler
}
ProfilingStop swagger:route POST /profiling/stop Profile profilingStop

Stop and download profile data

func NewProfilingStop

func NewProfilingStop(ctx *middleware.Context, handler ProfilingStopHandler) *ProfilingStop

NewProfilingStop creates a new http.Handler for the profiling stop operation

func (*ProfilingStop) ServeHTTP

func (o *ProfilingStop) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ProfilingStopCreated

type ProfilingStopCreated struct {

	/*
	  In: Body
	*/
	Payload io.ReadCloser `json:"body,omitempty"`
}

ProfilingStopCreated A successful response.

swagger:response profilingStopCreated

func NewProfilingStopCreated

func NewProfilingStopCreated() *ProfilingStopCreated

NewProfilingStopCreated creates ProfilingStopCreated with default headers values

func (*ProfilingStopCreated) SetPayload

func (o *ProfilingStopCreated) SetPayload(payload io.ReadCloser)

SetPayload sets the payload to the profiling stop created response

func (*ProfilingStopCreated) WithPayload

func (o *ProfilingStopCreated) WithPayload(payload io.ReadCloser) *ProfilingStopCreated

WithPayload adds the payload to the profiling stop created response

func (*ProfilingStopCreated) WriteResponse

func (o *ProfilingStopCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ProfilingStopDefault

type ProfilingStopDefault struct {

	/*
	  In: Body
	*/
	Payload *models.APIError `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ProfilingStopDefault Generic error response.

swagger:response profilingStopDefault

func NewProfilingStopDefault

func NewProfilingStopDefault(code int) *ProfilingStopDefault

NewProfilingStopDefault creates ProfilingStopDefault with default headers values

func (*ProfilingStopDefault) SetPayload

func (o *ProfilingStopDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the profiling stop default response

func (*ProfilingStopDefault) SetStatusCode

func (o *ProfilingStopDefault) SetStatusCode(code int)

SetStatusCode sets the status to the profiling stop default response

func (*ProfilingStopDefault) WithPayload

func (o *ProfilingStopDefault) WithPayload(payload *models.APIError) *ProfilingStopDefault

WithPayload adds the payload to the profiling stop default response

func (*ProfilingStopDefault) WithStatusCode

func (o *ProfilingStopDefault) WithStatusCode(code int) *ProfilingStopDefault

WithStatusCode adds the status to the profiling stop default response

func (*ProfilingStopDefault) WriteResponse

func (o *ProfilingStopDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ProfilingStopHandler

type ProfilingStopHandler interface {
	Handle(ProfilingStopParams, *models.Principal) middleware.Responder
}

ProfilingStopHandler interface for that can handle valid profiling stop params

type ProfilingStopHandlerFunc

type ProfilingStopHandlerFunc func(ProfilingStopParams, *models.Principal) middleware.Responder

ProfilingStopHandlerFunc turns a function with the right signature into a profiling stop handler

func (ProfilingStopHandlerFunc) Handle

Handle executing the request and returning a response

type ProfilingStopParams

type ProfilingStopParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

ProfilingStopParams contains all the bound params for the profiling stop operation typically these are obtained from a http.Request

swagger:parameters ProfilingStop

func NewProfilingStopParams

func NewProfilingStopParams() ProfilingStopParams

NewProfilingStopParams creates a new ProfilingStopParams object

There are no default values defined in the spec.

func (*ProfilingStopParams) BindRequest

func (o *ProfilingStopParams) 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 NewProfilingStopParams() beforehand.

type ProfilingStopURL

type ProfilingStopURL struct {
	// contains filtered or unexported fields
}

ProfilingStopURL generates an URL for the profiling stop operation

func (*ProfilingStopURL) Build

func (o *ProfilingStopURL) Build() (*url.URL, error)

Build a url path and query string

func (*ProfilingStopURL) BuildFull

func (o *ProfilingStopURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ProfilingStopURL) Must

func (o *ProfilingStopURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ProfilingStopURL) SetBasePath

func (o *ProfilingStopURL) 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 (*ProfilingStopURL) String

func (o *ProfilingStopURL) String() string

String returns the string representation of the path with query string

func (*ProfilingStopURL) StringFull

func (o *ProfilingStopURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ProfilingStopURL) WithBasePath

func (o *ProfilingStopURL) WithBasePath(bp string) *ProfilingStopURL

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

Jump to

Keyboard shortcuts

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