Documentation ¶
Index ¶
- type CalculatorService
- func (service *CalculatorService) Add(ctx context.Context, a, b int32) (int32, error)
- func (service *CalculatorService) Div(ctx context.Context, m, n int32) (float32, error)
- func (service *CalculatorService) Mul(ctx context.Context, e, f int32) (int32, error)
- func (service *CalculatorService) Sub(ctx context.Context, c, d int32) (int32, error)
- type HealthService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalculatorService ¶
type CalculatorService struct { }
CalculatorService 计算器服务
func NewCalculatorService ¶
func NewCalculatorService() *CalculatorService
NewCalculatorService 构建计算器服务对象
type HealthService ¶
type HealthService struct { }
HealthService 健康检查服务
func (*HealthService) Check ¶
func (healthService *HealthService) Check(ctx context.Context, serviceName string) (protocol.HealthServiceStatus, error)
Check 检查指定服务的健康状况
Click to show internal directories.
Click to hide internal directories.