Documentation ¶
Index ¶
- Constants
- type ListMessage
- type ListMessageHandler
- type ListMessageHandlerFunc
- type ListMessageInternalServerError
- type ListMessageOK
- type ListMessageOKBodyItems0
- func (o *ListMessageOKBodyItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ListMessageOKBodyItems0) MarshalBinary() ([]byte, error)
- func (o *ListMessageOKBodyItems0) UnmarshalBinary(b []byte) error
- func (o *ListMessageOKBodyItems0) Validate(formats strfmt.Registry) error
- type ListMessageParams
- type ListMessageURL
- func (o *ListMessageURL) Build() (*url.URL, error)
- func (o *ListMessageURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListMessageURL) Must(u *url.URL, err error) *url.URL
- func (o *ListMessageURL) SetBasePath(bp string)
- func (o *ListMessageURL) String() string
- func (o *ListMessageURL) StringFull(scheme, host string) string
- func (o *ListMessageURL) WithBasePath(bp string) *ListMessageURL
- type PostMessage
- type PostMessageBody
- type PostMessageHandler
- type PostMessageHandlerFunc
- type PostMessageInternalServerError
- type PostMessageOK
- type PostMessageParams
- type PostMessageURL
- func (o *PostMessageURL) Build() (*url.URL, error)
- func (o *PostMessageURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostMessageURL) Must(u *url.URL, err error) *url.URL
- func (o *PostMessageURL) SetBasePath(bp string)
- func (o *PostMessageURL) String() string
- func (o *PostMessageURL) StringFull(scheme, host string) string
- func (o *PostMessageURL) WithBasePath(bp string) *PostMessageURL
Constants ¶
const ListMessageInternalServerErrorCode int = 500
ListMessageInternalServerErrorCode is the HTTP code returned for type ListMessageInternalServerError
const ListMessageOKCode int = 200
ListMessageOKCode is the HTTP code returned for type ListMessageOK
const PostMessageInternalServerErrorCode int = 500
PostMessageInternalServerErrorCode is the HTTP code returned for type PostMessageInternalServerError
const PostMessageOKCode int = 200
PostMessageOKCode is the HTTP code returned for type PostMessageOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListMessage ¶
type ListMessage struct { Context *middleware.Context Handler ListMessageHandler }
ListMessage swagger:route GET /board board listMessage
get list of message in a board.
func NewListMessage ¶
func NewListMessage(ctx *middleware.Context, handler ListMessageHandler) *ListMessage
NewListMessage creates a new http.Handler for the list message operation
func (*ListMessage) ServeHTTP ¶
func (o *ListMessage) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListMessageHandler ¶
type ListMessageHandler interface {
Handle(ListMessageParams) middleware.Responder
}
ListMessageHandler interface for that can handle valid list message params
type ListMessageHandlerFunc ¶
type ListMessageHandlerFunc func(ListMessageParams) middleware.Responder
ListMessageHandlerFunc turns a function with the right signature into a list message handler
func (ListMessageHandlerFunc) Handle ¶
func (fn ListMessageHandlerFunc) Handle(params ListMessageParams) middleware.Responder
Handle executing the request and returning a response
type ListMessageInternalServerError ¶
type ListMessageInternalServerError struct { /* In: Body */ Payload string `json:"body,omitempty"` }
ListMessageInternalServerError server error.
swagger:response listMessageInternalServerError
func NewListMessageInternalServerError ¶
func NewListMessageInternalServerError() *ListMessageInternalServerError
NewListMessageInternalServerError creates ListMessageInternalServerError with default headers values
func (*ListMessageInternalServerError) SetPayload ¶
func (o *ListMessageInternalServerError) SetPayload(payload string)
SetPayload sets the payload to the list message internal server error response
func (*ListMessageInternalServerError) WithPayload ¶
func (o *ListMessageInternalServerError) WithPayload(payload string) *ListMessageInternalServerError
WithPayload adds the payload to the list message internal server error response
func (*ListMessageInternalServerError) WriteResponse ¶
func (o *ListMessageInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListMessageOK ¶
type ListMessageOK struct { /* In: Body */ Payload []*ListMessageOKBodyItems0 `json:"body,omitempty"` }
ListMessageOK messages successfully listed.
swagger:response listMessageOK
func NewListMessageOK ¶
func NewListMessageOK() *ListMessageOK
NewListMessageOK creates ListMessageOK with default headers values
func (*ListMessageOK) SetPayload ¶
func (o *ListMessageOK) SetPayload(payload []*ListMessageOKBodyItems0)
SetPayload sets the payload to the list message o k response
func (*ListMessageOK) WithPayload ¶
func (o *ListMessageOK) WithPayload(payload []*ListMessageOKBodyItems0) *ListMessageOK
WithPayload adds the payload to the list message o k response
func (*ListMessageOK) WriteResponse ¶
func (o *ListMessageOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListMessageOKBodyItems0 ¶
type ListMessageOKBodyItems0 struct { // id // Required: true ID *int64 `json:"id"` // message // Required: true Message *string `json:"message"` }
ListMessageOKBodyItems0 list message o k body items0
swagger:model ListMessageOKBodyItems0
func (*ListMessageOKBodyItems0) ContextValidate ¶
func (o *ListMessageOKBodyItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this list message o k body items0 based on context it is used
func (*ListMessageOKBodyItems0) MarshalBinary ¶
func (o *ListMessageOKBodyItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListMessageOKBodyItems0) UnmarshalBinary ¶
func (o *ListMessageOKBodyItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListMessageParams ¶
ListMessageParams contains all the bound params for the list message operation typically these are obtained from a http.Request
swagger:parameters ListMessage
func NewListMessageParams ¶
func NewListMessageParams() ListMessageParams
NewListMessageParams creates a new ListMessageParams object
There are no default values defined in the spec.
func (*ListMessageParams) BindRequest ¶
func (o *ListMessageParams) 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 NewListMessageParams() beforehand.
type ListMessageURL ¶
type ListMessageURL struct {
// contains filtered or unexported fields
}
ListMessageURL generates an URL for the list message operation
func (*ListMessageURL) Build ¶
func (o *ListMessageURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListMessageURL) BuildFull ¶
func (o *ListMessageURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListMessageURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListMessageURL) SetBasePath ¶
func (o *ListMessageURL) 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 (*ListMessageURL) String ¶
func (o *ListMessageURL) String() string
String returns the string representation of the path with query string
func (*ListMessageURL) StringFull ¶
func (o *ListMessageURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListMessageURL) WithBasePath ¶
func (o *ListMessageURL) WithBasePath(bp string) *ListMessageURL
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 PostMessage ¶
type PostMessage struct { Context *middleware.Context Handler PostMessageHandler }
PostMessage swagger:route POST /board board postMessage
post a message to a board.
post a message to a board.
func NewPostMessage ¶
func NewPostMessage(ctx *middleware.Context, handler PostMessageHandler) *PostMessage
NewPostMessage creates a new http.Handler for the post message operation
func (*PostMessage) ServeHTTP ¶
func (o *PostMessage) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostMessageBody ¶
type PostMessageBody struct { // message // Required: true Message *string `json:"message"` }
PostMessageBody post message body
swagger:model PostMessageBody
func (*PostMessageBody) ContextValidate ¶
ContextValidate validates this post message body based on context it is used
func (*PostMessageBody) MarshalBinary ¶
func (o *PostMessageBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostMessageBody) UnmarshalBinary ¶
func (o *PostMessageBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostMessageHandler ¶
type PostMessageHandler interface {
Handle(PostMessageParams) middleware.Responder
}
PostMessageHandler interface for that can handle valid post message params
type PostMessageHandlerFunc ¶
type PostMessageHandlerFunc func(PostMessageParams) middleware.Responder
PostMessageHandlerFunc turns a function with the right signature into a post message handler
func (PostMessageHandlerFunc) Handle ¶
func (fn PostMessageHandlerFunc) Handle(params PostMessageParams) middleware.Responder
Handle executing the request and returning a response
type PostMessageInternalServerError ¶
type PostMessageInternalServerError struct { /* In: Body */ Payload string `json:"body,omitempty"` }
PostMessageInternalServerError server error.
swagger:response postMessageInternalServerError
func NewPostMessageInternalServerError ¶
func NewPostMessageInternalServerError() *PostMessageInternalServerError
NewPostMessageInternalServerError creates PostMessageInternalServerError with default headers values
func (*PostMessageInternalServerError) SetPayload ¶
func (o *PostMessageInternalServerError) SetPayload(payload string)
SetPayload sets the payload to the post message internal server error response
func (*PostMessageInternalServerError) WithPayload ¶
func (o *PostMessageInternalServerError) WithPayload(payload string) *PostMessageInternalServerError
WithPayload adds the payload to the post message internal server error response
func (*PostMessageInternalServerError) WriteResponse ¶
func (o *PostMessageInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostMessageOK ¶
type PostMessageOK struct { }
PostMessageOK message is successfully stored.
swagger:response postMessageOK
func NewPostMessageOK ¶
func NewPostMessageOK() *PostMessageOK
NewPostMessageOK creates PostMessageOK with default headers values
func (*PostMessageOK) WriteResponse ¶
func (o *PostMessageOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostMessageParams ¶
type PostMessageParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Massage PostMessageBody }
PostMessageParams contains all the bound params for the post message operation typically these are obtained from a http.Request
swagger:parameters PostMessage
func NewPostMessageParams ¶
func NewPostMessageParams() PostMessageParams
NewPostMessageParams creates a new PostMessageParams object
There are no default values defined in the spec.
func (*PostMessageParams) BindRequest ¶
func (o *PostMessageParams) 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 NewPostMessageParams() beforehand.
type PostMessageURL ¶
type PostMessageURL struct {
// contains filtered or unexported fields
}
PostMessageURL generates an URL for the post message operation
func (*PostMessageURL) Build ¶
func (o *PostMessageURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostMessageURL) BuildFull ¶
func (o *PostMessageURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostMessageURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostMessageURL) SetBasePath ¶
func (o *PostMessageURL) 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 (*PostMessageURL) String ¶
func (o *PostMessageURL) String() string
String returns the string representation of the path with query string
func (*PostMessageURL) StringFull ¶
func (o *PostMessageURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostMessageURL) WithBasePath ¶
func (o *PostMessageURL) WithBasePath(bp string) *PostMessageURL
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