Documentation ¶
Index ¶
- Constants
- type Cluster
- type ClusterHandler
- type ClusterHandlerFunc
- type ClusterOK
- type ClusterParams
- type ClusterURL
- func (o *ClusterURL) Build() (*url.URL, error)
- func (o *ClusterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ClusterURL) Must(u *url.URL, err error) *url.URL
- func (o *ClusterURL) SetBasePath(bp string)
- func (o *ClusterURL) String() string
- func (o *ClusterURL) StringFull(scheme, host string) string
- func (o *ClusterURL) WithBasePath(bp string) *ClusterURL
- type DiscordServer
- type DiscordServerHandler
- type DiscordServerHandlerFunc
- type DiscordServerOK
- type DiscordServerParams
- type DiscordServerURL
- func (o *DiscordServerURL) Build() (*url.URL, error)
- func (o *DiscordServerURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DiscordServerURL) Must(u *url.URL, err error) *url.URL
- func (o *DiscordServerURL) SetBasePath(bp string)
- func (o *DiscordServerURL) String() string
- func (o *DiscordServerURL) StringFull(scheme, host string) string
- func (o *DiscordServerURL) WithBasePath(bp string) *DiscordServerURL
- type OpenDiscordServer
- type OpenDiscordServerFound
- type OpenDiscordServerHandler
- type OpenDiscordServerHandlerFunc
- type OpenDiscordServerParams
- type OpenDiscordServerURL
- func (o *OpenDiscordServerURL) Build() (*url.URL, error)
- func (o *OpenDiscordServerURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *OpenDiscordServerURL) Must(u *url.URL, err error) *url.URL
- func (o *OpenDiscordServerURL) SetBasePath(bp string)
- func (o *OpenDiscordServerURL) String() string
- func (o *OpenDiscordServerURL) StringFull(scheme, host string) string
- func (o *OpenDiscordServerURL) WithBasePath(bp string) *OpenDiscordServerURL
Constants ¶
const ClusterOKCode int = 200
ClusterOKCode is the HTTP code returned for type ClusterOK
const DiscordServerOKCode int = 200
DiscordServerOKCode is the HTTP code returned for type DiscordServerOK
const OpenDiscordServerFoundCode int = 302
OpenDiscordServerFoundCode is the HTTP code returned for type OpenDiscordServerFound
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Context *middleware.Context Handler ClusterHandler }
Cluster swagger:route GET /cluster system cluster
Get Cluster Info
func NewCluster ¶
func NewCluster(ctx *middleware.Context, handler ClusterHandler) *Cluster
NewCluster creates a new http.Handler for the cluster operation
type ClusterHandler ¶
type ClusterHandler interface {
Handle(ClusterParams, interface{}) middleware.Responder
}
ClusterHandler interface for that can handle valid cluster params
type ClusterHandlerFunc ¶
type ClusterHandlerFunc func(ClusterParams, interface{}) middleware.Responder
ClusterHandlerFunc turns a function with the right signature into a cluster handler
func (ClusterHandlerFunc) Handle ¶
func (fn ClusterHandlerFunc) Handle(params ClusterParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ClusterOK ¶
type ClusterOK struct { /* In: Body */ Payload *models.ClusterInfo `json:"body,omitempty"` }
ClusterOK Success
swagger:response clusterOK
func NewClusterOK ¶
func NewClusterOK() *ClusterOK
NewClusterOK creates ClusterOK with default headers values
func (*ClusterOK) SetPayload ¶
func (o *ClusterOK) SetPayload(payload *models.ClusterInfo)
SetPayload sets the payload to the cluster o k response
func (*ClusterOK) WithPayload ¶
func (o *ClusterOK) WithPayload(payload *models.ClusterInfo) *ClusterOK
WithPayload adds the payload to the cluster o k response
func (*ClusterOK) WriteResponse ¶
func (o *ClusterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ClusterParams ¶
ClusterParams contains all the bound params for the cluster operation typically these are obtained from a http.Request
swagger:parameters cluster
func NewClusterParams ¶
func NewClusterParams() ClusterParams
NewClusterParams creates a new ClusterParams object
There are no default values defined in the spec.
func (*ClusterParams) BindRequest ¶
func (o *ClusterParams) 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 NewClusterParams() beforehand.
type ClusterURL ¶
type ClusterURL struct {
// contains filtered or unexported fields
}
ClusterURL generates an URL for the cluster operation
func (*ClusterURL) Build ¶
func (o *ClusterURL) Build() (*url.URL, error)
Build a url path and query string
func (*ClusterURL) BuildFull ¶
func (o *ClusterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ClusterURL) SetBasePath ¶
func (o *ClusterURL) 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 (*ClusterURL) String ¶
func (o *ClusterURL) String() string
String returns the string representation of the path with query string
func (*ClusterURL) StringFull ¶
func (o *ClusterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ClusterURL) WithBasePath ¶
func (o *ClusterURL) WithBasePath(bp string) *ClusterURL
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 DiscordServer ¶
type DiscordServer struct { Context *middleware.Context Handler DiscordServerHandler }
DiscordServer swagger:route GET /discord_server system discordServer
Get Discord Server
func NewDiscordServer ¶
func NewDiscordServer(ctx *middleware.Context, handler DiscordServerHandler) *DiscordServer
NewDiscordServer creates a new http.Handler for the discord server operation
func (*DiscordServer) ServeHTTP ¶
func (o *DiscordServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DiscordServerHandler ¶
type DiscordServerHandler interface {
Handle(DiscordServerParams) middleware.Responder
}
DiscordServerHandler interface for that can handle valid discord server params
type DiscordServerHandlerFunc ¶
type DiscordServerHandlerFunc func(DiscordServerParams) middleware.Responder
DiscordServerHandlerFunc turns a function with the right signature into a discord server handler
func (DiscordServerHandlerFunc) Handle ¶
func (fn DiscordServerHandlerFunc) Handle(params DiscordServerParams) middleware.Responder
Handle executing the request and returning a response
type DiscordServerOK ¶
type DiscordServerOK struct { /* In: Body */ Payload *models.DiscordServer `json:"body,omitempty"` }
DiscordServerOK Success
swagger:response discordServerOK
func NewDiscordServerOK ¶
func NewDiscordServerOK() *DiscordServerOK
NewDiscordServerOK creates DiscordServerOK with default headers values
func (*DiscordServerOK) SetPayload ¶
func (o *DiscordServerOK) SetPayload(payload *models.DiscordServer)
SetPayload sets the payload to the discord server o k response
func (*DiscordServerOK) WithPayload ¶
func (o *DiscordServerOK) WithPayload(payload *models.DiscordServer) *DiscordServerOK
WithPayload adds the payload to the discord server o k response
func (*DiscordServerOK) WriteResponse ¶
func (o *DiscordServerOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DiscordServerParams ¶
DiscordServerParams contains all the bound params for the discord server operation typically these are obtained from a http.Request
swagger:parameters discord_server
func NewDiscordServerParams ¶
func NewDiscordServerParams() DiscordServerParams
NewDiscordServerParams creates a new DiscordServerParams object
There are no default values defined in the spec.
func (*DiscordServerParams) BindRequest ¶
func (o *DiscordServerParams) 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 NewDiscordServerParams() beforehand.
type DiscordServerURL ¶
type DiscordServerURL struct {
// contains filtered or unexported fields
}
DiscordServerURL generates an URL for the discord server operation
func (*DiscordServerURL) Build ¶
func (o *DiscordServerURL) Build() (*url.URL, error)
Build a url path and query string
func (*DiscordServerURL) BuildFull ¶
func (o *DiscordServerURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DiscordServerURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DiscordServerURL) SetBasePath ¶
func (o *DiscordServerURL) 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 (*DiscordServerURL) String ¶
func (o *DiscordServerURL) String() string
String returns the string representation of the path with query string
func (*DiscordServerURL) StringFull ¶
func (o *DiscordServerURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DiscordServerURL) WithBasePath ¶
func (o *DiscordServerURL) WithBasePath(bp string) *DiscordServerURL
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 OpenDiscordServer ¶
type OpenDiscordServer struct { Context *middleware.Context Handler OpenDiscordServerHandler }
OpenDiscordServer swagger:route GET /open_discord_server system openDiscordServer
Open Discord Server
func NewOpenDiscordServer ¶
func NewOpenDiscordServer(ctx *middleware.Context, handler OpenDiscordServerHandler) *OpenDiscordServer
NewOpenDiscordServer creates a new http.Handler for the open discord server operation
func (*OpenDiscordServer) ServeHTTP ¶
func (o *OpenDiscordServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type OpenDiscordServerFound ¶
type OpenDiscordServerFound struct { /* */ Location string `json:"Location"` }
OpenDiscordServerFound Open Discord Servers
swagger:response openDiscordServerFound
func NewOpenDiscordServerFound ¶
func NewOpenDiscordServerFound() *OpenDiscordServerFound
NewOpenDiscordServerFound creates OpenDiscordServerFound with default headers values
func (*OpenDiscordServerFound) SetLocation ¶
func (o *OpenDiscordServerFound) SetLocation(location string)
SetLocation sets the location to the open discord server found response
func (*OpenDiscordServerFound) WithLocation ¶
func (o *OpenDiscordServerFound) WithLocation(location string) *OpenDiscordServerFound
WithLocation adds the location to the open discord server found response
func (*OpenDiscordServerFound) WriteResponse ¶
func (o *OpenDiscordServerFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type OpenDiscordServerHandler ¶
type OpenDiscordServerHandler interface {
Handle(OpenDiscordServerParams) middleware.Responder
}
OpenDiscordServerHandler interface for that can handle valid open discord server params
type OpenDiscordServerHandlerFunc ¶
type OpenDiscordServerHandlerFunc func(OpenDiscordServerParams) middleware.Responder
OpenDiscordServerHandlerFunc turns a function with the right signature into a open discord server handler
func (OpenDiscordServerHandlerFunc) Handle ¶
func (fn OpenDiscordServerHandlerFunc) Handle(params OpenDiscordServerParams) middleware.Responder
Handle executing the request and returning a response
type OpenDiscordServerParams ¶
OpenDiscordServerParams contains all the bound params for the open discord server operation typically these are obtained from a http.Request
swagger:parameters open_discord_server
func NewOpenDiscordServerParams ¶
func NewOpenDiscordServerParams() OpenDiscordServerParams
NewOpenDiscordServerParams creates a new OpenDiscordServerParams object
There are no default values defined in the spec.
func (*OpenDiscordServerParams) BindRequest ¶
func (o *OpenDiscordServerParams) 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 NewOpenDiscordServerParams() beforehand.
type OpenDiscordServerURL ¶
type OpenDiscordServerURL struct {
// contains filtered or unexported fields
}
OpenDiscordServerURL generates an URL for the open discord server operation
func (*OpenDiscordServerURL) Build ¶
func (o *OpenDiscordServerURL) Build() (*url.URL, error)
Build a url path and query string
func (*OpenDiscordServerURL) BuildFull ¶
func (o *OpenDiscordServerURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*OpenDiscordServerURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*OpenDiscordServerURL) SetBasePath ¶
func (o *OpenDiscordServerURL) 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 (*OpenDiscordServerURL) String ¶
func (o *OpenDiscordServerURL) String() string
String returns the string representation of the path with query string
func (*OpenDiscordServerURL) StringFull ¶
func (o *OpenDiscordServerURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*OpenDiscordServerURL) WithBasePath ¶
func (o *OpenDiscordServerURL) WithBasePath(bp string) *OpenDiscordServerURL
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
Source Files ¶
- cluster.go
- cluster_parameters.go
- cluster_responses.go
- cluster_urlbuilder.go
- discord_server.go
- discord_server_parameters.go
- discord_server_responses.go
- discord_server_urlbuilder.go
- open_discord_server.go
- open_discord_server_parameters.go
- open_discord_server_responses.go
- open_discord_server_urlbuilder.go