system

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ClusterOKCode int = 200

ClusterOKCode is the HTTP code returned for type ClusterOK

View Source
const DiscordServerOKCode int = 200

DiscordServerOKCode is the HTTP code returned for type DiscordServerOK

View Source
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

func (*Cluster) ServeHTTP

func (o *Cluster) ServeHTTP(rw http.ResponseWriter, r *http.Request)

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

type ClusterParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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) Must

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

Must is a helper function to panic when the url builder returns an error

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

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

type DiscordServerParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

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

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

Handle executing the request and returning a response

type OpenDiscordServerParams

type OpenDiscordServerParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

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

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

Jump to

Keyboard shortcuts

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