Documentation ¶
Index ¶
- type OpenAPI
- func (o *OpenAPI) ApiAppVersion(w http.ResponseWriter, _ *http.Request)
- func (o *OpenAPI) ApiAppVersionLatest(w http.ResponseWriter, r *http.Request)
- func (o *OpenAPI) ApiSessionCreate(w http.ResponseWriter, r *http.Request)
- func (o *OpenAPI) ApiSessionDelete(w http.ResponseWriter, r *http.Request, sID sID)
- func (o *OpenAPI) ApiSessionDeleteAllRequests(w http.ResponseWriter, r *http.Request, sID sID)
- func (o *OpenAPI) ApiSessionDeleteRequest(w http.ResponseWriter, r *http.Request, sID sID, rID rID)
- func (o *OpenAPI) ApiSessionGet(w http.ResponseWriter, r *http.Request, sID sID)
- func (o *OpenAPI) ApiSessionGetRequest(w http.ResponseWriter, r *http.Request, sID sID, rID rID)
- func (o *OpenAPI) ApiSessionListRequests(w http.ResponseWriter, r *http.Request, sID sID)
- func (o *OpenAPI) ApiSessionRequestsSubscribe(w http.ResponseWriter, r *http.Request, sID sID, _ skip)
- func (o *OpenAPI) ApiSettings(w http.ResponseWriter, _ *http.Request)
- func (o *OpenAPI) HandleInternalError(w http.ResponseWriter, _ *http.Request, err error)
- func (o *OpenAPI) HandleNotFoundError(w http.ResponseWriter, _ *http.Request)
- func (o *OpenAPI) LivenessProbe(w http.ResponseWriter, r *http.Request)
- func (o *OpenAPI) LivenessProbeHead(w http.ResponseWriter, r *http.Request)
- func (o *OpenAPI) ReadinessProbe(w http.ResponseWriter, r *http.Request)
- func (o *OpenAPI) ReadinessProbeHead(w http.ResponseWriter, r *http.Request)
- type Server
- type ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAPI ¶
type OpenAPI struct {
// contains filtered or unexported fields
}
func NewOpenAPI ¶
func (*OpenAPI) ApiAppVersion ¶
func (o *OpenAPI) ApiAppVersion(w http.ResponseWriter, _ *http.Request)
func (*OpenAPI) ApiAppVersionLatest ¶
func (o *OpenAPI) ApiAppVersionLatest(w http.ResponseWriter, r *http.Request)
func (*OpenAPI) ApiSessionCreate ¶
func (o *OpenAPI) ApiSessionCreate(w http.ResponseWriter, r *http.Request)
func (*OpenAPI) ApiSessionDelete ¶
func (o *OpenAPI) ApiSessionDelete(w http.ResponseWriter, r *http.Request, sID sID)
func (*OpenAPI) ApiSessionDeleteAllRequests ¶
func (o *OpenAPI) ApiSessionDeleteAllRequests(w http.ResponseWriter, r *http.Request, sID sID)
func (*OpenAPI) ApiSessionDeleteRequest ¶
func (o *OpenAPI) ApiSessionDeleteRequest(w http.ResponseWriter, r *http.Request, sID sID, rID rID)
func (*OpenAPI) ApiSessionGet ¶
func (o *OpenAPI) ApiSessionGet(w http.ResponseWriter, r *http.Request, sID sID)
func (*OpenAPI) ApiSessionGetRequest ¶
func (o *OpenAPI) ApiSessionGetRequest(w http.ResponseWriter, r *http.Request, sID sID, rID rID)
func (*OpenAPI) ApiSessionListRequests ¶
func (o *OpenAPI) ApiSessionListRequests(w http.ResponseWriter, r *http.Request, sID sID)
func (*OpenAPI) ApiSessionRequestsSubscribe ¶
func (o *OpenAPI) ApiSessionRequestsSubscribe(w http.ResponseWriter, r *http.Request, sID sID, _ skip)
func (*OpenAPI) ApiSettings ¶
func (o *OpenAPI) ApiSettings(w http.ResponseWriter, _ *http.Request)
func (*OpenAPI) HandleInternalError ¶
HandleInternalError is a default error handler for internal server errors (e.g. query parameters binding errors, and so on).
func (*OpenAPI) HandleNotFoundError ¶
func (o *OpenAPI) HandleNotFoundError(w http.ResponseWriter, _ *http.Request)
HandleNotFoundError is a default error handler for "404: not found" errors.
func (*OpenAPI) LivenessProbe ¶
func (o *OpenAPI) LivenessProbe(w http.ResponseWriter, r *http.Request)
func (*OpenAPI) LivenessProbeHead ¶
func (o *OpenAPI) LivenessProbeHead(w http.ResponseWriter, r *http.Request)
func (*OpenAPI) ReadinessProbe ¶
func (o *OpenAPI) ReadinessProbe(w http.ResponseWriter, r *http.Request)
func (*OpenAPI) ReadinessProbeHead ¶
func (o *OpenAPI) ReadinessProbeHead(w http.ResponseWriter, r *http.Request)
type Server ¶
type Server struct { ShutdownTimeout time.Duration // Maximum amount of time to wait for the server to stop, default is 5 seconds // contains filtered or unexported fields }
type ServerOption ¶
type ServerOption func(*Server)
func WithIDLETimeout ¶
func WithIDLETimeout(d time.Duration) ServerOption
func WithReadTimeout ¶
func WithReadTimeout(d time.Duration) ServerOption
func WithWriteTimeout ¶
func WithWriteTimeout(d time.Duration) ServerOption
Click to show internal directories.
Click to hide internal directories.