Documentation ¶
Index ¶
- func ExtendEntryPoint(w http.ResponseWriter, r *http.Request, project, zone string)
- func RenderError(ctx context.Context, w http.ResponseWriter, e APIError)
- func RenderJSON(w http.ResponseWriter, data interface{}, status int)
- func ShutdownEntryPoint(ctx context.Context, m *pubsub.Message, necoTestProject, necoTestZone string) error
- type APIError
- type ExtendStatus
- type ShutdownStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtendEntryPoint ¶
func ExtendEntryPoint(w http.ResponseWriter, r *http.Request, project, zone string)
func RenderError ¶
func RenderError(ctx context.Context, w http.ResponseWriter, e APIError)
RenderError renders response as error
func RenderJSON ¶
func RenderJSON(w http.ResponseWriter, data interface{}, status int)
RenderJSON renders response in JSON format
Types ¶
type APIError ¶
APIError is to define REST API errors.
func InternalServerError ¶
InternalServerError creates an APIError.
type ExtendStatus ¶
type ExtendStatus struct {
Extended string `json:"extended"`
}
ExtendStatus represents status of /extend
type ShutdownStatus ¶
ShutdownStatus represents status of /shutdown
Click to show internal directories.
Click to hide internal directories.