Documentation ¶
Index ¶
- Constants
- type IsDateWeekendHoliday
- type IsDateWeekendHolidayBadRequest
- type IsDateWeekendHolidayHandler
- type IsDateWeekendHolidayHandlerFunc
- type IsDateWeekendHolidayInternalServerError
- func (o *IsDateWeekendHolidayInternalServerError) SetPayload(payload *ghcmessages.Error)
- func (o *IsDateWeekendHolidayInternalServerError) WithPayload(payload *ghcmessages.Error) *IsDateWeekendHolidayInternalServerError
- func (o *IsDateWeekendHolidayInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type IsDateWeekendHolidayNotFound
- type IsDateWeekendHolidayOK
- func (o *IsDateWeekendHolidayOK) SetPayload(payload *ghcmessages.IsDateWeekendHolidayInfo)
- func (o *IsDateWeekendHolidayOK) WithPayload(payload *ghcmessages.IsDateWeekendHolidayInfo) *IsDateWeekendHolidayOK
- func (o *IsDateWeekendHolidayOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type IsDateWeekendHolidayParams
- type IsDateWeekendHolidayURL
- func (o *IsDateWeekendHolidayURL) Build() (*url.URL, error)
- func (o *IsDateWeekendHolidayURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *IsDateWeekendHolidayURL) Must(u *url.URL, err error) *url.URL
- func (o *IsDateWeekendHolidayURL) SetBasePath(bp string)
- func (o *IsDateWeekendHolidayURL) String() string
- func (o *IsDateWeekendHolidayURL) StringFull(scheme, host string) string
- func (o *IsDateWeekendHolidayURL) WithBasePath(bp string) *IsDateWeekendHolidayURL
- type IsDateWeekendHolidayUnauthorized
- func (o *IsDateWeekendHolidayUnauthorized) SetPayload(payload *ghcmessages.Error)
- func (o *IsDateWeekendHolidayUnauthorized) WithPayload(payload *ghcmessages.Error) *IsDateWeekendHolidayUnauthorized
- func (o *IsDateWeekendHolidayUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const IsDateWeekendHolidayBadRequestCode int = 400
IsDateWeekendHolidayBadRequestCode is the HTTP code returned for type IsDateWeekendHolidayBadRequest
const IsDateWeekendHolidayInternalServerErrorCode int = 500
IsDateWeekendHolidayInternalServerErrorCode is the HTTP code returned for type IsDateWeekendHolidayInternalServerError
const IsDateWeekendHolidayNotFoundCode int = 404
IsDateWeekendHolidayNotFoundCode is the HTTP code returned for type IsDateWeekendHolidayNotFound
const IsDateWeekendHolidayOKCode int = 200
IsDateWeekendHolidayOKCode is the HTTP code returned for type IsDateWeekendHolidayOK
IsDateWeekendHolidayUnauthorizedCode is the HTTP code returned for type IsDateWeekendHolidayUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IsDateWeekendHoliday ¶
type IsDateWeekendHoliday struct { Context *middleware.Context Handler IsDateWeekendHolidayHandler }
IsDateWeekendHoliday swagger:route GET /calendar/{countryCode}/is-weekend-holiday/{date} calendar isDateWeekendHoliday
Validate move date selection ¶
Utility API to determine if input date falls on weekend and/or holiday.
func NewIsDateWeekendHoliday ¶
func NewIsDateWeekendHoliday(ctx *middleware.Context, handler IsDateWeekendHolidayHandler) *IsDateWeekendHoliday
NewIsDateWeekendHoliday creates a new http.Handler for the is date weekend holiday operation
func (*IsDateWeekendHoliday) ServeHTTP ¶
func (o *IsDateWeekendHoliday) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type IsDateWeekendHolidayBadRequest ¶
type IsDateWeekendHolidayBadRequest struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
IsDateWeekendHolidayBadRequest The request payload is invalid
swagger:response isDateWeekendHolidayBadRequest
func NewIsDateWeekendHolidayBadRequest ¶
func NewIsDateWeekendHolidayBadRequest() *IsDateWeekendHolidayBadRequest
NewIsDateWeekendHolidayBadRequest creates IsDateWeekendHolidayBadRequest with default headers values
func (*IsDateWeekendHolidayBadRequest) SetPayload ¶
func (o *IsDateWeekendHolidayBadRequest) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the is date weekend holiday bad request response
func (*IsDateWeekendHolidayBadRequest) WithPayload ¶
func (o *IsDateWeekendHolidayBadRequest) WithPayload(payload *ghcmessages.Error) *IsDateWeekendHolidayBadRequest
WithPayload adds the payload to the is date weekend holiday bad request response
func (*IsDateWeekendHolidayBadRequest) WriteResponse ¶
func (o *IsDateWeekendHolidayBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IsDateWeekendHolidayHandler ¶
type IsDateWeekendHolidayHandler interface {
Handle(IsDateWeekendHolidayParams) middleware.Responder
}
IsDateWeekendHolidayHandler interface for that can handle valid is date weekend holiday params
type IsDateWeekendHolidayHandlerFunc ¶
type IsDateWeekendHolidayHandlerFunc func(IsDateWeekendHolidayParams) middleware.Responder
IsDateWeekendHolidayHandlerFunc turns a function with the right signature into a is date weekend holiday handler
func (IsDateWeekendHolidayHandlerFunc) Handle ¶
func (fn IsDateWeekendHolidayHandlerFunc) Handle(params IsDateWeekendHolidayParams) middleware.Responder
Handle executing the request and returning a response
type IsDateWeekendHolidayInternalServerError ¶
type IsDateWeekendHolidayInternalServerError struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
IsDateWeekendHolidayInternalServerError A server error occurred
swagger:response isDateWeekendHolidayInternalServerError
func NewIsDateWeekendHolidayInternalServerError ¶
func NewIsDateWeekendHolidayInternalServerError() *IsDateWeekendHolidayInternalServerError
NewIsDateWeekendHolidayInternalServerError creates IsDateWeekendHolidayInternalServerError with default headers values
func (*IsDateWeekendHolidayInternalServerError) SetPayload ¶
func (o *IsDateWeekendHolidayInternalServerError) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the is date weekend holiday internal server error response
func (*IsDateWeekendHolidayInternalServerError) WithPayload ¶
func (o *IsDateWeekendHolidayInternalServerError) WithPayload(payload *ghcmessages.Error) *IsDateWeekendHolidayInternalServerError
WithPayload adds the payload to the is date weekend holiday internal server error response
func (*IsDateWeekendHolidayInternalServerError) WriteResponse ¶
func (o *IsDateWeekendHolidayInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IsDateWeekendHolidayNotFound ¶
type IsDateWeekendHolidayNotFound struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
IsDateWeekendHolidayNotFound The requested resource wasn't found
swagger:response isDateWeekendHolidayNotFound
func NewIsDateWeekendHolidayNotFound ¶
func NewIsDateWeekendHolidayNotFound() *IsDateWeekendHolidayNotFound
NewIsDateWeekendHolidayNotFound creates IsDateWeekendHolidayNotFound with default headers values
func (*IsDateWeekendHolidayNotFound) SetPayload ¶
func (o *IsDateWeekendHolidayNotFound) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the is date weekend holiday not found response
func (*IsDateWeekendHolidayNotFound) WithPayload ¶
func (o *IsDateWeekendHolidayNotFound) WithPayload(payload *ghcmessages.Error) *IsDateWeekendHolidayNotFound
WithPayload adds the payload to the is date weekend holiday not found response
func (*IsDateWeekendHolidayNotFound) WriteResponse ¶
func (o *IsDateWeekendHolidayNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IsDateWeekendHolidayOK ¶
type IsDateWeekendHolidayOK struct { /* In: Body */ Payload *ghcmessages.IsDateWeekendHolidayInfo `json:"body,omitempty"` }
IsDateWeekendHolidayOK Successfully determine if given date is weekend and/or holiday for given country.
swagger:response isDateWeekendHolidayOK
func NewIsDateWeekendHolidayOK ¶
func NewIsDateWeekendHolidayOK() *IsDateWeekendHolidayOK
NewIsDateWeekendHolidayOK creates IsDateWeekendHolidayOK with default headers values
func (*IsDateWeekendHolidayOK) SetPayload ¶
func (o *IsDateWeekendHolidayOK) SetPayload(payload *ghcmessages.IsDateWeekendHolidayInfo)
SetPayload sets the payload to the is date weekend holiday o k response
func (*IsDateWeekendHolidayOK) WithPayload ¶
func (o *IsDateWeekendHolidayOK) WithPayload(payload *ghcmessages.IsDateWeekendHolidayInfo) *IsDateWeekendHolidayOK
WithPayload adds the payload to the is date weekend holiday o k response
func (*IsDateWeekendHolidayOK) WriteResponse ¶
func (o *IsDateWeekendHolidayOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type IsDateWeekendHolidayParams ¶
type IsDateWeekendHolidayParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*country code for context of date Required: true In: path */ CountryCode string /*input date to determine if weekend/holiday for given country. Required: true In: path */ Date strfmt.Date }
IsDateWeekendHolidayParams contains all the bound params for the is date weekend holiday operation typically these are obtained from a http.Request
swagger:parameters isDateWeekendHoliday
func NewIsDateWeekendHolidayParams ¶
func NewIsDateWeekendHolidayParams() IsDateWeekendHolidayParams
NewIsDateWeekendHolidayParams creates a new IsDateWeekendHolidayParams object
There are no default values defined in the spec.
func (*IsDateWeekendHolidayParams) BindRequest ¶
func (o *IsDateWeekendHolidayParams) 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 NewIsDateWeekendHolidayParams() beforehand.
type IsDateWeekendHolidayURL ¶
type IsDateWeekendHolidayURL struct { CountryCode string Date strfmt.Date // contains filtered or unexported fields }
IsDateWeekendHolidayURL generates an URL for the is date weekend holiday operation
func (*IsDateWeekendHolidayURL) Build ¶
func (o *IsDateWeekendHolidayURL) Build() (*url.URL, error)
Build a url path and query string
func (*IsDateWeekendHolidayURL) BuildFull ¶
func (o *IsDateWeekendHolidayURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*IsDateWeekendHolidayURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*IsDateWeekendHolidayURL) SetBasePath ¶
func (o *IsDateWeekendHolidayURL) 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 (*IsDateWeekendHolidayURL) String ¶
func (o *IsDateWeekendHolidayURL) String() string
String returns the string representation of the path with query string
func (*IsDateWeekendHolidayURL) StringFull ¶
func (o *IsDateWeekendHolidayURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*IsDateWeekendHolidayURL) WithBasePath ¶
func (o *IsDateWeekendHolidayURL) WithBasePath(bp string) *IsDateWeekendHolidayURL
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 IsDateWeekendHolidayUnauthorized ¶
type IsDateWeekendHolidayUnauthorized struct { ghcmessages.Error `json:"body,omitempty"` }Payload *
IsDateWeekendHolidayUnauthorized The request was denied
swagger:response isDateWeekendHolidayUnauthorized
func NewIsDateWeekendHolidayUnauthorized ¶
func NewIsDateWeekendHolidayUnauthorized() *IsDateWeekendHolidayUnauthorized
NewIsDateWeekendHolidayUnauthorized creates IsDateWeekendHolidayUnauthorized with default headers values
func (*IsDateWeekendHolidayUnauthorized) SetPayload ¶
func (o *IsDateWeekendHolidayUnauthorized) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the is date weekend holiday unauthorized response
func (*IsDateWeekendHolidayUnauthorized) WithPayload ¶
func (o *IsDateWeekendHolidayUnauthorized) WithPayload(payload *ghcmessages.Error) *IsDateWeekendHolidayUnauthorized
WithPayload adds the payload to the is date weekend holiday unauthorized response
func (*IsDateWeekendHolidayUnauthorized) WriteResponse ¶
func (o *IsDateWeekendHolidayUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client