Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthServiceStatusName ¶
func HealthServiceStatusName(status HealthServiceStatus) string
Types ¶
type CalculatorAddRequest ¶
type CalculatorDivRequest ¶
type CalculatorFloatResponse ¶
type CalculatorFloatResponse struct {
Result float32 `reply:"result" json:"result"`
}
type CalculatorInt32Response ¶
type CalculatorInt32Response struct {
Result int32 `reply:"result" json:"result"`
}
type CalculatorMulRequest ¶
type CalculatorSubRequest ¶
type HealthCheckRequest ¶
type HealthCheckRequest struct {
Service string `form:"service" json:"service" validate:"required"`
}
type HealthCheckResponse ¶
type HealthCheckResponse struct {
Status HealthServiceStatus `json:"-" reply:"status"`
}
func (*HealthCheckResponse) MarshalJSON ¶
func (resp *HealthCheckResponse) MarshalJSON() ([]byte, error)
func (*HealthCheckResponse) UnmarshalJSON ¶
func (resp *HealthCheckResponse) UnmarshalJSON(data []byte) error
type HealthServiceStatus ¶
type HealthServiceStatus int
const ( HealthServiceStatusUnknown HealthServiceStatus = iota HealthServiceStatusServing HealthServiceStatusNotServing HealthServiceStatusServiceUnknown )
func HealthServiceStatusFromName ¶
func HealthServiceStatusFromName(name string) HealthServiceStatus
Click to show internal directories.
Click to hide internal directories.