Documentation ¶
Index ¶
- Constants
- type ListMessages
- type ListMessagesHandler
- type ListMessagesHandlerFunc
- type ListMessagesInternalServerError
- type ListMessagesNotFound
- type ListMessagesOK
- func (o *ListMessagesOK) SetLink(link string)
- func (o *ListMessagesOK) SetPayload(payload []*models.MessageEvent)
- func (o *ListMessagesOK) SetXSentryRateLimitLimit(xSentryRateLimitLimit int64)
- func (o *ListMessagesOK) SetXSentryRateLimitRemaining(xSentryRateLimitRemaining int64)
- func (o *ListMessagesOK) SetXSentryRateLimitReset(xSentryRateLimitReset int64)
- func (o *ListMessagesOK) WithLink(link string) *ListMessagesOK
- func (o *ListMessagesOK) WithPayload(payload []*models.MessageEvent) *ListMessagesOK
- func (o *ListMessagesOK) WithXSentryRateLimitLimit(xSentryRateLimitLimit int64) *ListMessagesOK
- func (o *ListMessagesOK) WithXSentryRateLimitRemaining(xSentryRateLimitRemaining int64) *ListMessagesOK
- func (o *ListMessagesOK) WithXSentryRateLimitReset(xSentryRateLimitReset int64) *ListMessagesOK
- func (o *ListMessagesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListMessagesParams
- type ListMessagesTooManyRequests
- func (o *ListMessagesTooManyRequests) SetRetryAfter(retryAfter int64)
- func (o *ListMessagesTooManyRequests) SetXSentryRateLimitLimit(xSentryRateLimitLimit int64)
- func (o *ListMessagesTooManyRequests) SetXSentryRateLimitReset(xSentryRateLimitReset int64)
- func (o *ListMessagesTooManyRequests) SetXSentryRateLimits(xSentryRateLimits string)
- func (o *ListMessagesTooManyRequests) WithRetryAfter(retryAfter int64) *ListMessagesTooManyRequests
- func (o *ListMessagesTooManyRequests) WithXSentryRateLimitLimit(xSentryRateLimitLimit int64) *ListMessagesTooManyRequests
- func (o *ListMessagesTooManyRequests) WithXSentryRateLimitReset(xSentryRateLimitReset int64) *ListMessagesTooManyRequests
- func (o *ListMessagesTooManyRequests) WithXSentryRateLimits(xSentryRateLimits string) *ListMessagesTooManyRequests
- func (o *ListMessagesTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListMessagesURL
- func (o *ListMessagesURL) Build() (*url.URL, error)
- func (o *ListMessagesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListMessagesURL) Must(u *url.URL, err error) *url.URL
- func (o *ListMessagesURL) SetBasePath(bp string)
- func (o *ListMessagesURL) String() string
- func (o *ListMessagesURL) StringFull(scheme, host string) string
- func (o *ListMessagesURL) WithBasePath(bp string) *ListMessagesURL
Constants ¶
const ListMessagesInternalServerErrorCode int = 500
ListMessagesInternalServerErrorCode is the HTTP code returned for type ListMessagesInternalServerError
const ListMessagesNotFoundCode int = 404
ListMessagesNotFoundCode is the HTTP code returned for type ListMessagesNotFound
const ListMessagesOKCode int = 200
ListMessagesOKCode is the HTTP code returned for type ListMessagesOK
const ListMessagesTooManyRequestsCode int = 429
ListMessagesTooManyRequestsCode is the HTTP code returned for type ListMessagesTooManyRequests
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListMessages ¶
type ListMessages struct { Context *middleware.Context Handler ListMessagesHandler }
ListMessages swagger:route GET /projects/{projectId}/messages messages listMessages
List of messages
func NewListMessages ¶
func NewListMessages(ctx *middleware.Context, handler ListMessagesHandler) *ListMessages
NewListMessages creates a new http.Handler for the list messages operation
func (*ListMessages) ServeHTTP ¶
func (o *ListMessages) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListMessagesHandler ¶
type ListMessagesHandler interface {
Handle(ListMessagesParams) middleware.Responder
}
ListMessagesHandler interface for that can handle valid list messages params
type ListMessagesHandlerFunc ¶
type ListMessagesHandlerFunc func(ListMessagesParams) middleware.Responder
ListMessagesHandlerFunc turns a function with the right signature into a list messages handler
func (ListMessagesHandlerFunc) Handle ¶
func (fn ListMessagesHandlerFunc) Handle(params ListMessagesParams) middleware.Responder
Handle executing the request and returning a response
type ListMessagesInternalServerError ¶
type ListMessagesInternalServerError struct { }
ListMessagesInternalServerError Internal error
swagger:response listMessagesInternalServerError
func NewListMessagesInternalServerError ¶
func NewListMessagesInternalServerError() *ListMessagesInternalServerError
NewListMessagesInternalServerError creates ListMessagesInternalServerError with default headers values
func (*ListMessagesInternalServerError) WriteResponse ¶
func (o *ListMessagesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListMessagesNotFound ¶
type ListMessagesNotFound struct { }
ListMessagesNotFound Error not found
swagger:response listMessagesNotFound
func NewListMessagesNotFound ¶
func NewListMessagesNotFound() *ListMessagesNotFound
NewListMessagesNotFound creates ListMessagesNotFound with default headers values
func (*ListMessagesNotFound) WriteResponse ¶
func (o *ListMessagesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListMessagesOK ¶
type ListMessagesOK struct { /*Link header containing pagination information (previous and next pages). https://docs.gitlab.com/ee/api/#pagination-link-header */ Link string `json:"Link"` /*The maximum number of requests allowed within the window. */ XSentryRateLimitLimit int64 `json:"X-Sentry-Rate-Limit-Limit"` /*The number of requests this caller has left on this endpoint within the current window. */ XSentryRateLimitRemaining int64 `json:"X-Sentry-Rate-Limit-Remaining"` /*The time when the next rate limit window begins and the count resets, measured in UTC seconds from epoch. */ XSentryRateLimitReset int64 `json:"X-Sentry-Rate-Limit-Reset"` /* In: Body */ Payload []*models.MessageEvent `json:"body,omitempty"` }
ListMessagesOK Success
swagger:response listMessagesOK
func NewListMessagesOK ¶
func NewListMessagesOK() *ListMessagesOK
NewListMessagesOK creates ListMessagesOK with default headers values
func (*ListMessagesOK) SetLink ¶
func (o *ListMessagesOK) SetLink(link string)
SetLink sets the link to the list messages o k response
func (*ListMessagesOK) SetPayload ¶
func (o *ListMessagesOK) SetPayload(payload []*models.MessageEvent)
SetPayload sets the payload to the list messages o k response
func (*ListMessagesOK) SetXSentryRateLimitLimit ¶
func (o *ListMessagesOK) SetXSentryRateLimitLimit(xSentryRateLimitLimit int64)
SetXSentryRateLimitLimit sets the xSentryRateLimitLimit to the list messages o k response
func (*ListMessagesOK) SetXSentryRateLimitRemaining ¶
func (o *ListMessagesOK) SetXSentryRateLimitRemaining(xSentryRateLimitRemaining int64)
SetXSentryRateLimitRemaining sets the xSentryRateLimitRemaining to the list messages o k response
func (*ListMessagesOK) SetXSentryRateLimitReset ¶
func (o *ListMessagesOK) SetXSentryRateLimitReset(xSentryRateLimitReset int64)
SetXSentryRateLimitReset sets the xSentryRateLimitReset to the list messages o k response
func (*ListMessagesOK) WithLink ¶
func (o *ListMessagesOK) WithLink(link string) *ListMessagesOK
WithLink adds the link to the list messages o k response
func (*ListMessagesOK) WithPayload ¶
func (o *ListMessagesOK) WithPayload(payload []*models.MessageEvent) *ListMessagesOK
WithPayload adds the payload to the list messages o k response
func (*ListMessagesOK) WithXSentryRateLimitLimit ¶
func (o *ListMessagesOK) WithXSentryRateLimitLimit(xSentryRateLimitLimit int64) *ListMessagesOK
WithXSentryRateLimitLimit adds the xSentryRateLimitLimit to the list messages o k response
func (*ListMessagesOK) WithXSentryRateLimitRemaining ¶
func (o *ListMessagesOK) WithXSentryRateLimitRemaining(xSentryRateLimitRemaining int64) *ListMessagesOK
WithXSentryRateLimitRemaining adds the xSentryRateLimitRemaining to the list messages o k response
func (*ListMessagesOK) WithXSentryRateLimitReset ¶
func (o *ListMessagesOK) WithXSentryRateLimitReset(xSentryRateLimitReset int64) *ListMessagesOK
WithXSentryRateLimitReset adds the xSentryRateLimitReset to the list messages o k response
func (*ListMessagesOK) WriteResponse ¶
func (o *ListMessagesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListMessagesParams ¶
type ListMessagesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Number of entries to return Maximum: 100 Minimum: 1 In: query Default: 20 */ Limit *int64 /*ID of the project where the message was created Required: true In: path */ ProjectID uint64 }
ListMessagesParams contains all the bound params for the list messages operation typically these are obtained from a http.Request
swagger:parameters listMessages
func NewListMessagesParams ¶
func NewListMessagesParams() ListMessagesParams
NewListMessagesParams creates a new ListMessagesParams object with the default values initialized.
func (*ListMessagesParams) BindRequest ¶
func (o *ListMessagesParams) 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 NewListMessagesParams() beforehand.
type ListMessagesTooManyRequests ¶
type ListMessagesTooManyRequests struct { /*Number of seconds after which requests will be permitted again */ RetryAfter int64 `json:"Retry-After"` /*The maximum number of requests allowed within the window. */ XSentryRateLimitLimit int64 `json:"X-Sentry-Rate-Limit-Limit"` /*The time when the next rate limit window begins and the count resets, measured in UTC seconds from epoch. */ XSentryRateLimitReset int64 `json:"X-Sentry-Rate-Limit-Reset"` /*Detailed list of all rate limits that apply per data category, with seconds remaining untill they reset */ XSentryRateLimits string `json:"X-Sentry-Rate-Limits"` }
ListMessagesTooManyRequests Resource limits exceeded
swagger:response listMessagesTooManyRequests
func NewListMessagesTooManyRequests ¶
func NewListMessagesTooManyRequests() *ListMessagesTooManyRequests
NewListMessagesTooManyRequests creates ListMessagesTooManyRequests with default headers values
func (*ListMessagesTooManyRequests) SetRetryAfter ¶
func (o *ListMessagesTooManyRequests) SetRetryAfter(retryAfter int64)
SetRetryAfter sets the retryAfter to the list messages too many requests response
func (*ListMessagesTooManyRequests) SetXSentryRateLimitLimit ¶
func (o *ListMessagesTooManyRequests) SetXSentryRateLimitLimit(xSentryRateLimitLimit int64)
SetXSentryRateLimitLimit sets the xSentryRateLimitLimit to the list messages too many requests response
func (*ListMessagesTooManyRequests) SetXSentryRateLimitReset ¶
func (o *ListMessagesTooManyRequests) SetXSentryRateLimitReset(xSentryRateLimitReset int64)
SetXSentryRateLimitReset sets the xSentryRateLimitReset to the list messages too many requests response
func (*ListMessagesTooManyRequests) SetXSentryRateLimits ¶
func (o *ListMessagesTooManyRequests) SetXSentryRateLimits(xSentryRateLimits string)
SetXSentryRateLimits sets the xSentryRateLimits to the list messages too many requests response
func (*ListMessagesTooManyRequests) WithRetryAfter ¶
func (o *ListMessagesTooManyRequests) WithRetryAfter(retryAfter int64) *ListMessagesTooManyRequests
WithRetryAfter adds the retryAfter to the list messages too many requests response
func (*ListMessagesTooManyRequests) WithXSentryRateLimitLimit ¶
func (o *ListMessagesTooManyRequests) WithXSentryRateLimitLimit(xSentryRateLimitLimit int64) *ListMessagesTooManyRequests
WithXSentryRateLimitLimit adds the xSentryRateLimitLimit to the list messages too many requests response
func (*ListMessagesTooManyRequests) WithXSentryRateLimitReset ¶
func (o *ListMessagesTooManyRequests) WithXSentryRateLimitReset(xSentryRateLimitReset int64) *ListMessagesTooManyRequests
WithXSentryRateLimitReset adds the xSentryRateLimitReset to the list messages too many requests response
func (*ListMessagesTooManyRequests) WithXSentryRateLimits ¶
func (o *ListMessagesTooManyRequests) WithXSentryRateLimits(xSentryRateLimits string) *ListMessagesTooManyRequests
WithXSentryRateLimits adds the xSentryRateLimits to the list messages too many requests response
func (*ListMessagesTooManyRequests) WriteResponse ¶
func (o *ListMessagesTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListMessagesURL ¶
type ListMessagesURL struct { ProjectID uint64 Limit *int64 // contains filtered or unexported fields }
ListMessagesURL generates an URL for the list messages operation
func (*ListMessagesURL) Build ¶
func (o *ListMessagesURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListMessagesURL) BuildFull ¶
func (o *ListMessagesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListMessagesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListMessagesURL) SetBasePath ¶
func (o *ListMessagesURL) 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 (*ListMessagesURL) String ¶
func (o *ListMessagesURL) String() string
String returns the string representation of the path with query string
func (*ListMessagesURL) StringFull ¶
func (o *ListMessagesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListMessagesURL) WithBasePath ¶
func (o *ListMessagesURL) WithBasePath(bp string) *ListMessagesURL
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