calendar

package
v0.0.0-...-bc01b9c Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const IsDateWeekendHolidayBadRequestCode int = 400

IsDateWeekendHolidayBadRequestCode is the HTTP code returned for type IsDateWeekendHolidayBadRequest

View Source
const IsDateWeekendHolidayInternalServerErrorCode int = 500

IsDateWeekendHolidayInternalServerErrorCode is the HTTP code returned for type IsDateWeekendHolidayInternalServerError

View Source
const IsDateWeekendHolidayNotFoundCode int = 404

IsDateWeekendHolidayNotFoundCode is the HTTP code returned for type IsDateWeekendHolidayNotFound

View Source
const IsDateWeekendHolidayOKCode int = 200

IsDateWeekendHolidayOKCode is the HTTP code returned for type IsDateWeekendHolidayOK

View Source
const IsDateWeekendHolidayUnauthorizedCode int = 401

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

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

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

SetPayload sets the payload to the is date weekend holiday internal server error response

func (*IsDateWeekendHolidayInternalServerError) WithPayload

WithPayload adds the payload to the is date weekend holiday internal server error response

func (*IsDateWeekendHolidayInternalServerError) WriteResponse

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

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

SetPayload sets the payload to the is date weekend holiday o k response

func (*IsDateWeekendHolidayOK) WithPayload

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

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

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

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

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 {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

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

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

Jump to

Keyboard shortcuts

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