Exemplo n.º 1
0
func (c *tchanMetaClient) Health(ctx Context) (*meta.HealthStatus, error) {
	var resp meta.MetaHealthResult
	args := meta.MetaHealthArgs{}
	success, err := c.client.Call(ctx, "Meta", "health", &args, &resp)
	if err == nil && !success {
	}

	return resp.GetSuccess(), err
}
Exemplo n.º 2
0
func (c *tchanMetaClient) Health(ctx Context) (*gen.HealthStatus, error) {
	var resp gen.MetaHealthResult
	args := gen.MetaHealthArgs{}
	success, err := c.client.Call(ctx, c.thriftService, "health", &args, &resp)
	if err == nil && !success {
	}

	return resp.GetSuccess(), err
}