func (c *Client) State(cli gregor1.IncomingInterface) (gregor.State, error) { ctx, _ := context.WithTimeout(context.Background(), 5*time.Second) arg := gregor1.StateArg{ Uid: gregor1.UID(c.user.Bytes()), Deviceid: gregor1.DeviceID(c.device.Bytes()), TimeOrOffset: gregor1.TimeOrOffset{}, } res, err := cli.State(ctx, arg) if err != nil { return nil, err } return res, nil }