Documentation ¶
Index ¶
- func ServeErrorAsJSON(w http.ResponseWriter, statusCode int, err error) error
- type ApiServer
- func (a *ApiServer) Check(w http.ResponseWriter, r *http.Request)
- func (a *ApiServer) GetEvaluation(w http.ResponseWriter, r *http.Request)
- func (a *ApiServer) GetHealthz(w http.ResponseWriter, r *http.Request)
- func (a *ApiServer) GetJob(w http.ResponseWriter, r *http.Request)
- func (a *ApiServer) ListenAndServe() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeErrorAsJSON ¶
func ServeErrorAsJSON(w http.ResponseWriter, statusCode int, err error) error
Types ¶
type ApiServer ¶
type ApiServer struct {
// contains filtered or unexported fields
}
func NewApiServer ¶
func (*ApiServer) GetEvaluation ¶
func (a *ApiServer) GetEvaluation(w http.ResponseWriter, r *http.Request)
func (*ApiServer) GetHealthz ¶
func (a *ApiServer) GetHealthz(w http.ResponseWriter, r *http.Request)
func (*ApiServer) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.